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 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 i::Handle<i::Object> compiled_script = Utils::OpenHandle(*script); | 790 i::Handle<i::Object> compiled_script = Utils::OpenHandle(*script); |
791 i::Handle<i::Script> script_object = compiled_script->IsJSFunction() | 791 i::Handle<i::Script> script_object = compiled_script->IsJSFunction() |
792 ? i::Handle<i::Script>(i::Script::cast( | 792 ? i::Handle<i::Script>(i::Script::cast( |
793 i::JSFunction::cast(*compiled_script)->shared()->script())) | 793 i::JSFunction::cast(*compiled_script)->shared()->script())) |
794 : i::Handle<i::Script>(i::Script::cast( | 794 : i::Handle<i::Script>(i::Script::cast( |
795 i::SharedFunctionInfo::cast(*compiled_script)->script())); | 795 i::SharedFunctionInfo::cast(*compiled_script)->script())); |
796 script_object->set_type(i::Smi::FromInt(i::Script::TYPE_NATIVE)); | 796 script_object->set_type(i::Smi::FromInt(i::Script::TYPE_NATIVE)); |
797 | 797 |
798 // Start the in-process debugger if requested. | 798 // Start the in-process debugger if requested. |
799 if (i::FLAG_debugger && !i::FLAG_debugger_agent) { | 799 if (i::FLAG_debugger && !i::FLAG_debugger_agent) { |
800 v8::Debug::SetDebugEventListener2(HandleDebugEvent); | 800 v8::Debug::SetDebugEventListener(HandleDebugEvent); |
801 } | 801 } |
802 } | 802 } |
803 #endif // !V8_SHARED | 803 #endif // !V8_SHARED |
804 | 804 |
805 | 805 |
806 #ifdef COMPRESS_STARTUP_DATA_BZ2 | 806 #ifdef COMPRESS_STARTUP_DATA_BZ2 |
807 class BZip2Decompressor : public v8::StartupDataDecompressor { | 807 class BZip2Decompressor : public v8::StartupDataDecompressor { |
808 public: | 808 public: |
809 virtual ~BZip2Decompressor() { } | 809 virtual ~BZip2Decompressor() { } |
810 | 810 |
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1584 } | 1584 } |
1585 | 1585 |
1586 } // namespace v8 | 1586 } // namespace v8 |
1587 | 1587 |
1588 | 1588 |
1589 #ifndef GOOGLE3 | 1589 #ifndef GOOGLE3 |
1590 int main(int argc, char* argv[]) { | 1590 int main(int argc, char* argv[]) { |
1591 return v8::Shell::Main(argc, argv); | 1591 return v8::Shell::Main(argc, argv); |
1592 } | 1592 } |
1593 #endif | 1593 #endif |
OLD | NEW |