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

[turbofan] Fix typo flushed out by recent CL.

Bug: chromium:879560
Change-Id: Ia2d2699851358641d50f9997875810f8cb1100ff
Reviewed-on: https://chromium-review.googlesource.com/1199742Reviewed-by: 's avatarMaya Lekova <mslekova@chromium.org>
Commit-Queue: Benedikt Meurer <bmeurer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55553}
parent 3fd1f8a7
...@@ -3964,7 +3964,7 @@ Node* SimplifiedLowering::ToNumberConvertBigIntCode() { ...@@ -3964,7 +3964,7 @@ Node* SimplifiedLowering::ToNumberConvertBigIntCode() {
Node* SimplifiedLowering::ToNumericCode() { Node* SimplifiedLowering::ToNumericCode() {
if (!to_numeric_code_.is_set()) { if (!to_numeric_code_.is_set()) {
Callable callable = Builtins::CallableFor(isolate(), Builtins::kToNumeric); Callable callable = Builtins::CallableFor(isolate(), Builtins::kToNumeric);
to_number_code_.set(jsgraph()->HeapConstant(callable.code())); to_numeric_code_.set(jsgraph()->HeapConstant(callable.code()));
} }
return to_numeric_code_.get(); return to_numeric_code_.get();
} }
......
// Copyright 2018 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax
function foo() {
var x = 1;
x = undefined;
while (x--) ;
}
foo();
%OptimizeFunctionOnNextCall(foo);
foo();
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