Commit f8557ef6 authored by Benedikt Meurer's avatar Benedikt Meurer Committed by Commit Bot

[csa] Make FastCheck actually fast :-)

Mark the not_ok case as deferred.

Bug: v8:8834
Change-Id: I17536e45fb6aa309347b8faaf5f25fb3bbfbf6cf
Reviewed-on: https://chromium-review.googlesource.com/c/1485973Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#59830}
parent b825f430
......@@ -150,10 +150,13 @@ void CodeStubAssembler::Check(const NodeGenerator& condition_body,
}
void CodeStubAssembler::FastCheck(TNode<BoolT> condition) {
Label ok(this);
GotoIf(condition, &ok);
DebugBreak();
Goto(&ok);
Label ok(this), not_ok(this, Label::kDeferred);
Branch(condition, &ok, &not_ok);
BIND(&not_ok);
{
DebugBreak();
Goto(&ok);
}
BIND(&ok);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment