| 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 | 5 // Flags: --allow-natives-syntax --harmony-tailcalls |
| 6 | 6 |
| 7 | 7 |
| 8 Error.prepareStackTrace = (error,stack) => { | 8 Error.prepareStackTrace = (error,stack) => { |
| 9 error.strace = stack; | 9 error.strace = stack; |
| 10 return error.message + "\n at " + stack.join("\n at "); | 10 return error.message + "\n at " + stack.join("\n at "); |
| (...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 g_cfg_reflect_apply, | 359 g_cfg_reflect_apply, |
| 360 g_cfg_function_apply, | 360 g_cfg_function_apply, |
| 361 g_cfg_function_apply_arguments_object, | 361 g_cfg_function_apply_arguments_object, |
| 362 g_cfg_function_call, | 362 g_cfg_function_call, |
| 363 ]; | 363 ]; |
| 364 var test_warmup_counts = [0, 1, 2]; | 364 var test_warmup_counts = [0, 1, 2]; |
| 365 | 365 |
| 366 var iter = 0; | 366 var iter = 0; |
| 367 var tests_executed = 0; | 367 var tests_executed = 0; |
| 368 if (shard !== undefined) { | 368 if (shard !== undefined) { |
| 369 print("Running shard #" + shard); | 369 // print("Running shard #" + shard); |
| 370 } | 370 } |
| 371 f_variants.forEach((f_cfg) => { | 371 f_variants.forEach((f_cfg) => { |
| 372 check_new_target_variants.forEach((check_new_target) => { | 372 check_new_target_variants.forEach((check_new_target) => { |
| 373 deopt_mode_variants.forEach((deopt_mode) => { | 373 deopt_mode_variants.forEach((deopt_mode) => { |
| 374 g_variants.forEach((g_cfg) => { | 374 g_variants.forEach((g_cfg) => { |
| 375 f_args_variants.forEach((f_args) => { | 375 f_args_variants.forEach((f_args) => { |
| 376 g_args_variants.forEach((g_args) => { | 376 g_args_variants.forEach((g_args) => { |
| 377 f_inlinable_variants.forEach((f_inlinable) => { | 377 f_inlinable_variants.forEach((f_inlinable) => { |
| 378 g_inlinable_variants.forEach((g_inlinable) => { | 378 g_inlinable_variants.forEach((g_inlinable) => { |
| 379 test_warmup_counts.forEach((test_warmup_count) => { | 379 test_warmup_counts.forEach((test_warmup_count) => { |
| 380 if (shard !== undefined && (iter++) % SHARDS_COUNT != shard)
{ | 380 if (shard !== undefined && (iter++) % SHARDS_COUNT != shard)
{ |
| 381 print("skipping..."); | 381 // print("skipping..."); |
| 382 return; | 382 return; |
| 383 } | 383 } |
| 384 tests_executed++; | 384 tests_executed++; |
| 385 var cfg = { | 385 var cfg = { |
| 386 f_source_template: f_cfg.source_template, | 386 f_source_template: f_cfg.source_template, |
| 387 f_inlinable, | 387 f_inlinable, |
| 388 f_args, | 388 f_args, |
| 389 f_name: f_cfg.func_name, | 389 f_name: f_cfg.func_name, |
| 390 f_receiver: g_cfg.receiver, | 390 f_receiver: g_cfg.receiver, |
| 391 g_source_template: g_cfg.source_template, | 391 g_source_template: g_cfg.source_template, |
| 392 g_inlinable, | 392 g_inlinable, |
| 393 g_args, | 393 g_args, |
| 394 test_warmup_count, | 394 test_warmup_count, |
| 395 check_new_target, | 395 check_new_target, |
| 396 deopt_mode, | 396 deopt_mode, |
| 397 }; | 397 }; |
| 398 var source = test_template(cfg); | 398 var source = test_template(cfg); |
| 399 print("===================="); | 399 // print("===================="); |
| 400 print(source); | 400 // print(source); |
| 401 eval(source); | 401 eval(source); |
| 402 }); | 402 }); |
| 403 }); | 403 }); |
| 404 }); | 404 }); |
| 405 }); | 405 }); |
| 406 }); | 406 }); |
| 407 }); | 407 }); |
| 408 }); | 408 }); |
| 409 }); | 409 }); |
| 410 }); | 410 }); |
| 411 print("Number of tests executed: " + tests_executed); | 411 // print("Number of tests executed: " + tests_executed); |
| 412 } | 412 } |
| 413 | 413 |
| 414 // Uncomment to run all the tests at once or use shard runners. | 414 // Uncomment to run all the tests at once or use shard runners. |
| 415 //run_tests(); | 415 //run_tests(); |
| OLD | NEW |