Index: src/runtime/runtime-debug.cc |
diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc |
index 5c2a5a5750af59b1d44c1a8ad84917b7d70e1021..180f0137d1bf7d0a21e2296660719adb77eeb9e8 100644 |
--- a/src/runtime/runtime-debug.cc |
+++ b/src/runtime/runtime-debug.cc |
@@ -6,6 +6,7 @@ |
#include "src/accessors.h" |
#include "src/arguments.h" |
+#include "src/compiler.h" |
#include "src/debug.h" |
#include "src/deoptimizer.h" |
#include "src/isolate-inl.h" |
@@ -1198,16 +1199,18 @@ class ScopeIterator { |
// Check whether we are in global, eval or function code. |
Handle<ScopeInfo> scope_info(shared_info->scope_info()); |
+ Zone zone; |
+ ParseInfo info(&zone); |
if (scope_info->scope_type() != FUNCTION_SCOPE && |
scope_info->scope_type() != ARROW_SCOPE) { |
// Global or eval code. |
- CompilationInfoWithZone info(script); |
+ info.InitializeFromScript(script); |
if (scope_info->scope_type() == SCRIPT_SCOPE) { |
- info.MarkAsGlobal(); |
+ info.set_global(); |
} else { |
DCHECK(scope_info->scope_type() == EVAL_SCOPE); |
- info.MarkAsEval(); |
- info.SetContext(Handle<Context>(function_->context())); |
+ info.set_eval(); |
+ info.set_context(Handle<Context>(function_->context())); |
} |
if (Parser::ParseStatic(&info) && Scope::Analyze(&info)) { |
scope = info.function()->scope(); |
@@ -1215,7 +1218,7 @@ class ScopeIterator { |
RetrieveScopeChain(scope, shared_info); |
} else { |
// Function code |
- CompilationInfoWithZone info(shared_info); |
+ info.InitializeFromSharedFunctionInfo(shared_info); |
if (Parser::ParseStatic(&info) && Scope::Analyze(&info)) { |
scope = info.function()->scope(); |
} |