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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 } | 95 } |
96 } | 96 } |
97 | 97 |
98 | 98 |
99 bool LCodeGen::GeneratePrologue() { | 99 bool LCodeGen::GeneratePrologue() { |
100 DCHECK(is_generating()); | 100 DCHECK(is_generating()); |
101 | 101 |
102 if (info()->IsOptimizing()) { | 102 if (info()->IsOptimizing()) { |
103 ProfileEntryHookStub::MaybeCallEntryHook(masm_); | 103 ProfileEntryHookStub::MaybeCallEntryHook(masm_); |
104 | 104 |
105 #ifdef DEBUG | |
106 if (strlen(FLAG_stop_at) > 0 && | |
107 info_->literal()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { | |
108 __ stop("stop_at"); | |
109 } | |
110 #endif | |
111 | |
112 // a1: Callee's JS function. | 105 // a1: Callee's JS function. |
113 // cp: Callee's context. | 106 // cp: Callee's context. |
114 // fp: Caller's frame pointer. | 107 // fp: Caller's frame pointer. |
115 // lr: Caller's pc. | 108 // lr: Caller's pc. |
116 } | 109 } |
117 | 110 |
118 info()->set_prologue_offset(masm_->pc_offset()); | 111 info()->set_prologue_offset(masm_->pc_offset()); |
119 if (NeedsEagerFrame()) { | 112 if (NeedsEagerFrame()) { |
120 if (info()->IsStub()) { | 113 if (info()->IsStub()) { |
121 __ StubPrologue(); | 114 __ StubPrologue(); |
(...skipping 5690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5812 __ Push(at, ToRegister(instr->function())); | 5805 __ Push(at, ToRegister(instr->function())); |
5813 CallRuntime(Runtime::kPushBlockContext, instr); | 5806 CallRuntime(Runtime::kPushBlockContext, instr); |
5814 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5807 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5815 } | 5808 } |
5816 | 5809 |
5817 | 5810 |
5818 #undef __ | 5811 #undef __ |
5819 | 5812 |
5820 } // namespace internal | 5813 } // namespace internal |
5821 } // namespace v8 | 5814 } // namespace v8 |
OLD | NEW |