Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index a1db3709d9f635e640f624b15ebd686b68a79532..532614ef6667bca878c7b5a4613b608a4724233c 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -517,11 +517,11 @@ Handle<Code> KeyedLoadFastElementStub::GenerateCode() { |
template<> |
HValue* CodeStubGraphBuilder<LoadFieldStub>::BuildCodeStub() { |
+ Representation rep = casted_stub()->representation(); |
HObjectAccess access = casted_stub()->is_inobject() ? |
- HObjectAccess::ForJSObjectOffset(casted_stub()->offset()) : |
- HObjectAccess::ForBackingStoreOffset(casted_stub()->offset()); |
- return AddInstruction(BuildLoadNamedField(GetParameter(0), access, |
- casted_stub()->representation())); |
+ HObjectAccess::ForJSObjectOffset(casted_stub()->offset(), rep) : |
+ HObjectAccess::ForBackingStoreOffset(casted_stub()->offset(), rep); |
+ return AddInstruction(BuildLoadNamedField(GetParameter(0), access)); |
} |
@@ -532,11 +532,11 @@ Handle<Code> LoadFieldStub::GenerateCode() { |
template<> |
HValue* CodeStubGraphBuilder<KeyedLoadFieldStub>::BuildCodeStub() { |
+ Representation rep = casted_stub()->representation(); |
HObjectAccess access = casted_stub()->is_inobject() ? |
- HObjectAccess::ForJSObjectOffset(casted_stub()->offset()) : |
- HObjectAccess::ForBackingStoreOffset(casted_stub()->offset()); |
- return AddInstruction(BuildLoadNamedField(GetParameter(0), access, |
- casted_stub()->representation())); |
+ HObjectAccess::ForJSObjectOffset(casted_stub()->offset(), rep) : |
+ HObjectAccess::ForBackingStoreOffset(casted_stub()->offset(), rep); |
+ return AddInstruction(BuildLoadNamedField(GetParameter(0), access)); |
} |