Index: src/scopeinfo.cc |
diff --git a/src/scopeinfo.cc b/src/scopeinfo.cc |
index f50af304a20a6dd4d07a87c5bf455c9f5da9c32a..25f02f6320d336e117d3e76cf2ab2d9c1337d6b2 100644 |
--- a/src/scopeinfo.cc |
+++ b/src/scopeinfo.cc |
@@ -38,10 +38,10 @@ namespace v8 { |
namespace internal { |
-Handle<ScopeInfo> ScopeInfo::Create(Scope* scope) { |
+Handle<ScopeInfo> ScopeInfo::Create(Scope* scope, Zone* zone) { |
// Collect stack and context locals. |
- ZoneList<Variable*> stack_locals(scope->StackLocalCount()); |
- ZoneList<Variable*> context_locals(scope->ContextLocalCount()); |
+ ZoneList<Variable*> stack_locals(scope->StackLocalCount(), zone); |
+ ZoneList<Variable*> context_locals(scope->ContextLocalCount(), zone); |
scope->CollectStackAndContextLocals(&stack_locals, &context_locals); |
const int stack_local_count = stack_locals.length(); |
const int context_local_count = context_locals.length(); |