| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 } | 97 } |
| 98 } | 98 } |
| 99 | 99 |
| 100 | 100 |
| 101 bool LCodeGen::GeneratePrologue() { | 101 bool LCodeGen::GeneratePrologue() { |
| 102 DCHECK(is_generating()); | 102 DCHECK(is_generating()); |
| 103 | 103 |
| 104 if (info()->IsOptimizing()) { | 104 if (info()->IsOptimizing()) { |
| 105 ProfileEntryHookStub::MaybeCallEntryHook(masm_); | 105 ProfileEntryHookStub::MaybeCallEntryHook(masm_); |
| 106 | 106 |
| 107 #ifdef DEBUG | |
| 108 if (strlen(FLAG_stop_at) > 0 && | |
| 109 info_->literal()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { | |
| 110 __ stop("stop_at"); | |
| 111 } | |
| 112 #endif | |
| 113 | |
| 114 // r4: Callee's JS function. | 107 // r4: Callee's JS function. |
| 115 // cp: Callee's context. | 108 // cp: Callee's context. |
| 116 // pp: Callee's constant pool pointer (if enabled) | 109 // pp: Callee's constant pool pointer (if enabled) |
| 117 // fp: Caller's frame pointer. | 110 // fp: Caller's frame pointer. |
| 118 // lr: Caller's pc. | 111 // lr: Caller's pc. |
| 119 // ip: Our own function entry (required by the prologue) | 112 // ip: Our own function entry (required by the prologue) |
| 120 } | 113 } |
| 121 | 114 |
| 122 int prologue_offset = masm_->pc_offset(); | 115 int prologue_offset = masm_->pc_offset(); |
| 123 | 116 |
| (...skipping 5685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5809 __ Push(scope_info); | 5802 __ Push(scope_info); |
| 5810 __ push(ToRegister(instr->function())); | 5803 __ push(ToRegister(instr->function())); |
| 5811 CallRuntime(Runtime::kPushBlockContext, instr); | 5804 CallRuntime(Runtime::kPushBlockContext, instr); |
| 5812 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5805 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5813 } | 5806 } |
| 5814 | 5807 |
| 5815 | 5808 |
| 5816 #undef __ | 5809 #undef __ |
| 5817 } // namespace internal | 5810 } // namespace internal |
| 5818 } // namespace v8 | 5811 } // namespace v8 |
| OLD | NEW |