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

Unified Diff: src/debug/debug.cc

Issue 2782783003: [inspector] deoptimize function in Debug::PrepareStepIn
Patch Set: rebased Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/inspector/debugger/set-blackbox-patterns.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/debug.cc
diff --git a/src/debug/debug.cc b/src/debug/debug.cc
index 73af4cf7f71b390b7f0b46462417479273cb8dae..b6b37fc8f1c7485ca9a44a327af56d0f2bf93f5c 100644
--- a/src/debug/debug.cc
+++ b/src/debug/debug.cc
@@ -896,7 +896,10 @@ void Debug::PrepareStepIn(Handle<JSFunction> function) {
if (in_debug_scope()) return;
if (break_disabled()) return;
Handle<SharedFunctionInfo> shared(function->shared());
- if (IsBlackboxed(shared)) return;
+ if (IsBlackboxed(shared)) {
+ EnsureDebugInfo(shared);
Yang 2017/03/31 07:20:42 We don't want a DebugInfo, since we are not going
+ return;
+ }
if (*function == thread_local_.ignore_step_into_function_) return;
thread_local_.ignore_step_into_function_ = Smi::kZero;
FloodWithOneShot(Handle<SharedFunctionInfo>(function->shared(), isolate_));
« no previous file with comments | « no previous file | test/inspector/debugger/set-blackbox-patterns.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698