| 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_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 | 95 |
| 96 bool LCodeGen::GeneratePrologue() { | 96 bool LCodeGen::GeneratePrologue() { |
| 97 DCHECK(is_generating()); | 97 DCHECK(is_generating()); |
| 98 | 98 |
| 99 if (info()->IsOptimizing()) { | 99 if (info()->IsOptimizing()) { |
| 100 ProfileEntryHookStub::MaybeCallEntryHook(masm_); | 100 ProfileEntryHookStub::MaybeCallEntryHook(masm_); |
| 101 | 101 |
| 102 #ifdef DEBUG | 102 #ifdef DEBUG |
| 103 if (strlen(FLAG_stop_at) > 0 && | 103 if (strlen(FLAG_stop_at) > 0 && |
| 104 info_->function()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { | 104 info_->literal()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { |
| 105 __ int3(); | 105 __ int3(); |
| 106 } | 106 } |
| 107 #endif | 107 #endif |
| 108 | 108 |
| 109 // Sloppy mode functions and builtins need to replace the receiver with the | 109 // Sloppy mode functions and builtins need to replace the receiver with the |
| 110 // global proxy when called as functions (without an explicit receiver | 110 // global proxy when called as functions (without an explicit receiver |
| 111 // object). | 111 // object). |
| 112 if (is_sloppy(info()->language_mode()) && info()->MayUseThis() && | 112 if (is_sloppy(info()->language_mode()) && info()->MayUseThis() && |
| 113 !info()->is_native() && info()->scope()->has_this_declaration()) { | 113 !info()->is_native() && info()->scope()->has_this_declaration()) { |
| 114 Label ok; | 114 Label ok; |
| (...skipping 6371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6486 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6486 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 6487 } | 6487 } |
| 6488 | 6488 |
| 6489 | 6489 |
| 6490 #undef __ | 6490 #undef __ |
| 6491 | 6491 |
| 6492 } // namespace internal | 6492 } // namespace internal |
| 6493 } // namespace v8 | 6493 } // namespace v8 |
| 6494 | 6494 |
| 6495 #endif // V8_TARGET_ARCH_X87 | 6495 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |