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

Unified Diff: src/debug/debug.cc

Issue 2782783003: [inspector] deoptimize function in Debug::PrepareStepIn
Patch Set: ensure compilation before deoptimization 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/inspector.status » ('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..43e12e99b724359fe9164c639da8e982dc84223f 100644
--- a/src/debug/debug.cc
+++ b/src/debug/debug.cc
@@ -896,7 +896,11 @@ 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)) {
+ if (!Compiler::Compile(function, Compiler::KEEP_EXCEPTION)) return;
+ Deoptimizer::DeoptimizeFunction(*function);
+ 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/inspector.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698