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/mips64/lithium-codegen-mips64.h" | 5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h" |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/crankshaft/hydrogen-osr.h" | 9 #include "src/crankshaft/hydrogen-osr.h" |
10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" | 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // cp: Callee's context. | 113 // cp: Callee's context. |
114 // fp: Caller's frame pointer. | 114 // fp: Caller's frame pointer. |
115 // lr: Caller's pc. | 115 // lr: Caller's pc. |
116 } | 116 } |
117 | 117 |
118 info()->set_prologue_offset(masm_->pc_offset()); | 118 info()->set_prologue_offset(masm_->pc_offset()); |
119 if (NeedsEagerFrame()) { | 119 if (NeedsEagerFrame()) { |
120 if (info()->IsStub()) { | 120 if (info()->IsStub()) { |
121 __ StubPrologue(); | 121 __ StubPrologue(); |
122 } else { | 122 } else { |
123 __ Prologue(info()->IsCodePreAgingActive()); | 123 __ Prologue(info()->GeneratePreagedPrologue()); |
124 } | 124 } |
125 frame_is_built_ = true; | 125 frame_is_built_ = true; |
126 } | 126 } |
127 | 127 |
128 // Reserve space for the stack slots needed by the code. | 128 // Reserve space for the stack slots needed by the code. |
129 int slots = GetStackSlotCount(); | 129 int slots = GetStackSlotCount(); |
130 if (slots > 0) { | 130 if (slots > 0) { |
131 if (FLAG_debug_code) { | 131 if (FLAG_debug_code) { |
132 __ Dsubu(sp, sp, Operand(slots * kPointerSize)); | 132 __ Dsubu(sp, sp, Operand(slots * kPointerSize)); |
133 __ Push(a0, a1); | 133 __ Push(a0, a1); |
(...skipping 5699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5833 __ Push(at, ToRegister(instr->function())); | 5833 __ Push(at, ToRegister(instr->function())); |
5834 CallRuntime(Runtime::kPushBlockContext, instr); | 5834 CallRuntime(Runtime::kPushBlockContext, instr); |
5835 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5835 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5836 } | 5836 } |
5837 | 5837 |
5838 | 5838 |
5839 #undef __ | 5839 #undef __ |
5840 | 5840 |
5841 } // namespace internal | 5841 } // namespace internal |
5842 } // namespace v8 | 5842 } // namespace v8 |
OLD | NEW |