OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
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/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 113 |
114 | 114 |
115 bool LCodeGen::GeneratePrologue() { | 115 bool LCodeGen::GeneratePrologue() { |
116 DCHECK(is_generating()); | 116 DCHECK(is_generating()); |
117 | 117 |
118 if (info()->IsOptimizing()) { | 118 if (info()->IsOptimizing()) { |
119 ProfileEntryHookStub::MaybeCallEntryHook(masm_); | 119 ProfileEntryHookStub::MaybeCallEntryHook(masm_); |
120 | 120 |
121 #ifdef DEBUG | 121 #ifdef DEBUG |
122 if (strlen(FLAG_stop_at) > 0 && | 122 if (strlen(FLAG_stop_at) > 0 && |
123 info_->function()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { | 123 info_->literal()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { |
124 __ int3(); | 124 __ int3(); |
125 } | 125 } |
126 #endif | 126 #endif |
127 | 127 |
128 // Sloppy mode functions need to replace the receiver with the global proxy | 128 // Sloppy mode functions need to replace the receiver with the global proxy |
129 // when called as functions (without an explicit receiver object). | 129 // when called as functions (without an explicit receiver object). |
130 if (is_sloppy(info()->language_mode()) && info()->MayUseThis() && | 130 if (is_sloppy(info()->language_mode()) && info()->MayUseThis() && |
131 !info()->is_native() && info()->scope()->has_this_declaration()) { | 131 !info()->is_native() && info()->scope()->has_this_declaration()) { |
132 Label ok; | 132 Label ok; |
133 StackArgumentsAccessor args(rsp, scope()->num_parameters()); | 133 StackArgumentsAccessor args(rsp, scope()->num_parameters()); |
(...skipping 5921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6055 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6055 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6056 } | 6056 } |
6057 | 6057 |
6058 | 6058 |
6059 #undef __ | 6059 #undef __ |
6060 | 6060 |
6061 } // namespace internal | 6061 } // namespace internal |
6062 } // namespace v8 | 6062 } // namespace v8 |
6063 | 6063 |
6064 #endif // V8_TARGET_ARCH_X64 | 6064 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |