d520ebb9a8
Bug: chromium:841117 Change-Id: I1e83dfc82f87d0b49d3cca96290ae1d738e37d20 Reviewed-on: https://chromium-review.googlesource.com/1051228 Reviewed-by: Benedikt Meurer <bmeurer@chromium.org> Commit-Queue: Jaroslav Sevcik <jarin@chromium.org> Cr-Commit-Position: refs/heads/master@{#53083}
12 lines
339 B
JavaScript
12 lines
339 B
JavaScript
// 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
|
|
|
|
var v = 1e9;
|
|
function f() { return Math.floor(v / 10); }
|
|
assertEquals(1e8, f());
|
|
%OptimizeFunctionOnNextCall(f);
|
|
assertEquals(1e8, f());
|