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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // Prologue logic requires it's starting address in ip and the | 125 // Prologue logic requires it's starting address in ip and the |
126 // corresponding offset from the function entry. | 126 // corresponding offset from the function entry. |
127 prologue_offset += Instruction::kInstrSize; | 127 prologue_offset += Instruction::kInstrSize; |
128 __ addi(ip, ip, Operand(prologue_offset)); | 128 __ addi(ip, ip, Operand(prologue_offset)); |
129 } | 129 } |
130 info()->set_prologue_offset(prologue_offset); | 130 info()->set_prologue_offset(prologue_offset); |
131 if (NeedsEagerFrame()) { | 131 if (NeedsEagerFrame()) { |
132 if (info()->IsStub()) { | 132 if (info()->IsStub()) { |
133 __ StubPrologue(prologue_offset); | 133 __ StubPrologue(prologue_offset); |
134 } else { | 134 } else { |
135 __ Prologue(info()->IsCodePreAgingActive(), prologue_offset); | 135 __ Prologue(info()->GeneratePreagedPrologue(), prologue_offset); |
136 } | 136 } |
137 frame_is_built_ = true; | 137 frame_is_built_ = true; |
138 } | 138 } |
139 | 139 |
140 // Reserve space for the stack slots needed by the code. | 140 // Reserve space for the stack slots needed by the code. |
141 int slots = GetStackSlotCount(); | 141 int slots = GetStackSlotCount(); |
142 if (slots > 0) { | 142 if (slots > 0) { |
143 __ subi(sp, sp, Operand(slots * kPointerSize)); | 143 __ subi(sp, sp, Operand(slots * kPointerSize)); |
144 if (FLAG_debug_code) { | 144 if (FLAG_debug_code) { |
145 __ Push(r3, r4); | 145 __ Push(r3, r4); |
(...skipping 5721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5867 __ Push(scope_info); | 5867 __ Push(scope_info); |
5868 __ push(ToRegister(instr->function())); | 5868 __ push(ToRegister(instr->function())); |
5869 CallRuntime(Runtime::kPushBlockContext, instr); | 5869 CallRuntime(Runtime::kPushBlockContext, instr); |
5870 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5870 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5871 } | 5871 } |
5872 | 5872 |
5873 | 5873 |
5874 #undef __ | 5874 #undef __ |
5875 } // namespace internal | 5875 } // namespace internal |
5876 } // namespace v8 | 5876 } // namespace v8 |
OLD | NEW |