[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:
Georg Neis 2017-12-05 14:16:37 +01:00 committed by Commit Bot
parent b6c334d568
commit 7ffc331d64

View 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();