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 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 // Expose the builtins object in the debugger context. | 846 // Expose the builtins object in the debugger context. |
847 Handle<String> key = isolate_->factory()->InternalizeOneByteString( | 847 Handle<String> key = isolate_->factory()->InternalizeOneByteString( |
848 STATIC_ASCII_VECTOR("builtins")); | 848 STATIC_ASCII_VECTOR("builtins")); |
849 Handle<GlobalObject> global = Handle<GlobalObject>(context->global_object()); | 849 Handle<GlobalObject> global = Handle<GlobalObject>(context->global_object()); |
850 RETURN_IF_EMPTY_HANDLE_VALUE( | 850 RETURN_IF_EMPTY_HANDLE_VALUE( |
851 isolate_, | 851 isolate_, |
852 JSReceiver::SetProperty(global, | 852 JSReceiver::SetProperty(global, |
853 key, | 853 key, |
854 Handle<Object>(global->builtins(), isolate_), | 854 Handle<Object>(global->builtins(), isolate_), |
855 NONE, | 855 NONE, |
856 kNonStrictMode), | 856 kSloppyMode), |
857 false); | 857 false); |
858 | 858 |
859 // Compile the JavaScript for the debugger in the debugger context. | 859 // Compile the JavaScript for the debugger in the debugger context. |
860 debugger->set_compiling_natives(true); | 860 debugger->set_compiling_natives(true); |
861 bool caught_exception = | 861 bool caught_exception = |
862 !CompileDebuggerScript(isolate_, Natives::GetIndex("mirror")) || | 862 !CompileDebuggerScript(isolate_, Natives::GetIndex("mirror")) || |
863 !CompileDebuggerScript(isolate_, Natives::GetIndex("debug")); | 863 !CompileDebuggerScript(isolate_, Natives::GetIndex("debug")); |
864 | 864 |
865 if (FLAG_enable_liveedit) { | 865 if (FLAG_enable_liveedit) { |
866 caught_exception = caught_exception || | 866 caught_exception = caught_exception || |
(...skipping 2937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3804 { | 3804 { |
3805 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); | 3805 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); |
3806 isolate_->debugger()->CallMessageDispatchHandler(); | 3806 isolate_->debugger()->CallMessageDispatchHandler(); |
3807 } | 3807 } |
3808 } | 3808 } |
3809 } | 3809 } |
3810 | 3810 |
3811 #endif // ENABLE_DEBUGGER_SUPPORT | 3811 #endif // ENABLE_DEBUGGER_SUPPORT |
3812 | 3812 |
3813 } } // namespace v8::internal | 3813 } } // namespace v8::internal |
OLD | NEW |