| 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/code-factory.h" | 5 #include "src/code-factory.h" |
| 6 #include "src/code-stubs.h" | 6 #include "src/code-stubs.h" |
| 7 #include "src/cpu-profiler.h" | 7 #include "src/cpu-profiler.h" |
| 8 #include "src/hydrogen-osr.h" | 8 #include "src/hydrogen-osr.h" |
| 9 #include "src/ic/ic.h" | 9 #include "src/ic/ic.h" |
| 10 #include "src/ic/stub-cache.h" | 10 #include "src/ic/stub-cache.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 | 96 |
| 97 | 97 |
| 98 bool LCodeGen::GeneratePrologue() { | 98 bool LCodeGen::GeneratePrologue() { |
| 99 DCHECK(is_generating()); | 99 DCHECK(is_generating()); |
| 100 | 100 |
| 101 if (info()->IsOptimizing()) { | 101 if (info()->IsOptimizing()) { |
| 102 ProfileEntryHookStub::MaybeCallEntryHook(masm_); | 102 ProfileEntryHookStub::MaybeCallEntryHook(masm_); |
| 103 | 103 |
| 104 #ifdef DEBUG | 104 #ifdef DEBUG |
| 105 if (strlen(FLAG_stop_at) > 0 && | 105 if (strlen(FLAG_stop_at) > 0 && |
| 106 info_->function()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { | 106 info_->literal()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { |
| 107 __ stop("stop_at"); | 107 __ stop("stop_at"); |
| 108 } | 108 } |
| 109 #endif | 109 #endif |
| 110 | 110 |
| 111 // a1: Callee's JS function. | 111 // a1: Callee's JS function. |
| 112 // cp: Callee's context. | 112 // cp: Callee's context. |
| 113 // fp: Caller's frame pointer. | 113 // fp: Caller's frame pointer. |
| 114 // lr: Caller's pc. | 114 // lr: Caller's pc. |
| 115 | 115 |
| 116 // Sloppy mode functions and builtins need to replace the receiver with the | 116 // Sloppy mode functions and builtins need to replace the receiver with the |
| (...skipping 6131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6248 __ Push(at, ToRegister(instr->function())); | 6248 __ Push(at, ToRegister(instr->function())); |
| 6249 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6249 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 6250 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6250 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 6251 } | 6251 } |
| 6252 | 6252 |
| 6253 | 6253 |
| 6254 #undef __ | 6254 #undef __ |
| 6255 | 6255 |
| 6256 } // namespace internal | 6256 } // namespace internal |
| 6257 } // namespace v8 | 6257 } // namespace v8 |
| OLD | NEW |