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

Side by Side Diff: src/d8.cc

Issue 1474353002: Remove easy to remove calls to Isolate::Current() from api.cc (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: update Created 5 years 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
« include/v8.h ('K') | « src/api.cc ('k') | src/objects.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 // 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 5
6 // Defined when linking against shared lib on Windows. 6 // Defined when linking against shared lib on Windows.
7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED) 7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED)
8 #define V8_SHARED 8 #define V8_SHARED
9 #endif 9 #endif
10 10
(...skipping 2461 matching lines...) Expand 10 before | Expand all | Expand 10 after
2472 : Testing::kStressTypeDeopt); 2472 : Testing::kStressTypeDeopt);
2473 options.stress_runs = Testing::GetStressRuns(); 2473 options.stress_runs = Testing::GetStressRuns();
2474 for (int i = 0; i < options.stress_runs && result == 0; i++) { 2474 for (int i = 0; i < options.stress_runs && result == 0; i++) {
2475 printf("============ Stress %d/%d ============\n", i + 1, 2475 printf("============ Stress %d/%d ============\n", i + 1,
2476 options.stress_runs); 2476 options.stress_runs);
2477 Testing::PrepareStressRun(i); 2477 Testing::PrepareStressRun(i);
2478 bool last_run = i == options.stress_runs - 1; 2478 bool last_run = i == options.stress_runs - 1;
2479 result = RunMain(isolate, argc, argv, last_run); 2479 result = RunMain(isolate, argc, argv, last_run);
2480 } 2480 }
2481 printf("======== Full Deoptimization =======\n"); 2481 printf("======== Full Deoptimization =======\n");
2482 Testing::DeoptimizeAll(); 2482 Testing::DeoptimizeAll(isolate);
2483 #if !defined(V8_SHARED) 2483 #if !defined(V8_SHARED)
2484 } else if (i::FLAG_stress_runs > 0) { 2484 } else if (i::FLAG_stress_runs > 0) {
2485 options.stress_runs = i::FLAG_stress_runs; 2485 options.stress_runs = i::FLAG_stress_runs;
2486 for (int i = 0; i < options.stress_runs && result == 0; i++) { 2486 for (int i = 0; i < options.stress_runs && result == 0; i++) {
2487 printf("============ Run %d/%d ============\n", i + 1, 2487 printf("============ Run %d/%d ============\n", i + 1,
2488 options.stress_runs); 2488 options.stress_runs);
2489 bool last_run = i == options.stress_runs - 1; 2489 bool last_run = i == options.stress_runs - 1;
2490 result = RunMain(isolate, argc, argv, last_run); 2490 result = RunMain(isolate, argc, argv, last_run);
2491 } 2491 }
2492 #endif 2492 #endif
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
2529 } 2529 }
2530 2530
2531 } // namespace v8 2531 } // namespace v8
2532 2532
2533 2533
2534 #ifndef GOOGLE3 2534 #ifndef GOOGLE3
2535 int main(int argc, char* argv[]) { 2535 int main(int argc, char* argv[]) {
2536 return v8::Shell::Main(argc, argv); 2536 return v8::Shell::Main(argc, argv);
2537 } 2537 }
2538 #endif 2538 #endif
OLDNEW
« include/v8.h ('K') | « src/api.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698