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 1728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1739 // executed, but never on --test | 1739 // executed, but never on --test |
1740 if (options.use_interactive_shell()) { | 1740 if (options.use_interactive_shell()) { |
1741 #ifndef V8_SHARED | 1741 #ifndef V8_SHARED |
1742 if (!i::FLAG_debugger) { | 1742 if (!i::FLAG_debugger) { |
1743 InstallUtilityScript(isolate); | 1743 InstallUtilityScript(isolate); |
1744 } | 1744 } |
1745 #endif // !V8_SHARED | 1745 #endif // !V8_SHARED |
1746 RunShell(isolate); | 1746 RunShell(isolate); |
1747 } | 1747 } |
1748 } | 1748 } |
| 1749 OnExit(); |
1749 #ifndef V8_SHARED | 1750 #ifndef V8_SHARED |
1750 // Dump basic block profiling data. | 1751 // Dump basic block profiling data. |
1751 if (i::BasicBlockProfiler* profiler = | 1752 if (i::BasicBlockProfiler* profiler = |
1752 reinterpret_cast<i::Isolate*>(isolate)->basic_block_profiler()) { | 1753 reinterpret_cast<i::Isolate*>(isolate)->basic_block_profiler()) { |
1753 i::OFStream os(stdout); | 1754 i::OFStream os(stdout); |
1754 os << *profiler; | 1755 os << *profiler; |
1755 } | 1756 } |
1756 #endif // !V8_SHARED | 1757 #endif // !V8_SHARED |
1757 isolate->Dispose(); | 1758 isolate->Dispose(); |
1758 V8::Dispose(); | 1759 V8::Dispose(); |
1759 V8::ShutdownPlatform(); | 1760 V8::ShutdownPlatform(); |
1760 delete platform; | 1761 delete platform; |
1761 | 1762 |
1762 OnExit(); | |
1763 | |
1764 return result; | 1763 return result; |
1765 } | 1764 } |
1766 | 1765 |
1767 } // namespace v8 | 1766 } // namespace v8 |
1768 | 1767 |
1769 | 1768 |
1770 #ifndef GOOGLE3 | 1769 #ifndef GOOGLE3 |
1771 int main(int argc, char* argv[]) { | 1770 int main(int argc, char* argv[]) { |
1772 return v8::Shell::Main(argc, argv); | 1771 return v8::Shell::Main(argc, argv); |
1773 } | 1772 } |
1774 #endif | 1773 #endif |
OLD | NEW |