OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 i::Handle<i::Script> script_object = compiled_script->IsJSFunction() | 803 i::Handle<i::Script> script_object = compiled_script->IsJSFunction() |
804 ? i::Handle<i::Script>(i::Script::cast( | 804 ? i::Handle<i::Script>(i::Script::cast( |
805 i::JSFunction::cast(*compiled_script)->shared()->script())) | 805 i::JSFunction::cast(*compiled_script)->shared()->script())) |
806 : i::Handle<i::Script>(i::Script::cast( | 806 : i::Handle<i::Script>(i::Script::cast( |
807 i::SharedFunctionInfo::cast(*compiled_script)->script())); | 807 i::SharedFunctionInfo::cast(*compiled_script)->script())); |
808 script_object->set_type(i::Smi::FromInt(i::Script::TYPE_NATIVE)); | 808 script_object->set_type(i::Smi::FromInt(i::Script::TYPE_NATIVE)); |
809 | 809 |
810 #ifdef ENABLE_DEBUGGER_SUPPORT | 810 #ifdef ENABLE_DEBUGGER_SUPPORT |
811 // Start the in-process debugger if requested. | 811 // Start the in-process debugger if requested. |
812 if (i::FLAG_debugger && !i::FLAG_debugger_agent) { | 812 if (i::FLAG_debugger && !i::FLAG_debugger_agent) { |
813 v8::Debug::SetDebugEventListener(HandleDebugEvent); | 813 v8::Debug::SetDebugEventListener2(HandleDebugEvent); |
814 } | 814 } |
815 #endif // ENABLE_DEBUGGER_SUPPORT | 815 #endif // ENABLE_DEBUGGER_SUPPORT |
816 } | 816 } |
817 #endif // V8_SHARED | 817 #endif // V8_SHARED |
818 | 818 |
819 | 819 |
820 #ifdef COMPRESS_STARTUP_DATA_BZ2 | 820 #ifdef COMPRESS_STARTUP_DATA_BZ2 |
821 class BZip2Decompressor : public v8::StartupDataDecompressor { | 821 class BZip2Decompressor : public v8::StartupDataDecompressor { |
822 public: | 822 public: |
823 virtual ~BZip2Decompressor() { } | 823 virtual ~BZip2Decompressor() { } |
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1659 } | 1659 } |
1660 | 1660 |
1661 } // namespace v8 | 1661 } // namespace v8 |
1662 | 1662 |
1663 | 1663 |
1664 #ifndef GOOGLE3 | 1664 #ifndef GOOGLE3 |
1665 int main(int argc, char* argv[]) { | 1665 int main(int argc, char* argv[]) { |
1666 return v8::Shell::Main(argc, argv); | 1666 return v8::Shell::Main(argc, argv); |
1667 } | 1667 } |
1668 #endif | 1668 #endif |
OLD | NEW |