| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. |
| 6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
| 7 | 7 |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1681 | 1681 |
| 1682 LocationSummary* locs = instruction_->locs(); | 1682 LocationSummary* locs = instruction_->locs(); |
| 1683 | 1683 |
| 1684 locs->live_registers()->Remove(Location::RegisterLocation(result_)); | 1684 locs->live_registers()->Remove(Location::RegisterLocation(result_)); |
| 1685 | 1685 |
| 1686 compiler->SaveLiveRegisters(locs); | 1686 compiler->SaveLiveRegisters(locs); |
| 1687 compiler->GenerateCall(Scanner::kNoSourcePos, // No token position. | 1687 compiler->GenerateCall(Scanner::kNoSourcePos, // No token position. |
| 1688 &label, | 1688 &label, |
| 1689 RawPcDescriptors::kOther, | 1689 RawPcDescriptors::kOther, |
| 1690 locs); | 1690 locs); |
| 1691 compiler->AddStubCallTarget(stub); |
| 1691 __ mov(result_, R0); | 1692 __ mov(result_, R0); |
| 1692 compiler->RestoreLiveRegisters(locs); | 1693 compiler->RestoreLiveRegisters(locs); |
| 1693 __ b(exit_label()); | 1694 __ b(exit_label()); |
| 1694 } | 1695 } |
| 1695 | 1696 |
| 1696 static void Allocate(FlowGraphCompiler* compiler, | 1697 static void Allocate(FlowGraphCompiler* compiler, |
| 1697 Instruction* instruction, | 1698 Instruction* instruction, |
| 1698 const Class& cls, | 1699 const Class& cls, |
| 1699 Register result, | 1700 Register result, |
| 1700 Register temp) { | 1701 Register temp) { |
| (...skipping 3910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5611 1, | 5612 1, |
| 5612 locs()); | 5613 locs()); |
| 5613 __ Drop(1); | 5614 __ Drop(1); |
| 5614 __ Pop(result); | 5615 __ Pop(result); |
| 5615 } | 5616 } |
| 5616 | 5617 |
| 5617 | 5618 |
| 5618 } // namespace dart | 5619 } // namespace dart |
| 5619 | 5620 |
| 5620 #endif // defined TARGET_ARCH_ARM64 | 5621 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |