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/debug/debug.h" | 5 #include "src/debug/debug.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 | 8 |
9 #include "src/api.h" | 9 #include "src/api.h" |
10 #include "src/arguments.h" | 10 #include "src/arguments.h" |
(...skipping 2058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2069 if (is_active || in_debug_scope()) { | 2069 if (is_active || in_debug_scope()) { |
2070 // Note that the debug context could have already been loaded to | 2070 // Note that the debug context could have already been loaded to |
2071 // bootstrap test cases. | 2071 // bootstrap test cases. |
2072 isolate_->compilation_cache()->Disable(); | 2072 isolate_->compilation_cache()->Disable(); |
2073 is_active = Load(); | 2073 is_active = Load(); |
2074 } else if (is_loaded()) { | 2074 } else if (is_loaded()) { |
2075 isolate_->compilation_cache()->Enable(); | 2075 isolate_->compilation_cache()->Enable(); |
2076 Unload(); | 2076 Unload(); |
2077 } | 2077 } |
2078 is_active_ = is_active; | 2078 is_active_ = is_active; |
| 2079 isolate_->DebugStateChanged(); |
2079 } | 2080 } |
2080 | 2081 |
2081 void Debug::UpdateHookOnFunctionCall() { | 2082 void Debug::UpdateHookOnFunctionCall() { |
2082 STATIC_ASSERT(StepFrame > StepIn); | 2083 STATIC_ASSERT(StepFrame > StepIn); |
2083 STATIC_ASSERT(LastStepAction == StepFrame); | 2084 STATIC_ASSERT(LastStepAction == StepFrame); |
2084 hook_on_function_call_ = thread_local_.last_step_action_ >= StepIn || | 2085 hook_on_function_call_ = thread_local_.last_step_action_ >= StepIn || |
2085 isolate_->needs_side_effect_check(); | 2086 isolate_->needs_side_effect_check(); |
2086 } | 2087 } |
2087 | 2088 |
2088 MaybeHandle<Object> Debug::Call(Handle<Object> fun, Handle<Object> data) { | 2089 MaybeHandle<Object> Debug::Call(Handle<Object> fun, Handle<Object> data) { |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2317 return v8::Utils::ToLocal(callback_data_); | 2318 return v8::Utils::ToLocal(callback_data_); |
2318 } | 2319 } |
2319 | 2320 |
2320 | 2321 |
2321 v8::Isolate* EventDetailsImpl::GetIsolate() const { | 2322 v8::Isolate* EventDetailsImpl::GetIsolate() const { |
2322 return reinterpret_cast<v8::Isolate*>(exec_state_->GetIsolate()); | 2323 return reinterpret_cast<v8::Isolate*>(exec_state_->GetIsolate()); |
2323 } | 2324 } |
2324 | 2325 |
2325 } // namespace internal | 2326 } // namespace internal |
2326 } // namespace v8 | 2327 } // namespace v8 |
OLD | NEW |