Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index 04661d326b5d18ff2babf2e64fbc344b091816da..c871b1cb1679504a4eb4823ec93f942ec8b9f9ac 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -3073,7 +3073,8 @@ void LCodeGen::DoStoreContextSlot(LStoreContextSlot* instr) { |
void LCodeGen::DoLoadNamedField(LLoadNamedField* instr) { |
- int offset = instr->hydrogen()->offset(); |
+ HObjectAccess access = instr->hydrogen()->access(); |
+ int offset = access.offset(); |
Register object = ToRegister(instr->object()); |
if (instr->hydrogen()->representation().IsDouble()) { |
DwVfpRegister result = ToDoubleRegister(instr->result()); |
@@ -3082,7 +3083,7 @@ void LCodeGen::DoLoadNamedField(LLoadNamedField* instr) { |
} |
Register result = ToRegister(instr->result()); |
- if (instr->hydrogen()->is_in_object()) { |
+ if (access.IsInobject()) { |
__ ldr(result, FieldMemOperand(object, offset)); |
} else { |
__ ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); |
@@ -4233,7 +4234,9 @@ void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
Register object = ToRegister(instr->object()); |
Register scratch = scratch0(); |
- int offset = instr->offset(); |
+ |
+ HObjectAccess access = instr->hydrogen()->access(); |
+ int offset = access.offset(); |
Handle<Map> transition = instr->transition(); |
@@ -4245,7 +4248,7 @@ void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
} |
} else if (FLAG_track_double_fields && representation.IsDouble()) { |
ASSERT(transition.is_null()); |
- ASSERT(instr->is_in_object()); |
+ ASSERT(access.IsInobject()); |
ASSERT(!instr->hydrogen()->NeedsWriteBarrier()); |
DwVfpRegister value = ToDoubleRegister(instr->value()); |
__ vstr(value, FieldMemOperand(object, offset)); |
@@ -4278,7 +4281,7 @@ void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
HType type = instr->hydrogen()->value()->type(); |
SmiCheck check_needed = |
type.IsHeapObject() ? OMIT_SMI_CHECK : INLINE_SMI_CHECK; |
- if (instr->is_in_object()) { |
+ if (access.IsInobject()) { |
__ str(value, FieldMemOperand(object, offset)); |
if (instr->hydrogen()->NeedsWriteBarrier()) { |
// Update the write barrier for the object for in-object properties. |