| OLD | NEW |
| 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 2477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2488 result = RunMain(isolate, argc, argv, last_run); | 2488 result = RunMain(isolate, argc, argv, last_run); |
| 2489 } | 2489 } |
| 2490 | 2490 |
| 2491 // Run interactive shell if explicitly requested or if no script has been | 2491 // Run interactive shell if explicitly requested or if no script has been |
| 2492 // executed, but never on --test | 2492 // executed, but never on --test |
| 2493 if (options.use_interactive_shell()) { | 2493 if (options.use_interactive_shell()) { |
| 2494 RunShell(isolate); | 2494 RunShell(isolate); |
| 2495 } | 2495 } |
| 2496 | 2496 |
| 2497 #ifndef V8_SHARED | 2497 #ifndef V8_SHARED |
| 2498 if (i::FLAG_ignition && i::FLAG_trace_ignition_dispatches) { | 2498 if (i::FLAG_ignition && i::FLAG_trace_ignition_dispatches && |
| 2499 i::FLAG_trace_ignition_dispatches_output_file != nullptr) { |
| 2499 WriteIgnitionDispatchCountersFile(isolate); | 2500 WriteIgnitionDispatchCountersFile(isolate); |
| 2500 } | 2501 } |
| 2501 #endif | 2502 #endif |
| 2502 | 2503 |
| 2503 // Shut down contexts and collect garbage. | 2504 // Shut down contexts and collect garbage. |
| 2504 evaluation_context_.Reset(); | 2505 evaluation_context_.Reset(); |
| 2505 #ifndef V8_SHARED | 2506 #ifndef V8_SHARED |
| 2506 stringify_function_.Reset(); | 2507 stringify_function_.Reset(); |
| 2507 #endif // !V8_SHARED | 2508 #endif // !V8_SHARED |
| 2508 CollectGarbage(isolate); | 2509 CollectGarbage(isolate); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 2525 } | 2526 } |
| 2526 | 2527 |
| 2527 } // namespace v8 | 2528 } // namespace v8 |
| 2528 | 2529 |
| 2529 | 2530 |
| 2530 #ifndef GOOGLE3 | 2531 #ifndef GOOGLE3 |
| 2531 int main(int argc, char* argv[]) { | 2532 int main(int argc, char* argv[]) { |
| 2532 return v8::Shell::Main(argc, argv); | 2533 return v8::Shell::Main(argc, argv); |
| 2533 } | 2534 } |
| 2534 #endif | 2535 #endif |
| OLD | NEW |