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

Side by Side Diff: test/mjsunit/call-runtime-tail.js

Issue 1387393002: [turbofan] Add initial support for global specialization. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@AstGraphBuilder
Patch Set: Fix typo. Created 5 years, 2 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
« no previous file with comments | « test/cctest/test-compiler.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --allow-natives-syntax --nostress-opt --turbo 5 // Flags: --allow-natives-syntax --nostress-opt --turbo
6 // Flags: --nonative-context-specialization
6 7
7 var p0 = new Object(); 8 var p0 = new Object();
8 var p1 = new Object(); 9 var p1 = new Object();
9 var p2 = new Object(); 10 var p2 = new Object();
10 11
11 // Ensure 1 parameter passed straight-through is handled correctly 12 // Ensure 1 parameter passed straight-through is handled correctly
12 var count1 = 100000; 13 var count1 = 100000;
13 tailee1 = function() { 14 tailee1 = function() {
14 "use strict"; 15 "use strict";
15 if (count1-- == 0) { 16 if (count1-- == 0) {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 tailee5 = function(px) { 73 tailee5 = function(px) {
73 "use strict"; 74 "use strict";
74 if (count5-- == 0) { 75 if (count5-- == 0) {
75 return this; 76 return this;
76 } 77 }
77 return %_CallFunction(this, tailee5); 78 return %_CallFunction(this, tailee5);
78 }; 79 };
79 80
80 %OptimizeFunctionOnNextCall(tailee5); 81 %OptimizeFunctionOnNextCall(tailee5);
81 assertThrows(function() { tailee5.call(p1, p2); }); 82 assertThrows(function() { tailee5.call(p1, p2); });
OLDNEW
« no previous file with comments | « test/cctest/test-compiler.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698