Index: src/ia32/lithium-ia32.cc |
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
index b085555eb4d632cc5fc6937a0486a4bb8dc460bf..1c0f80af0a70cb90f30901c5fdea7de9e2ca69a9 100644 |
--- a/src/ia32/lithium-ia32.cc |
+++ b/src/ia32/lithium-ia32.cc |
@@ -2393,6 +2393,21 @@ LInstruction* LChunkBuilder::DoTrapAllocationMemento( |
} |
+LInstruction* LChunkBuilder::DoMaybeGrowElements(HMaybeGrowElements* instr) { |
+ info()->MarkAsDeferredCalling(); |
+ LOperand* context = UseFixed(instr->context(), esi); |
+ LOperand* object = Use(instr->object()); |
+ LOperand* elements = Use(instr->elements()); |
+ LOperand* key = UseRegisterOrConstant(instr->key()); |
+ LOperand* current_capacity = UseRegisterOrConstant(instr->current_capacity()); |
+ |
+ LMaybeGrowElements* result = new (zone()) |
+ LMaybeGrowElements(context, object, elements, key, current_capacity); |
+ DefineFixed(result, eax); |
+ return AssignPointerMap(AssignEnvironment(result)); |
+} |
+ |
+ |
LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) { |
bool is_in_object = instr->access().IsInobject(); |
bool is_external_location = instr->access().IsExternalMemory() && |