| 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 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 __ cmp(cp, temp); | 566 __ cmp(cp, temp); |
| 567 __ Assert(eq, kWrongFunctionContext); | 567 __ Assert(eq, kWrongFunctionContext); |
| 568 } | 568 } |
| 569 int stack_param_delta = i.InputInt32(instr->InputCount() - 1); | 569 int stack_param_delta = i.InputInt32(instr->InputCount() - 1); |
| 570 AssembleDeconstructActivationRecord(stack_param_delta); | 570 AssembleDeconstructActivationRecord(stack_param_delta); |
| 571 __ Ldr(x10, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); | 571 __ Ldr(x10, FieldMemOperand(func, JSFunction::kCodeEntryOffset)); |
| 572 __ Jump(x10); | 572 __ Jump(x10); |
| 573 frame_access_state()->ClearSPDelta(); | 573 frame_access_state()->ClearSPDelta(); |
| 574 break; | 574 break; |
| 575 } | 575 } |
| 576 case kArchLazyBailout: { | |
| 577 EnsureSpaceForLazyDeopt(); | |
| 578 RecordCallPosition(instr); | |
| 579 break; | |
| 580 } | |
| 581 case kArchPrepareCallCFunction: | 576 case kArchPrepareCallCFunction: |
| 582 // We don't need kArchPrepareCallCFunction on arm64 as the instruction | 577 // We don't need kArchPrepareCallCFunction on arm64 as the instruction |
| 583 // selector already perform a Claim to reserve space on the stack and | 578 // selector already perform a Claim to reserve space on the stack and |
| 584 // guarantee correct alignment of stack pointer. | 579 // guarantee correct alignment of stack pointer. |
| 585 UNREACHABLE(); | 580 UNREACHABLE(); |
| 586 break; | 581 break; |
| 587 case kArchPrepareTailCall: | 582 case kArchPrepareTailCall: |
| 588 AssemblePrepareTailCall(i.InputInt32(instr->InputCount() - 1)); | 583 AssemblePrepareTailCall(i.InputInt32(instr->InputCount() - 1)); |
| 589 break; | 584 break; |
| 590 case kArchCallCFunction: { | 585 case kArchCallCFunction: { |
| (...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1723 padding_size -= kInstructionSize; | 1718 padding_size -= kInstructionSize; |
| 1724 } | 1719 } |
| 1725 } | 1720 } |
| 1726 } | 1721 } |
| 1727 | 1722 |
| 1728 #undef __ | 1723 #undef __ |
| 1729 | 1724 |
| 1730 } // namespace compiler | 1725 } // namespace compiler |
| 1731 } // namespace internal | 1726 } // namespace internal |
| 1732 } // namespace v8 | 1727 } // namespace v8 |
| OLD | NEW |