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 #include "src/arm64/frames-arm64.h" | 5 #include "src/arm64/frames-arm64.h" |
6 #include "src/arm64/lithium-codegen-arm64.h" | 6 #include "src/arm64/lithium-codegen-arm64.h" |
7 #include "src/arm64/lithium-gap-resolver-arm64.h" | 7 #include "src/arm64/lithium-gap-resolver-arm64.h" |
8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
618 } | 618 } |
619 } | 619 } |
620 | 620 |
621 | 621 |
622 bool LCodeGen::GeneratePrologue() { | 622 bool LCodeGen::GeneratePrologue() { |
623 DCHECK(is_generating()); | 623 DCHECK(is_generating()); |
624 | 624 |
625 if (info()->IsOptimizing()) { | 625 if (info()->IsOptimizing()) { |
626 ProfileEntryHookStub::MaybeCallEntryHook(masm_); | 626 ProfileEntryHookStub::MaybeCallEntryHook(masm_); |
627 | 627 |
628 // TODO(all): Add support for stop_t FLAG in DEBUG mode. | 628 #ifdef DEBUG |
| 629 if (strlen(FLAG_stop_at) > 0 && |
| 630 info()->literal()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { |
| 631 __ Debug("stop-at", __LINE__, BREAK); |
| 632 } |
| 633 #endif |
629 | 634 |
630 // Sloppy mode functions and builtins need to replace the receiver with the | 635 // Sloppy mode functions and builtins need to replace the receiver with the |
631 // global proxy when called as functions (without an explicit receiver | 636 // global proxy when called as functions (without an explicit receiver |
632 // object). | 637 // object). |
633 if (info()->MustReplaceUndefinedReceiverWithGlobalProxy()) { | 638 if (info()->MustReplaceUndefinedReceiverWithGlobalProxy()) { |
634 Label ok; | 639 Label ok; |
635 int receiver_offset = info_->scope()->num_parameters() * kXRegSize; | 640 int receiver_offset = info_->scope()->num_parameters() * kXRegSize; |
636 __ Peek(x10, receiver_offset); | 641 __ Peek(x10, receiver_offset); |
637 __ JumpIfNotRoot(x10, Heap::kUndefinedValueRootIndex, &ok); | 642 __ JumpIfNotRoot(x10, Heap::kUndefinedValueRootIndex, &ok); |
638 | 643 |
(...skipping 5365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6004 Handle<ScopeInfo> scope_info = instr->scope_info(); | 6009 Handle<ScopeInfo> scope_info = instr->scope_info(); |
6005 __ Push(scope_info); | 6010 __ Push(scope_info); |
6006 __ Push(ToRegister(instr->function())); | 6011 __ Push(ToRegister(instr->function())); |
6007 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6012 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6008 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6013 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6009 } | 6014 } |
6010 | 6015 |
6011 | 6016 |
6012 } // namespace internal | 6017 } // namespace internal |
6013 } // namespace v8 | 6018 } // namespace v8 |
OLD | NEW |