[compiler] Add regression test exhibiting int64 deopt literals.
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}
This commit is contained in:
parent
b6c334d568
commit
7ffc331d64
15
test/mjsunit/regress/regress-791958.js
Normal file
15
test/mjsunit/regress/regress-791958.js
Normal file
@ -0,0 +1,15 @@
|
||||
// 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();
|
Loading…
Reference in New Issue
Block a user