| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 874 isolate->debugger()->set_compiling_natives(false); | 874 isolate->debugger()->set_compiling_natives(false); |
| 875 | 875 |
| 876 // Make sure we mark the debugger as not loading before we might | 876 // Make sure we mark the debugger as not loading before we might |
| 877 // return. | 877 // return. |
| 878 isolate->debugger()->set_loading_debugger(false); | 878 isolate->debugger()->set_loading_debugger(false); |
| 879 | 879 |
| 880 // Check for caught exceptions. | 880 // Check for caught exceptions. |
| 881 if (caught_exception) return false; | 881 if (caught_exception) return false; |
| 882 | 882 |
| 883 // Debugger loaded. | 883 // Debugger loaded. |
| 884 debug_context_ = Handle<Context>::cast( | 884 debug_context_ = context; |
| 885 isolate->global_handles()->Create(*context)); | |
| 886 | 885 |
| 887 return true; | 886 return true; |
| 888 } | 887 } |
| 889 | 888 |
| 890 | 889 |
| 891 void Debug::Unload() { | 890 void Debug::Unload() { |
| 892 // Return debugger is not loaded. | 891 // Return debugger is not loaded. |
| 893 if (!IsLoaded()) { | 892 if (!IsLoaded()) { |
| 894 return; | 893 return; |
| 895 } | 894 } |
| (...skipping 2263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3159 { | 3158 { |
| 3160 Locker locker; | 3159 Locker locker; |
| 3161 Isolate::Current()->debugger()->CallMessageDispatchHandler(); | 3160 Isolate::Current()->debugger()->CallMessageDispatchHandler(); |
| 3162 } | 3161 } |
| 3163 } | 3162 } |
| 3164 } | 3163 } |
| 3165 | 3164 |
| 3166 #endif // ENABLE_DEBUGGER_SUPPORT | 3165 #endif // ENABLE_DEBUGGER_SUPPORT |
| 3167 | 3166 |
| 3168 } } // namespace v8::internal | 3167 } } // namespace v8::internal |
| OLD | NEW |