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 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 return false; | 847 return false; |
848 debugger->set_loading_debugger(true); | 848 debugger->set_loading_debugger(true); |
849 | 849 |
850 // Disable breakpoints and interrupts while compiling and running the | 850 // Disable breakpoints and interrupts while compiling and running the |
851 // debugger scripts including the context creation code. | 851 // debugger scripts including the context creation code. |
852 DisableBreak disable(isolate_, true); | 852 DisableBreak disable(isolate_, true); |
853 PostponeInterruptsScope postpone(isolate_); | 853 PostponeInterruptsScope postpone(isolate_); |
854 | 854 |
855 // Create the debugger context. | 855 // Create the debugger context. |
856 HandleScope scope(isolate_); | 856 HandleScope scope(isolate_); |
| 857 ExtensionConfiguration no_extensions; |
857 Handle<Context> context = | 858 Handle<Context> context = |
858 isolate_->bootstrapper()->CreateEnvironment( | 859 isolate_->bootstrapper()->CreateEnvironment( |
859 Handle<Object>::null(), | 860 Handle<Object>::null(), |
860 v8::Handle<ObjectTemplate>(), | 861 v8::Handle<ObjectTemplate>(), |
861 NULL); | 862 &no_extensions); |
862 | 863 |
863 // Fail if no context could be created. | 864 // Fail if no context could be created. |
864 if (context.is_null()) return false; | 865 if (context.is_null()) return false; |
865 | 866 |
866 // Use the debugger context. | 867 // Use the debugger context. |
867 SaveContext save(isolate_); | 868 SaveContext save(isolate_); |
868 isolate_->set_context(*context); | 869 isolate_->set_context(*context); |
869 | 870 |
870 // Expose the builtins object in the debugger context. | 871 // Expose the builtins object in the debugger context. |
871 Handle<String> key = isolate_->factory()->InternalizeOneByteString( | 872 Handle<String> key = isolate_->factory()->InternalizeOneByteString( |
(...skipping 2950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3822 { | 3823 { |
3823 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); | 3824 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); |
3824 isolate_->debugger()->CallMessageDispatchHandler(); | 3825 isolate_->debugger()->CallMessageDispatchHandler(); |
3825 } | 3826 } |
3826 } | 3827 } |
3827 } | 3828 } |
3828 | 3829 |
3829 #endif // ENABLE_DEBUGGER_SUPPORT | 3830 #endif // ENABLE_DEBUGGER_SUPPORT |
3830 | 3831 |
3831 } } // namespace v8::internal | 3832 } } // namespace v8::internal |
OLD | NEW |