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 1705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1716 if (( options.interactive_shell || !options.script_executed ) | 1716 if (( options.interactive_shell || !options.script_executed ) |
1717 && !options.test_shell ) { | 1717 && !options.test_shell ) { |
1718 #ifndef V8_SHARED | 1718 #ifndef V8_SHARED |
1719 if (!i::FLAG_debugger) { | 1719 if (!i::FLAG_debugger) { |
1720 InstallUtilityScript(isolate); | 1720 InstallUtilityScript(isolate); |
1721 } | 1721 } |
1722 #endif // !V8_SHARED | 1722 #endif // !V8_SHARED |
1723 RunShell(isolate); | 1723 RunShell(isolate); |
1724 } | 1724 } |
1725 } | 1725 } |
| 1726 isolate->Dispose(); |
1726 V8::Dispose(); | 1727 V8::Dispose(); |
1727 | 1728 |
1728 OnExit(); | 1729 OnExit(); |
1729 | 1730 |
1730 return result; | 1731 return result; |
1731 } | 1732 } |
1732 | 1733 |
1733 } // namespace v8 | 1734 } // namespace v8 |
1734 | 1735 |
1735 | 1736 |
1736 #ifndef GOOGLE3 | 1737 #ifndef GOOGLE3 |
1737 int main(int argc, char* argv[]) { | 1738 int main(int argc, char* argv[]) { |
1738 return v8::Shell::Main(argc, argv); | 1739 return v8::Shell::Main(argc, argv); |
1739 } | 1740 } |
1740 #endif | 1741 #endif |
OLD | NEW |