Index: src/asmjs/asm-wasm-builder.cc |
diff --git a/src/asmjs/asm-wasm-builder.cc b/src/asmjs/asm-wasm-builder.cc |
index 5f8233391e85233f2a723ae26afe4c35889550fc..ac2585e6eaacc5453d317981309671a121c0ec22 100644 |
--- a/src/asmjs/asm-wasm-builder.cc |
+++ b/src/asmjs/asm-wasm-builder.cc |
@@ -664,8 +664,8 @@ class AsmWasmBuilderImpl final : public AstVisitor<AsmWasmBuilderImpl> { |
FunctionTableIndices* container = new (zone()) FunctionTableIndices(); |
container->start_index = start_index; |
container->signature_index = signature_index; |
- ZoneHashMap::Entry* entry = |
- function_tables_.LookupOrInsert(v, ComputePointerHash(v)); |
+ ZoneHashMap::Entry* entry = function_tables_.LookupOrInsert( |
+ v, ComputePointerHash(v), ZoneAllocationPolicy(zone())); |
entry->value = container; |
} |
@@ -700,8 +700,8 @@ class AsmWasmBuilderImpl final : public AstVisitor<AsmWasmBuilderImpl> { |
void AddImport(Variable* v, const char* name, int name_length) { |
ImportedFunctionIndices* indices = new (builder_->zone()) |
ImportedFunctionIndices(name, name_length, builder_->zone()); |
- ZoneHashMap::Entry* entry = |
- table_.LookupOrInsert(v, ComputePointerHash(v)); |
+ ZoneHashMap::Entry* entry = table_.LookupOrInsert( |
+ v, ComputePointerHash(v), ZoneAllocationPolicy(builder_->zone())); |
entry->value = indices; |
} |
@@ -1694,7 +1694,8 @@ class AsmWasmBuilderImpl final : public AstVisitor<AsmWasmBuilderImpl> { |
index = current_function_builder_->AddLocal(type); |
IndexContainer* container = new (zone()) IndexContainer(); |
container->index = index; |
- entry = local_variables_.LookupOrInsert(v, ComputePointerHash(v)); |
+ entry = local_variables_.LookupOrInsert(v, ComputePointerHash(v), |
+ ZoneAllocationPolicy(zone())); |
entry->value = container; |
} |
return (reinterpret_cast<IndexContainer*>(entry->value))->index; |
@@ -1708,7 +1709,8 @@ class AsmWasmBuilderImpl final : public AstVisitor<AsmWasmBuilderImpl> { |
DCHECK_NULL(entry); |
IndexContainer* container = new (zone()) IndexContainer(); |
container->index = index; |
- entry = local_variables_.LookupOrInsert(v, ComputePointerHash(v)); |
+ entry = local_variables_.LookupOrInsert(v, ComputePointerHash(v), |
+ ZoneAllocationPolicy(zone())); |
entry->value = container; |
} |
@@ -1719,7 +1721,8 @@ class AsmWasmBuilderImpl final : public AstVisitor<AsmWasmBuilderImpl> { |
uint32_t index = builder_->AddGlobal(type, 0); |
IndexContainer* container = new (zone()) IndexContainer(); |
container->index = index; |
- entry = global_variables_.LookupOrInsert(v, ComputePointerHash(v)); |
+ entry = global_variables_.LookupOrInsert(v, ComputePointerHash(v), |
+ ZoneAllocationPolicy(zone())); |
entry->value = container; |
} |
return (reinterpret_cast<IndexContainer*>(entry->value))->index; |
@@ -1732,7 +1735,8 @@ class AsmWasmBuilderImpl final : public AstVisitor<AsmWasmBuilderImpl> { |
uint32_t index = builder_->AddFunction(); |
IndexContainer* container = new (zone()) IndexContainer(); |
container->index = index; |
- entry = functions_.LookupOrInsert(v, ComputePointerHash(v)); |
+ entry = functions_.LookupOrInsert(v, ComputePointerHash(v), |
+ ZoneAllocationPolicy(zone())); |
entry->value = container; |
} |
return (reinterpret_cast<IndexContainer*>(entry->value))->index; |