| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 } | 96 } |
| 97 } | 97 } |
| 98 | 98 |
| 99 | 99 |
| 100 bool LCodeGen::GeneratePrologue() { | 100 bool LCodeGen::GeneratePrologue() { |
| 101 DCHECK(is_generating()); | 101 DCHECK(is_generating()); |
| 102 | 102 |
| 103 if (info()->IsOptimizing()) { | 103 if (info()->IsOptimizing()) { |
| 104 ProfileEntryHookStub::MaybeCallEntryHook(masm_); | 104 ProfileEntryHookStub::MaybeCallEntryHook(masm_); |
| 105 | 105 |
| 106 #ifdef DEBUG | |
| 107 if (strlen(FLAG_stop_at) > 0 && | |
| 108 info_->literal()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { | |
| 109 __ stop("stop_at"); | |
| 110 } | |
| 111 #endif | |
| 112 | |
| 113 // r1: Callee's JS function. | 106 // r1: Callee's JS function. |
| 114 // cp: Callee's context. | 107 // cp: Callee's context. |
| 115 // pp: Callee's constant pool pointer (if enabled) | 108 // pp: Callee's constant pool pointer (if enabled) |
| 116 // fp: Caller's frame pointer. | 109 // fp: Caller's frame pointer. |
| 117 // lr: Caller's pc. | 110 // lr: Caller's pc. |
| 118 } | 111 } |
| 119 | 112 |
| 120 info()->set_prologue_offset(masm_->pc_offset()); | 113 info()->set_prologue_offset(masm_->pc_offset()); |
| 121 if (NeedsEagerFrame()) { | 114 if (NeedsEagerFrame()) { |
| 122 if (info()->IsStub()) { | 115 if (info()->IsStub()) { |
| (...skipping 5465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5588 __ push(ToRegister(instr->function())); | 5581 __ push(ToRegister(instr->function())); |
| 5589 CallRuntime(Runtime::kPushBlockContext, instr); | 5582 CallRuntime(Runtime::kPushBlockContext, instr); |
| 5590 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5583 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5591 } | 5584 } |
| 5592 | 5585 |
| 5593 | 5586 |
| 5594 #undef __ | 5587 #undef __ |
| 5595 | 5588 |
| 5596 } // namespace internal | 5589 } // namespace internal |
| 5597 } // namespace v8 | 5590 } // namespace v8 |
| OLD | NEW |