| 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/arm/lithium-codegen-arm.h" | 5 #include "src/arm/lithium-codegen-arm.h" |
| 6 #include "src/arm/lithium-gap-resolver-arm.h" | 6 #include "src/arm/lithium-gap-resolver-arm.h" |
| 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/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 105 #ifdef DEBUG |
| 106 if (strlen(FLAG_stop_at) > 0 && | 106 if (strlen(FLAG_stop_at) > 0 && |
| 107 info_->function()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { | 107 info_->literal()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { |
| 108 __ stop("stop_at"); | 108 __ stop("stop_at"); |
| 109 } | 109 } |
| 110 #endif | 110 #endif |
| 111 | 111 |
| 112 // r1: Callee's JS function. | 112 // r1: Callee's JS function. |
| 113 // cp: Callee's context. | 113 // cp: Callee's context. |
| 114 // pp: Callee's constant pool pointer (if enabled) | 114 // pp: Callee's constant pool pointer (if enabled) |
| 115 // fp: Caller's frame pointer. | 115 // fp: Caller's frame pointer. |
| 116 // lr: Caller's pc. | 116 // lr: Caller's pc. |
| 117 | 117 |
| (...skipping 5907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6025 __ push(ToRegister(instr->function())); | 6025 __ push(ToRegister(instr->function())); |
| 6026 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6026 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 6027 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6027 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 6028 } | 6028 } |
| 6029 | 6029 |
| 6030 | 6030 |
| 6031 #undef __ | 6031 #undef __ |
| 6032 | 6032 |
| 6033 } // namespace internal | 6033 } // namespace internal |
| 6034 } // namespace v8 | 6034 } // namespace v8 |
| OLD | NEW |