| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/arm64/lithium-codegen-arm64.h" | 7 #include "src/arm64/lithium-codegen-arm64.h" |
| 8 #include "src/arm64/lithium-gap-resolver-arm64.h" | 8 #include "src/arm64/lithium-gap-resolver-arm64.h" |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 DCHECK(is_generating()); | 656 DCHECK(is_generating()); |
| 657 | 657 |
| 658 if (info()->IsOptimizing()) { | 658 if (info()->IsOptimizing()) { |
| 659 ProfileEntryHookStub::MaybeCallEntryHook(masm_); | 659 ProfileEntryHookStub::MaybeCallEntryHook(masm_); |
| 660 | 660 |
| 661 // TODO(all): Add support for stop_t FLAG in DEBUG mode. | 661 // TODO(all): Add support for stop_t FLAG in DEBUG mode. |
| 662 | 662 |
| 663 // Sloppy mode functions and builtins need to replace the receiver with the | 663 // Sloppy mode functions and builtins need to replace the receiver with the |
| 664 // global proxy when called as functions (without an explicit receiver | 664 // global proxy when called as functions (without an explicit receiver |
| 665 // object). | 665 // object). |
| 666 if (info_->this_has_uses() && is_sloppy(info_->language_mode()) && | 666 if (graph()->this_has_uses() && is_sloppy(info_->language_mode()) && |
| 667 !info_->is_native()) { | 667 !info_->is_native()) { |
| 668 Label ok; | 668 Label ok; |
| 669 int receiver_offset = info_->scope()->num_parameters() * kXRegSize; | 669 int receiver_offset = info_->scope()->num_parameters() * kXRegSize; |
| 670 __ Peek(x10, receiver_offset); | 670 __ Peek(x10, receiver_offset); |
| 671 __ JumpIfNotRoot(x10, Heap::kUndefinedValueRootIndex, &ok); | 671 __ JumpIfNotRoot(x10, Heap::kUndefinedValueRootIndex, &ok); |
| 672 | 672 |
| 673 __ Ldr(x10, GlobalObjectMemOperand()); | 673 __ Ldr(x10, GlobalObjectMemOperand()); |
| 674 __ Ldr(x10, FieldMemOperand(x10, GlobalObject::kGlobalProxyOffset)); | 674 __ Ldr(x10, FieldMemOperand(x10, GlobalObject::kGlobalProxyOffset)); |
| 675 __ Poke(x10, receiver_offset); | 675 __ Poke(x10, receiver_offset); |
| 676 | 676 |
| (...skipping 5393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6070 Handle<ScopeInfo> scope_info = instr->scope_info(); | 6070 Handle<ScopeInfo> scope_info = instr->scope_info(); |
| 6071 __ Push(scope_info); | 6071 __ Push(scope_info); |
| 6072 __ Push(ToRegister(instr->function())); | 6072 __ Push(ToRegister(instr->function())); |
| 6073 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6073 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 6074 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6074 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 6075 } | 6075 } |
| 6076 | 6076 |
| 6077 | 6077 |
| 6078 | 6078 |
| 6079 } } // namespace v8::internal | 6079 } } // namespace v8::internal |
| OLD | NEW |