Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: test/mjsunit/regress/regress-4788-2.js

Issue 1777503002: Version 5.0.71.10 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.0
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Flags: --allow-natives-syntax
6
7 var f = (function() {
8 "use asm";
9 function foo(x) {
10 return x < x;
11 }
12 return foo;
13 })();
14
15 function deopt(f) {
16 return {
17 toString : function() {
18 %DeoptimizeFunction(f);
19 return "2";
20 }
21 };
22 }
23
24 %OptimizeFunctionOnNextCall(f);
25 assertFalse(f(deopt(f)));
OLDNEW
« no previous file with comments | « test/mjsunit/regress/regress-4788-1.js ('k') | test/unittests/runtime/runtime-interpreter-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698