Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: src/debug/debug.cc

Issue 2648873002: [inspector] added creation frame for async call chains for promises (Closed)
Patch Set: fixed usage of external reference Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698