| 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 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1168 // We do not check for overflow when incrementing the edge counter. The | 1168 // We do not check for overflow when incrementing the edge counter. The |
| 1169 // function should normally be optimized long before the counter can | 1169 // function should normally be optimized long before the counter can |
| 1170 // overflow; and though we do not reset the counters when we optimize or | 1170 // overflow; and though we do not reset the counters when we optimize or |
| 1171 // deoptimize, there is a bound on the number of | 1171 // deoptimize, there is a bound on the number of |
| 1172 // optimization/deoptimization cycles we will attempt. | 1172 // optimization/deoptimization cycles we will attempt. |
| 1173 const Array& counter = Array::ZoneHandle(Array::New(1, Heap::kOld)); | 1173 const Array& counter = Array::ZoneHandle(Array::New(1, Heap::kOld)); |
| 1174 counter.SetAt(0, Smi::Handle(Smi::New(0))); | 1174 counter.SetAt(0, Smi::Handle(Smi::New(0))); |
| 1175 __ Comment("Edge counter"); | 1175 __ Comment("Edge counter"); |
| 1176 __ LoadObject(R0, counter); | 1176 __ LoadObject(R0, counter); |
| 1177 __ ldr(IP, FieldAddress(R0, Array::element_offset(0))); | 1177 __ ldr(IP, FieldAddress(R0, Array::element_offset(0))); |
| 1178 __ adds(IP, IP, ShifterOperand(Smi::RawValue(1))); | 1178 __ add(IP, IP, ShifterOperand(Smi::RawValue(1))); |
| 1179 __ str(IP, FieldAddress(R0, Array::element_offset(0))); | 1179 __ str(IP, FieldAddress(R0, Array::element_offset(0))); |
| 1180 } | 1180 } |
| 1181 | 1181 |
| 1182 | 1182 |
| 1183 void FlowGraphCompiler::EmitOptimizedInstanceCall( | 1183 void FlowGraphCompiler::EmitOptimizedInstanceCall( |
| 1184 ExternalLabel* target_label, | 1184 ExternalLabel* target_label, |
| 1185 const ICData& ic_data, | 1185 const ICData& ic_data, |
| 1186 intptr_t argument_count, | 1186 intptr_t argument_count, |
| 1187 intptr_t deopt_id, | 1187 intptr_t deopt_id, |
| 1188 intptr_t token_pos, | 1188 intptr_t token_pos, |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1787 DRegister dreg = EvenDRegisterOf(reg); | 1787 DRegister dreg = EvenDRegisterOf(reg); |
| 1788 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 1788 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
| 1789 } | 1789 } |
| 1790 | 1790 |
| 1791 | 1791 |
| 1792 #undef __ | 1792 #undef __ |
| 1793 | 1793 |
| 1794 } // namespace dart | 1794 } // namespace dart |
| 1795 | 1795 |
| 1796 #endif // defined TARGET_ARCH_ARM | 1796 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |