7ffc331d64
R=jarin@chromium.org Bug: chromium:791958 Change-Id: I483558270f4dfa845dff4ff88076be27bb15cc8e Reviewed-on: https://chromium-review.googlesource.com/808804 Reviewed-by: Jaroslav Sevcik <jarin@chromium.org> Commit-Queue: Georg Neis <neis@chromium.org> Cr-Commit-Position: refs/heads/master@{#49867}
16 lines
386 B
JavaScript
16 lines
386 B
JavaScript
// Copyright 2017 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
|
|
|
|
obj = {m: print};
|
|
function foo() {
|
|
for (var x = -536870912; x != -536870903; ++x) {
|
|
obj.m(-x >= 1000000 ? x % 1000000 : y);
|
|
}
|
|
}
|
|
foo();
|
|
%OptimizeFunctionOnNextCall(foo);
|
|
foo();
|