| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
| 6 | 6 |
| 7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
| 8 #include "src/arm64/macro-assembler-arm64.h" | 8 #include "src/arm64/macro-assembler-arm64.h" |
| 9 #include "src/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
| 10 #include "src/compiler/code-generator-impl.h" | 10 #include "src/compiler/code-generator-impl.h" |
| (...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 __ Jump(Handle<Code>::cast(i.InputHeapObject(0)), | 574 __ Jump(Handle<Code>::cast(i.InputHeapObject(0)), |
| 575 RelocInfo::CODE_TARGET); | 575 RelocInfo::CODE_TARGET); |
| 576 } else { | 576 } else { |
| 577 Register target = i.InputRegister(0); | 577 Register target = i.InputRegister(0); |
| 578 __ Add(target, target, Code::kHeaderSize - kHeapObjectTag); | 578 __ Add(target, target, Code::kHeaderSize - kHeapObjectTag); |
| 579 __ Jump(target); | 579 __ Jump(target); |
| 580 } | 580 } |
| 581 frame_access_state()->ClearSPDelta(); | 581 frame_access_state()->ClearSPDelta(); |
| 582 break; | 582 break; |
| 583 } | 583 } |
| 584 case kArchTailCallAddress: { |
| 585 int stack_param_delta = i.InputInt32(instr->InputCount() - 1); |
| 586 AssembleDeconstructActivationRecord(stack_param_delta); |
| 587 CHECK(!instr->InputAt(0)->IsImmediate()); |
| 588 __ Jump(i.InputRegister(0)); |
| 589 frame_access_state()->ClearSPDelta(); |
| 590 break; |
| 591 } |
| 584 case kArchCallJSFunction: { | 592 case kArchCallJSFunction: { |
| 585 EnsureSpaceForLazyDeopt(); | 593 EnsureSpaceForLazyDeopt(); |
| 586 Register func = i.InputRegister(0); | 594 Register func = i.InputRegister(0); |
| 587 if (FLAG_debug_code) { | 595 if (FLAG_debug_code) { |
| 588 // Check the function's context matches the context argument. | 596 // Check the function's context matches the context argument. |
| 589 UseScratchRegisterScope scope(masm()); | 597 UseScratchRegisterScope scope(masm()); |
| 590 Register temp = scope.AcquireX(); | 598 Register temp = scope.AcquireX(); |
| 591 __ Ldr(temp, FieldMemOperand(func, JSFunction::kContextOffset)); | 599 __ Ldr(temp, FieldMemOperand(func, JSFunction::kContextOffset)); |
| 592 __ cmp(cp, temp); | 600 __ cmp(cp, temp); |
| 593 __ Assert(eq, kWrongFunctionContext); | 601 __ Assert(eq, kWrongFunctionContext); |
| (...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1806 padding_size -= kInstructionSize; | 1814 padding_size -= kInstructionSize; |
| 1807 } | 1815 } |
| 1808 } | 1816 } |
| 1809 } | 1817 } |
| 1810 | 1818 |
| 1811 #undef __ | 1819 #undef __ |
| 1812 | 1820 |
| 1813 } // namespace compiler | 1821 } // namespace compiler |
| 1814 } // namespace internal | 1822 } // namespace internal |
| 1815 } // namespace v8 | 1823 } // namespace v8 |
| OLD | NEW |