Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 9727ea01ec625886aa6a5833d602a65bc9dedbfb..2987777164e8f98e585c6b098a36e131470e8fb1 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -782,10 +782,10 @@ 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: |
@@ -840,12 +840,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; |
} |
@@ -896,8 +896,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; |
} |
@@ -1557,7 +1557,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++) { |