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

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

Issue 1768263004: [turbofan] [deoptimizer] Support inlining of ES6 tail calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing comments, StandardFrameConstants -> CommonFrameConstants 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
« no previous file with comments | « src/x64/deoptimizer-x64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 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 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 --harmony-tailcalls --no-turbo-inlining 5 // Flags: --allow-natives-syntax --harmony-tailcalls
6 // TODO(v8:4698), TODO(ishell): support these cases. 6 // TODO(v8:4698), TODO(ishell): support these cases.
7 // Flags: --nostress-opt 7 // Flags: --turbo --nostress-opt
8 8
9 9
10 Error.prepareStackTrace = (error,stack) => { 10 Error.prepareStackTrace = (error,stack) => {
11 error.strace = stack; 11 error.strace = stack;
12 return error.message + "\n at " + stack.join("\n at "); 12 return error.message + "\n at " + stack.join("\n at ");
13 } 13 }
14 14
15 15
16 function checkStackTrace(expected) { 16 function checkStackTrace(expected) {
17 var e = new Error(); 17 var e = new Error();
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 ` %OptimizeFunctionOnNextCall(f);`, 299 ` %OptimizeFunctionOnNextCall(f);`,
300 ` %OptimizeFunctionOnNextCall(g);`, 300 ` %OptimizeFunctionOnNextCall(g);`,
301 ` test();`, 301 ` test();`,
302 `})();`, 302 `})();`,
303 ``, 303 ``,
304 ]; 304 ];
305 var source = lines.join("\n"); 305 var source = lines.join("\n");
306 return source; 306 return source;
307 } 307 }
308 308
309 // TODO(v8:4698), TODO(ishell): support all commented cases.
310 var f_args_variants = ["", "1", "1, 2"]; 309 var f_args_variants = ["", "1", "1, 2"];
311 var g_args_variants = ["", "10", "10, 20"]; 310 var g_args_variants = ["", "10", "10, 20"];
312 var f_inlinable_variants = [/*true,*/ false]; 311 var f_inlinable_variants = [true, false];
313 var g_inlinable_variants = [/*true,*/ false]; 312 var g_inlinable_variants = [true, false];
314 var f_variants = [ 313 var f_variants = [
315 f_cfg_sloppy, 314 f_cfg_sloppy,
316 f_cfg_strict, 315 f_cfg_strict,
317 f_cfg_bound, 316 f_cfg_bound,
318 f_cfg_proxy, 317 f_cfg_proxy,
319 f_cfg_possibly_eval, 318 f_cfg_possibly_eval,
320 ]; 319 ];
321 var g_variants = [ 320 var g_variants = [
322 g_cfg_normal, 321 g_cfg_normal,
323 g_cfg_function_call, 322 g_cfg_function_call,
(...skipping 27 matching lines...) Expand all
351 }); 350 });
352 }); 351 });
353 }); 352 });
354 }); 353 });
355 }); 354 });
356 }); 355 });
357 }); 356 });
358 } 357 }
359 358
360 run_tests(); 359 run_tests();
OLDNEW
« no previous file with comments | « src/x64/deoptimizer-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698