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 #if V8_TARGET_ARCH_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
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/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 125 |
126 | 126 |
127 bool LCodeGen::GeneratePrologue() { | 127 bool LCodeGen::GeneratePrologue() { |
128 DCHECK(is_generating()); | 128 DCHECK(is_generating()); |
129 | 129 |
130 if (info()->IsOptimizing()) { | 130 if (info()->IsOptimizing()) { |
131 ProfileEntryHookStub::MaybeCallEntryHook(masm_); | 131 ProfileEntryHookStub::MaybeCallEntryHook(masm_); |
132 | 132 |
133 #ifdef DEBUG | 133 #ifdef DEBUG |
134 if (strlen(FLAG_stop_at) > 0 && | 134 if (strlen(FLAG_stop_at) > 0 && |
135 info_->function()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { | 135 info_->literal()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { |
136 __ int3(); | 136 __ int3(); |
137 } | 137 } |
138 #endif | 138 #endif |
139 | 139 |
140 // Sloppy mode functions and builtins need to replace the receiver with the | 140 // Sloppy mode functions and builtins need to replace the receiver with the |
141 // global proxy when called as functions (without an explicit receiver | 141 // global proxy when called as functions (without an explicit receiver |
142 // object). | 142 // object). |
143 if (is_sloppy(info()->language_mode()) && info()->MayUseThis() && | 143 if (is_sloppy(info()->language_mode()) && info()->MayUseThis() && |
144 !info()->is_native() && info()->scope()->has_this_declaration()) { | 144 !info()->is_native() && info()->scope()->has_this_declaration()) { |
145 Label ok; | 145 Label ok; |
(...skipping 5706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5852 RecordSafepoint(Safepoint::kNoLazyDeopt); | 5852 RecordSafepoint(Safepoint::kNoLazyDeopt); |
5853 } | 5853 } |
5854 | 5854 |
5855 | 5855 |
5856 #undef __ | 5856 #undef __ |
5857 | 5857 |
5858 } // namespace internal | 5858 } // namespace internal |
5859 } // namespace v8 | 5859 } // namespace v8 |
5860 | 5860 |
5861 #endif // V8_TARGET_ARCH_IA32 | 5861 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |