OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
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 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1515 | 1515 |
1516 void FlowGraphCompiler::EmitTestAndCallLoadCid() { | 1516 void FlowGraphCompiler::EmitTestAndCallLoadCid() { |
1517 __ LoadClassId(R2, R0); | 1517 __ LoadClassId(R2, R0); |
1518 } | 1518 } |
1519 | 1519 |
1520 | 1520 |
1521 int FlowGraphCompiler::EmitTestAndCallCheckCid(Label* next_label, | 1521 int FlowGraphCompiler::EmitTestAndCallCheckCid(Label* next_label, |
1522 const CidRange& range, | 1522 const CidRange& range, |
1523 int bias) { | 1523 int bias) { |
1524 intptr_t cid_start = range.cid_start; | 1524 intptr_t cid_start = range.cid_start; |
1525 intptr_t cid_end = range.cid_end; | |
1526 if (range.IsSingleCid()) { | 1525 if (range.IsSingleCid()) { |
1527 __ CompareImmediate(R2, cid_start - bias); | 1526 __ CompareImmediate(R2, cid_start - bias); |
1528 __ b(next_label, NE); | 1527 __ b(next_label, NE); |
1529 } else { | 1528 } else { |
1530 __ AddImmediate(R2, R2, bias - cid_start); | 1529 __ AddImmediate(R2, R2, bias - cid_start); |
1531 bias = cid_start; | 1530 bias = cid_start; |
1532 __ CompareImmediate(R2, range.Extent()); | 1531 __ CompareImmediate(R2, range.Extent()); |
1533 __ b(next_label, HI); // Unsigned higher. | 1532 __ b(next_label, HI); // Unsigned higher. |
1534 } | 1533 } |
1535 return bias; | 1534 return bias; |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1828 DRegister dreg = EvenDRegisterOf(reg); | 1827 DRegister dreg = EvenDRegisterOf(reg); |
1829 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 1828 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
1830 } | 1829 } |
1831 | 1830 |
1832 | 1831 |
1833 #undef __ | 1832 #undef __ |
1834 | 1833 |
1835 } // namespace dart | 1834 } // namespace dart |
1836 | 1835 |
1837 #endif // defined TARGET_ARCH_ARM | 1836 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |