| 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 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1274 __ cmp(R4, Operand(R0)); | 1274 __ cmp(R4, Operand(R0)); |
| 1275 __ b(&update, NE); | 1275 __ b(&update, NE); |
| 1276 | 1276 |
| 1277 __ Bind(&call_target_function); | 1277 __ Bind(&call_target_function); |
| 1278 // Call the target found in the cache. For a class id match, this is a | 1278 // Call the target found in the cache. For a class id match, this is a |
| 1279 // proper target for the given name and arguments descriptor. If the | 1279 // proper target for the given name and arguments descriptor. If the |
| 1280 // illegal class id was found, the target is a cache miss handler that can | 1280 // illegal class id was found, the target is a cache miss handler that can |
| 1281 // be invoked as a normal Dart function. | 1281 // be invoked as a normal Dart function. |
| 1282 __ add(IP, R2, Operand(R3, LSL, 2)); | 1282 __ add(IP, R2, Operand(R3, LSL, 2)); |
| 1283 __ ldr(R0, FieldAddress(IP, base + kWordSize)); | 1283 __ ldr(R0, FieldAddress(IP, base + kWordSize)); |
| 1284 __ ldr(R1, FieldAddress(R0, Function::code_offset())); | 1284 __ ldr(R1, FieldAddress(R0, Function::instructions_offset())); |
| 1285 __ ldr(R1, FieldAddress(R1, Code::instructions_offset())); | |
| 1286 __ LoadObject(R5, ic_data); | 1285 __ LoadObject(R5, ic_data); |
| 1287 __ LoadObject(R4, arguments_descriptor); | 1286 __ LoadObject(R4, arguments_descriptor); |
| 1288 __ AddImmediate(R1, Instructions::HeaderSize() - kHeapObjectTag); | 1287 __ AddImmediate(R1, Instructions::HeaderSize() - kHeapObjectTag); |
| 1289 __ blx(R1); | 1288 __ blx(R1); |
| 1290 AddCurrentDescriptor(PcDescriptors::kOther, Isolate::kNoDeoptId, token_pos); | 1289 AddCurrentDescriptor(PcDescriptors::kOther, Isolate::kNoDeoptId, token_pos); |
| 1291 RecordSafepoint(locs); | 1290 RecordSafepoint(locs); |
| 1292 AddDeoptIndexAtCall(Isolate::ToDeoptAfter(deopt_id), token_pos); | 1291 AddDeoptIndexAtCall(Isolate::ToDeoptAfter(deopt_id), token_pos); |
| 1293 __ Drop(argument_count); | 1292 __ Drop(argument_count); |
| 1294 } | 1293 } |
| 1295 | 1294 |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1775 DRegister dreg = EvenDRegisterOf(reg); | 1774 DRegister dreg = EvenDRegisterOf(reg); |
| 1776 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 1775 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
| 1777 } | 1776 } |
| 1778 | 1777 |
| 1779 | 1778 |
| 1780 #undef __ | 1779 #undef __ |
| 1781 | 1780 |
| 1782 } // namespace dart | 1781 } // namespace dart |
| 1783 | 1782 |
| 1784 #endif // defined TARGET_ARCH_ARM | 1783 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |