Commit 98653d02 authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

[compiler] Drop a misleading type annotation

Boolean denotes the boolean JS values and doesn't make sense for the
result of a WordEqual.

Change-Id: Id504bbe1171c2603ed4070ed922fcafd94d846c1
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2666689
Commit-Queue: Georg Neis <neis@chromium.org>
Commit-Queue: Maya Lekova <mslekova@chromium.org>
Auto-Submit: Georg Neis <neis@chromium.org>
Reviewed-by: 's avatarMaya Lekova <mslekova@chromium.org>
Cr-Commit-Position: refs/heads/master@{#72474}
parent a850668c
......@@ -5075,13 +5075,12 @@ Node* EffectControlLinearizer::LowerFastApiCall(Node* node) {
MachineType::Int32(), fast_api_call_stack_slot_,
static_cast<int>(offsetof(v8::FastApiCallbackOptions, fallback)));
TNode<Boolean> cond = TNode<Boolean>::UncheckedCast(
__ Word32Equal(load, __ Int32Constant(0)));
Node* is_zero = __ Word32Equal(load, __ Int32Constant(0));
// Hint to true.
auto if_success = __ MakeLabel();
auto if_error = __ MakeDeferredLabel();
auto merge = __ MakeLabel(MachineRepresentation::kTagged);
__ Branch(cond, &if_success, &if_error);
__ Branch(is_zero, &if_success, &if_error);
// Generate fast call.
__ Bind(&if_success);
......
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