Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 2a5887a953c8124ae817f6c464dcc4d95392f0b8..99c3c22f8afb6fe3ca4154e6fe9b64d67685a70d 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -808,10 +808,11 @@ void FullCodeGenerator::VisitVariableDeclaration( |
bool hole_init = mode == CONST || mode == CONST_HARMONY || mode == LET; |
switch (variable->location()) { |
case Variable::UNALLOCATED: |
- globals_->Add(variable->name()); |
+ globals_->Add(variable->name(), zone()); |
globals_->Add(variable->binding_needs_init() |
? isolate()->factory()->the_hole_value() |
- : isolate()->factory()->undefined_value()); |
+ : isolate()->factory()->undefined_value(), |
+ zone()); |
break; |
case Variable::PARAMETER: |
@@ -867,12 +868,12 @@ void FullCodeGenerator::VisitFunctionDeclaration( |
Variable* variable = proxy->var(); |
switch (variable->location()) { |
case Variable::UNALLOCATED: { |
- globals_->Add(variable->name()); |
+ globals_->Add(variable->name(), zone()); |
Handle<SharedFunctionInfo> function = |
Compiler::BuildFunctionInfo(declaration->fun(), script()); |
// Check for stack-overflow exception. |
if (function.is_null()) return SetStackOverflow(); |
- globals_->Add(function); |
+ globals_->Add(function, zone()); |
break; |
} |
@@ -926,8 +927,8 @@ void FullCodeGenerator::VisitModuleDeclaration(ModuleDeclaration* declaration) { |
switch (variable->location()) { |
case Variable::UNALLOCATED: { |
Comment cmnt(masm_, "[ ModuleDeclaration"); |
- globals_->Add(variable->name()); |
- globals_->Add(instance); |
+ globals_->Add(variable->name(), zone()); |
+ globals_->Add(instance, zone()); |
Visit(declaration->module()); |
break; |
} |
@@ -1603,7 +1604,7 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
// Mark all computed expressions that are bound to a key that |
// is shadowed by a later occurrence of the same key. For the |
// marked expressions, no store code is emitted. |
- expr->CalculateEmitStore(); |
+ expr->CalculateEmitStore(zone()); |
AccessorTable accessor_table(isolate()->zone()); |
for (int i = 0; i < expr->properties()->length(); i++) { |