From 0cae607ff33725e868a217556a88ac4478774210 Mon Sep 17 00:00:00 2001 From: yangguo Date: Fri, 24 Jul 2015 07:14:10 -0700 Subject: [PATCH] Debugger: correctly redirect eval code. This also allows us to not always compile for debugging when debug is active. Review URL: https://codereview.chromium.org/1258583002 Cr-Commit-Position: refs/heads/master@{#29848} --- src/compiler.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/compiler.cc b/src/compiler.cc index 861a34a2c..55415fe14 100644 --- a/src/compiler.cc +++ b/src/compiler.cc @@ -112,7 +112,6 @@ CompilationInfo::CompilationInfo(ParseInfo* parse_info) // with deoptimization support. if (isolate_->serializer_enabled()) EnableDeoptimizationSupport(); - if (isolate_->debug()->is_active()) MarkAsDebug(); if (FLAG_context_specialization) MarkAsContextSpecializing(); if (FLAG_turbo_inlining) MarkAsInliningEnabled(); if (FLAG_turbo_source_positions) MarkAsSourcePositionsEnabled(); @@ -1159,8 +1158,7 @@ MaybeHandle Compiler::GetFunctionFromEval( parse_info.set_parse_restriction(restriction); parse_info.set_context(context); - // If we eval from debug code, compile for debugging as well. - if (outer_info->HasDebugCode()) info.MarkAsDebug(); + info.MarkAsDebug(); Debug::RecordEvalCaller(script); shared_info = CompileToplevel(&info); -- 2.34.1