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 9139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9150 CHECK(isolate->debug()->CheckExecutionState()); | 9150 CHECK(isolate->debug()->CheckExecutionState()); |
9151 // Clear all current stepping setup. | 9151 // Clear all current stepping setup. |
9152 isolate->debug()->ClearStepping(); | 9152 isolate->debug()->ClearStepping(); |
9153 // Prepare step. | 9153 // Prepare step. |
9154 isolate->debug()->PrepareStep(static_cast<i::StepAction>(action)); | 9154 isolate->debug()->PrepareStep(static_cast<i::StepAction>(action)); |
9155 } | 9155 } |
9156 | 9156 |
9157 void debug::ClearStepping(Isolate* v8_isolate) { | 9157 void debug::ClearStepping(Isolate* v8_isolate) { |
9158 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate); | 9158 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate); |
9159 ENTER_V8(isolate); | 9159 ENTER_V8(isolate); |
9160 CHECK(isolate->debug()->CheckExecutionState()); | |
9161 // Clear all current stepping setup. | 9160 // Clear all current stepping setup. |
9162 isolate->debug()->ClearStepping(); | 9161 isolate->debug()->ClearStepping(); |
9163 } | 9162 } |
9164 | 9163 |
9165 void debug::BreakRightNow(Isolate* v8_isolate) { | 9164 void debug::BreakRightNow(Isolate* v8_isolate) { |
9166 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate); | 9165 i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate); |
9167 ENTER_V8(isolate); | 9166 ENTER_V8(isolate); |
9168 isolate->debug()->HandleDebugBreak(i::kIgnoreIfAllFramesBlackboxed); | 9167 isolate->debug()->HandleDebugBreak(i::kIgnoreIfAllFramesBlackboxed); |
9169 } | 9168 } |
9170 | 9169 |
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10347 Address callback_address = | 10346 Address callback_address = |
10348 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 10347 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
10349 VMState<EXTERNAL> state(isolate); | 10348 VMState<EXTERNAL> state(isolate); |
10350 ExternalCallbackScope call_scope(isolate, callback_address); | 10349 ExternalCallbackScope call_scope(isolate, callback_address); |
10351 callback(info); | 10350 callback(info); |
10352 } | 10351 } |
10353 | 10352 |
10354 | 10353 |
10355 } // namespace internal | 10354 } // namespace internal |
10356 } // namespace v8 | 10355 } // namespace v8 |
OLD | NEW |