OLD | NEW |
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 Loading... |
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 Loading... |
351 }); | 350 }); |
352 }); | 351 }); |
353 }); | 352 }); |
354 }); | 353 }); |
355 }); | 354 }); |
356 }); | 355 }); |
357 }); | 356 }); |
358 } | 357 } |
359 | 358 |
360 run_tests(); | 359 run_tests(); |
OLD | NEW |