| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 89 static Handle<Code> ComputeCallDebugPrepareStepIn(int argc, Code::Kind kind) { | 89 static Handle<Code> ComputeCallDebugPrepareStepIn(int argc, Code::Kind kind) { |
| 90 Isolate* isolate = Isolate::Current(); | 90 Isolate* isolate = Isolate::Current(); |
| 91 return isolate->stub_cache()->ComputeCallDebugPrepareStepIn(argc, kind); | 91 return isolate->stub_cache()->ComputeCallDebugPrepareStepIn(argc, kind); |
| 92 } | 92 } |
| 93 | 93 |
| 94 | 94 |
| 95 static v8::Handle<v8::Context> GetDebugEventContext(Isolate* isolate) { | 95 static v8::Handle<v8::Context> GetDebugEventContext(Isolate* isolate) { |
| 96 Handle<Context> context = isolate->debug()->debugger_entry()->GetContext(); | 96 Handle<Context> context = isolate->debug()->debugger_entry()->GetContext(); |
| 97 // Isolate::context() may have been NULL when "script collected" event | 97 // Isolate::context() may have been NULL when "script collected" event |
| 98 // occured. | 98 // occurred. |
| 99 if (context.is_null()) return v8::Local<v8::Context>(); | 99 if (context.is_null()) return v8::Local<v8::Context>(); |
| 100 Handle<Context> native_context(context->native_context()); | 100 Handle<Context> native_context(context->native_context()); |
| 101 return v8::Utils::ToLocal(native_context); | 101 return v8::Utils::ToLocal(native_context); |
| 102 } | 102 } |
| 103 | 103 |
| 104 | 104 |
| 105 BreakLocationIterator::BreakLocationIterator(Handle<DebugInfo> debug_info, | 105 BreakLocationIterator::BreakLocationIterator(Handle<DebugInfo> debug_info, |
| 106 BreakLocatorType type) { | 106 BreakLocatorType type) { |
| 107 debug_info_ = debug_info; | 107 debug_info_ = debug_info; |
| 108 type_ = type; | 108 type_ = type; |
| (...skipping 3689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3798 { | 3798 { |
| 3799 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); | 3799 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); |
| 3800 isolate_->debugger()->CallMessageDispatchHandler(); | 3800 isolate_->debugger()->CallMessageDispatchHandler(); |
| 3801 } | 3801 } |
| 3802 } | 3802 } |
| 3803 } | 3803 } |
| 3804 | 3804 |
| 3805 #endif // ENABLE_DEBUGGER_SUPPORT | 3805 #endif // ENABLE_DEBUGGER_SUPPORT |
| 3806 | 3806 |
| 3807 } } // namespace v8::internal | 3807 } } // namespace v8::internal |
| OLD | NEW |