| Index: src/code-stubs-hydrogen.cc
|
| diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc
|
| index 51734da2f16a754110d4acb04f6192e2aeb10664..233a793a99032f235bbc2e0c6db977bf5a461a49 100644
|
| --- a/src/code-stubs-hydrogen.cc
|
| +++ b/src/code-stubs-hydrogen.cc
|
| @@ -482,11 +482,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));
|
| }
|
|
|
|
|
| @@ -497,11 +497,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));
|
| }
|
|
|
|
|
|
|