OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/crankshaft/ppc/lithium-codegen-ppc.h" | 5 #include "src/crankshaft/ppc/lithium-codegen-ppc.h" |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
(...skipping 5735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5746 __ LoadP(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); | 5746 __ LoadP(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); |
5747 // Index is equal to negated out of object property index plus 1. | 5747 // Index is equal to negated out of object property index plus 1. |
5748 __ SmiToPtrArrayOffset(r0, index); | 5748 __ SmiToPtrArrayOffset(r0, index); |
5749 __ sub(scratch, result, r0); | 5749 __ sub(scratch, result, r0); |
5750 __ LoadP(result, | 5750 __ LoadP(result, |
5751 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); | 5751 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); |
5752 __ bind(deferred->exit()); | 5752 __ bind(deferred->exit()); |
5753 __ bind(&done); | 5753 __ bind(&done); |
5754 } | 5754 } |
5755 | 5755 |
| 5756 #undef __ |
5756 | 5757 |
5757 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { | |
5758 Register context = ToRegister(instr->context()); | |
5759 __ StoreP(context, MemOperand(fp, StandardFrameConstants::kContextOffset)); | |
5760 } | |
5761 | |
5762 | |
5763 #undef __ | |
5764 } // namespace internal | 5758 } // namespace internal |
5765 } // namespace v8 | 5759 } // namespace v8 |
OLD | NEW |