Index: src/ia32/lithium-ia32.cc |
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
index c4a8be1bccaeeb615eb955f3f6dbb807a012aef2..fec9b134df6b23443c915a33767439fb39c246dc 100644 |
--- a/src/ia32/lithium-ia32.cc |
+++ b/src/ia32/lithium-ia32.cc |
@@ -2480,6 +2480,7 @@ LInstruction* LChunkBuilder::DoAllocateObject(HAllocateObject* instr) { |
LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { |
info()->MarkAsDeferredCalling(); |
LOperand* context = UseAny(instr->context()); |
+ // TODO(mvstanton): why can't size be a constant if possible? |
LOperand* size = UseTempRegister(instr->size()); |
LOperand* temp = TempRegister(); |
LAllocate* result = new(zone()) LAllocate(context, size, temp); |
@@ -2541,7 +2542,8 @@ LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
ASSERT(info()->IsStub()); |
CodeStubInterfaceDescriptor* descriptor = |
info()->code_stub()->GetInterfaceDescriptor(info()->isolate()); |
- Register reg = descriptor->register_params_[instr->index()]; |
+ int index = static_cast<int>(instr->index()); |
+ Register reg = DESCRIPTOR_GET_PARAMETER_REGISTER(descriptor, index); |
return DefineFixed(result, reg); |
} |
} |