OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/arm/lithium-codegen-arm.h" | 5 #include "src/crankshaft/arm/lithium-codegen-arm.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/arm/lithium-gap-resolver-arm.h" | 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // pp: Callee's constant pool pointer (if enabled) | 115 // pp: Callee's constant pool pointer (if enabled) |
116 // fp: Caller's frame pointer. | 116 // fp: Caller's frame pointer. |
117 // lr: Caller's pc. | 117 // lr: Caller's pc. |
118 } | 118 } |
119 | 119 |
120 info()->set_prologue_offset(masm_->pc_offset()); | 120 info()->set_prologue_offset(masm_->pc_offset()); |
121 if (NeedsEagerFrame()) { | 121 if (NeedsEagerFrame()) { |
122 if (info()->IsStub()) { | 122 if (info()->IsStub()) { |
123 __ StubPrologue(); | 123 __ StubPrologue(); |
124 } else { | 124 } else { |
125 __ Prologue(info()->IsCodePreAgingActive()); | 125 __ Prologue(info()->GeneratePreagedPrologue()); |
126 } | 126 } |
127 frame_is_built_ = true; | 127 frame_is_built_ = true; |
128 } | 128 } |
129 | 129 |
130 // Reserve space for the stack slots needed by the code. | 130 // Reserve space for the stack slots needed by the code. |
131 int slots = GetStackSlotCount(); | 131 int slots = GetStackSlotCount(); |
132 if (slots > 0) { | 132 if (slots > 0) { |
133 if (FLAG_debug_code) { | 133 if (FLAG_debug_code) { |
134 __ sub(sp, sp, Operand(slots * kPointerSize)); | 134 __ sub(sp, sp, Operand(slots * kPointerSize)); |
135 __ push(r0); | 135 __ push(r0); |
(...skipping 5462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5598 __ push(ToRegister(instr->function())); | 5598 __ push(ToRegister(instr->function())); |
5599 CallRuntime(Runtime::kPushBlockContext, instr); | 5599 CallRuntime(Runtime::kPushBlockContext, instr); |
5600 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5600 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5601 } | 5601 } |
5602 | 5602 |
5603 | 5603 |
5604 #undef __ | 5604 #undef __ |
5605 | 5605 |
5606 } // namespace internal | 5606 } // namespace internal |
5607 } // namespace v8 | 5607 } // namespace v8 |
OLD | NEW |