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

Side by Side Diff: src/d8.cc

Issue 10417010: Run Crankshaft on a separate thread. (Closed) Base URL: https://chromiumcodereview.appspot.com/10387157
Patch Set: Set optimize_in_parallel to false by default. Created 8 years, 7 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/api.cc ('k') | src/factory.h » ('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 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 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after
1540 options.stress_opt ? Testing::kStressTypeOpt 1540 options.stress_opt ? Testing::kStressTypeOpt
1541 : Testing::kStressTypeDeopt); 1541 : Testing::kStressTypeDeopt);
1542 int stress_runs = Testing::GetStressRuns(); 1542 int stress_runs = Testing::GetStressRuns();
1543 for (int i = 0; i < stress_runs && result == 0; i++) { 1543 for (int i = 0; i < stress_runs && result == 0; i++) {
1544 printf("============ Stress %d/%d ============\n", i + 1, stress_runs); 1544 printf("============ Stress %d/%d ============\n", i + 1, stress_runs);
1545 Testing::PrepareStressRun(i); 1545 Testing::PrepareStressRun(i);
1546 options.last_run = (i == stress_runs - 1); 1546 options.last_run = (i == stress_runs - 1);
1547 result = RunMain(argc, argv); 1547 result = RunMain(argc, argv);
1548 } 1548 }
1549 printf("======== Full Deoptimization =======\n"); 1549 printf("======== Full Deoptimization =======\n");
1550 Locker lock;
1550 Testing::DeoptimizeAll(); 1551 Testing::DeoptimizeAll();
1551 #if !defined(V8_SHARED) 1552 #if !defined(V8_SHARED)
1552 } else if (i::FLAG_stress_runs > 0) { 1553 } else if (i::FLAG_stress_runs > 0) {
1553 int stress_runs = i::FLAG_stress_runs; 1554 int stress_runs = i::FLAG_stress_runs;
1554 for (int i = 0; i < stress_runs && result == 0; i++) { 1555 for (int i = 0; i < stress_runs && result == 0; i++) {
1555 printf("============ Run %d/%d ============\n", i + 1, stress_runs); 1556 printf("============ Run %d/%d ============\n", i + 1, stress_runs);
1556 options.last_run = (i == stress_runs - 1); 1557 options.last_run = (i == stress_runs - 1);
1557 result = RunMain(argc, argv); 1558 result = RunMain(argc, argv);
1558 } 1559 }
1559 #endif 1560 #endif
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1595 } 1596 }
1596 1597
1597 } // namespace v8 1598 } // namespace v8
1598 1599
1599 1600
1600 #ifndef GOOGLE3 1601 #ifndef GOOGLE3
1601 int main(int argc, char* argv[]) { 1602 int main(int argc, char* argv[]) {
1602 return v8::Shell::Main(argc, argv); 1603 return v8::Shell::Main(argc, argv);
1603 } 1604 }
1604 #endif 1605 #endif
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698