| Index: src/code-stubs-hydrogen.cc
|
| diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc
|
| index 96266af119f8821a960aed34bb0cfce1076de46f..d8ee5099ee14f61c4a1b3ab3108f20dd39be170a 100644
|
| --- a/src/code-stubs-hydrogen.cc
|
| +++ b/src/code-stubs-hydrogen.cc
|
| @@ -437,11 +437,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));
|
| }
|
|
|
|
|
| @@ -452,11 +452,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));
|
| }
|
|
|
|
|
|
|