OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1478 : Testing::kStressTypeDeopt); | 1478 : Testing::kStressTypeDeopt); |
1479 int stress_runs = Testing::GetStressRuns(); | 1479 int stress_runs = Testing::GetStressRuns(); |
1480 for (int i = 0; i < stress_runs && result == 0; i++) { | 1480 for (int i = 0; i < stress_runs && result == 0; i++) { |
1481 printf("============ Stress %d/%d ============\n", i + 1, stress_runs); | 1481 printf("============ Stress %d/%d ============\n", i + 1, stress_runs); |
1482 Testing::PrepareStressRun(i); | 1482 Testing::PrepareStressRun(i); |
1483 options.last_run = (i == stress_runs - 1); | 1483 options.last_run = (i == stress_runs - 1); |
1484 result = RunMain(argc, argv); | 1484 result = RunMain(argc, argv); |
1485 } | 1485 } |
1486 printf("======== Full Deoptimization =======\n"); | 1486 printf("======== Full Deoptimization =======\n"); |
1487 Testing::DeoptimizeAll(); | 1487 Testing::DeoptimizeAll(); |
| 1488 } else if (i::FLAG_stress_runs > 0) { |
| 1489 int stress_runs = i::FLAG_stress_runs; |
| 1490 for (int i = 0; i < stress_runs && result == 0; i++) { |
| 1491 printf("============ Run %d/%d ============\n", i + 1, stress_runs); |
| 1492 result = RunMain(argc, argv); |
| 1493 } |
1488 } else { | 1494 } else { |
1489 result = RunMain(argc, argv); | 1495 result = RunMain(argc, argv); |
1490 } | 1496 } |
1491 | 1497 |
1492 | 1498 |
1493 #if !defined(V8_SHARED) && defined(ENABLE_DEBUGGER_SUPPORT) | 1499 #if !defined(V8_SHARED) && defined(ENABLE_DEBUGGER_SUPPORT) |
1494 // Run remote debugger if requested, but never on --test | 1500 // Run remote debugger if requested, but never on --test |
1495 if (i::FLAG_remote_debugger && !options.test_shell) { | 1501 if (i::FLAG_remote_debugger && !options.test_shell) { |
1496 InstallUtilityScript(); | 1502 InstallUtilityScript(); |
1497 RunRemoteDebugger(i::FLAG_debugger_port); | 1503 RunRemoteDebugger(i::FLAG_debugger_port); |
(...skipping 25 matching lines...) Expand all Loading... |
1523 } | 1529 } |
1524 | 1530 |
1525 } // namespace v8 | 1531 } // namespace v8 |
1526 | 1532 |
1527 | 1533 |
1528 #ifndef GOOGLE3 | 1534 #ifndef GOOGLE3 |
1529 int main(int argc, char* argv[]) { | 1535 int main(int argc, char* argv[]) { |
1530 return v8::Shell::Main(argc, argv); | 1536 return v8::Shell::Main(argc, argv); |
1531 } | 1537 } |
1532 #endif | 1538 #endif |
OLD | NEW |