Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index 26e7103466fb22adaac8f23279eb647884616259..7f8136db591a56ccc5b07c30ee323301e1c71c2f 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -2967,7 +2967,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 (FLAG_track_double_fields && |
instr->hydrogen()->representation().IsDouble()) { |
@@ -2983,7 +2984,7 @@ void LCodeGen::DoLoadNamedField(LLoadNamedField* instr) { |
} |
Register result = ToRegister(instr->result()); |
- if (instr->hydrogen()->is_in_object()) { |
+ if (access.IsInobject()) { |
__ mov(result, FieldOperand(object, offset)); |
} else { |
__ mov(result, FieldOperand(object, JSObject::kPropertiesOffset)); |
@@ -4239,8 +4240,8 @@ void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
Representation representation = instr->representation(); |
Register object = ToRegister(instr->object()); |
- |
- int offset = instr->offset(); |
+ HObjectAccess access = instr->hydrogen()->access(); |
+ int offset = access.offset(); |
Handle<Map> transition = instr->transition(); |
@@ -4266,7 +4267,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()); |
if (CpuFeatures::IsSupported(SSE2)) { |
CpuFeatureScope scope(masm(), SSE2); |
@@ -4306,7 +4307,7 @@ void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
type.IsHeapObject() ? OMIT_SMI_CHECK : INLINE_SMI_CHECK; |
Register write_register = object; |
- if (!instr->is_in_object()) { |
+ if (!access.IsInobject()) { |
write_register = ToRegister(instr->temp()); |
__ mov(write_register, |
FieldOperand(object, JSObject::kPropertiesOffset)); |
@@ -4327,7 +4328,7 @@ void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
if (instr->hydrogen()->NeedsWriteBarrier()) { |
Register value = ToRegister(instr->value()); |
- Register temp = instr->is_in_object() ? ToRegister(instr->temp()) : object; |
+ Register temp = access.IsInobject() ? ToRegister(instr->temp()) : object; |
// Update the write barrier for the object for in-object properties. |
__ RecordWriteField(write_register, |
offset, |