Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index 3ed794ac5920eb26af1f241c3a883b0b1156e1c9..95a06764da9c3ecf275c1bdf770d1af1cfe51054 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -817,10 +817,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: |
@@ -877,12 +878,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; |
} |
@@ -936,8 +937,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; |
} |
@@ -1611,7 +1612,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++) { |