| 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/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 | 9 |
| 10 #include "vm/ast_printer.h" | 10 #include "vm/ast_printer.h" |
| (...skipping 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1479 | 1479 |
| 1480 void FlowGraphCompiler::EmitTestAndCallLoadCid() { | 1480 void FlowGraphCompiler::EmitTestAndCallLoadCid() { |
| 1481 __ LoadClassId(R2, R0); | 1481 __ LoadClassId(R2, R0); |
| 1482 } | 1482 } |
| 1483 | 1483 |
| 1484 | 1484 |
| 1485 int FlowGraphCompiler::EmitTestAndCallCheckCid(Label* next_label, | 1485 int FlowGraphCompiler::EmitTestAndCallCheckCid(Label* next_label, |
| 1486 const CidRange& range, | 1486 const CidRange& range, |
| 1487 int bias) { | 1487 int bias) { |
| 1488 intptr_t cid_start = range.cid_start; | 1488 intptr_t cid_start = range.cid_start; |
| 1489 intptr_t cid_end = range.cid_end; | |
| 1490 if (range.IsSingleCid()) { | 1489 if (range.IsSingleCid()) { |
| 1491 __ CompareImmediate(R2, cid_start - bias); | 1490 __ CompareImmediate(R2, cid_start - bias); |
| 1492 __ b(next_label, NE); | 1491 __ b(next_label, NE); |
| 1493 } else { | 1492 } else { |
| 1494 __ AddImmediate(R2, bias - cid_start); | 1493 __ AddImmediate(R2, bias - cid_start); |
| 1495 bias = cid_start; | 1494 bias = cid_start; |
| 1496 __ CompareImmediate(R2, range.Extent()); | 1495 __ CompareImmediate(R2, range.Extent()); |
| 1497 __ b(next_label, HI); // Unsigned higher. | 1496 __ b(next_label, HI); // Unsigned higher. |
| 1498 } | 1497 } |
| 1499 return bias; | 1498 return bias; |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1772 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { | 1771 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { |
| 1773 __ PopDouble(reg); | 1772 __ PopDouble(reg); |
| 1774 } | 1773 } |
| 1775 | 1774 |
| 1776 | 1775 |
| 1777 #undef __ | 1776 #undef __ |
| 1778 | 1777 |
| 1779 } // namespace dart | 1778 } // namespace dart |
| 1780 | 1779 |
| 1781 #endif // defined TARGET_ARCH_ARM64 | 1780 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |