| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/api.h" | 5 #include "src/api.h" |
| 6 | 6 |
| 7 #include <string.h> // For memcpy, strlen. | 7 #include <string.h> // For memcpy, strlen. |
| 8 #ifdef V8_USE_ADDRESS_SANITIZER | 8 #ifdef V8_USE_ADDRESS_SANITIZER |
| 9 #include <sanitizer/asan_interface.h> | 9 #include <sanitizer/asan_interface.h> |
| 10 #endif // V8_USE_ADDRESS_SANITIZER | 10 #endif // V8_USE_ADDRESS_SANITIZER |
| (...skipping 9133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9144 CHECK(isolate->debug()->CheckExecutionState()); | 9144 CHECK(isolate->debug()->CheckExecutionState()); |
| 9145 // Clear all current stepping setup. | 9145 // Clear all current stepping setup. |
| 9146 isolate->debug()->ClearStepping(); | 9146 isolate->debug()->ClearStepping(); |
| 9147 // Prepare step. | 9147 // Prepare step. |
| 9148 isolate->debug()->PrepareStep(static_cast<i::StepAction>(action)); | 9148 isolate->debug()->PrepareStep(static_cast<i::StepAction>(action)); |
| 9149 } | 9149 } |
| 9150 | 9150 |
| 9151 void debug::ClearStepping(Isolate* v8_isolate) { | 9151 void debug::ClearStepping(Isolate* v8_isolate) { |
| 9152 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate); | 9152 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate); |
| 9153 ENTER_V8(isolate); | 9153 ENTER_V8(isolate); |
| 9154 CHECK(isolate->debug()->CheckExecutionState()); | |
| 9155 // Clear all current stepping setup. | 9154 // Clear all current stepping setup. |
| 9156 isolate->debug()->ClearStepping(); | 9155 isolate->debug()->ClearStepping(); |
| 9157 } | 9156 } |
| 9158 | 9157 |
| 9159 void debug::BreakRightNow(Isolate* v8_isolate) { | 9158 void debug::BreakRightNow(Isolate* v8_isolate) { |
| 9160 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate); | 9159 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate); |
| 9161 ENTER_V8(isolate); | 9160 ENTER_V8(isolate); |
| 9162 isolate->debug()->HandleDebugBreak(i::kIgnoreIfAllFramesBlackboxed); | 9161 isolate->debug()->HandleDebugBreak(i::kIgnoreIfAllFramesBlackboxed); |
| 9163 } | 9162 } |
| 9164 | 9163 |
| (...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10341 Address callback_address = | 10340 Address callback_address = |
| 10342 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 10341 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
| 10343 VMState<EXTERNAL> state(isolate); | 10342 VMState<EXTERNAL> state(isolate); |
| 10344 ExternalCallbackScope call_scope(isolate, callback_address); | 10343 ExternalCallbackScope call_scope(isolate, callback_address); |
| 10345 callback(info); | 10344 callback(info); |
| 10346 } | 10345 } |
| 10347 | 10346 |
| 10348 | 10347 |
| 10349 } // namespace internal | 10348 } // namespace internal |
| 10350 } // namespace v8 | 10349 } // namespace v8 |
| OLD | NEW |