Index: src/ia32/lithium-ia32.cc |
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
index 494daa617bcb7b7a9eee62f9e27896aca2bb37ac..f546211e0241b0c5f502c946c0e4d86f584188f6 100644 |
--- a/src/ia32/lithium-ia32.cc |
+++ b/src/ia32/lithium-ia32.cc |
@@ -2516,6 +2516,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); |
@@ -2577,7 +2578,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); |
} |
} |