| 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 1269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1280 __ CompareRegisters(R4, R0); | 1280 __ CompareRegisters(R4, R0); |
| 1281 __ b(&update, NE); | 1281 __ b(&update, NE); |
| 1282 | 1282 |
| 1283 __ Bind(&call_target_function); | 1283 __ Bind(&call_target_function); |
| 1284 // Call the target found in the cache. For a class id match, this is a | 1284 // Call the target found in the cache. For a class id match, this is a |
| 1285 // proper target for the given name and arguments descriptor. If the | 1285 // proper target for the given name and arguments descriptor. If the |
| 1286 // illegal class id was found, the target is a cache miss handler that can | 1286 // illegal class id was found, the target is a cache miss handler that can |
| 1287 // be invoked as a normal Dart function. | 1287 // be invoked as a normal Dart function. |
| 1288 __ add(TMP, R2, Operand(R3, LSL, 3)); | 1288 __ add(TMP, R2, Operand(R3, LSL, 3)); |
| 1289 __ LoadFieldFromOffset(R0, TMP, base + kWordSize, PP); | 1289 __ LoadFieldFromOffset(R0, TMP, base + kWordSize, PP); |
| 1290 __ LoadFieldFromOffset(R1, R0, Function::code_offset(), PP); | 1290 __ LoadFieldFromOffset(R1, R0, Function::instructions_offset(), PP); |
| 1291 __ LoadFieldFromOffset(R1, R1, Code::instructions_offset(), PP); | |
| 1292 __ LoadObject(R5, ic_data, PP); | 1291 __ LoadObject(R5, ic_data, PP); |
| 1293 __ LoadObject(R4, arguments_descriptor, PP); | 1292 __ LoadObject(R4, arguments_descriptor, PP); |
| 1294 __ AddImmediate(R1, R1, Instructions::HeaderSize() - kHeapObjectTag, PP); | 1293 __ AddImmediate(R1, R1, Instructions::HeaderSize() - kHeapObjectTag, PP); |
| 1295 __ blr(R1); | 1294 __ blr(R1); |
| 1296 AddCurrentDescriptor(PcDescriptors::kOther, Isolate::kNoDeoptId, token_pos); | 1295 AddCurrentDescriptor(PcDescriptors::kOther, Isolate::kNoDeoptId, token_pos); |
| 1297 RecordSafepoint(locs); | 1296 RecordSafepoint(locs); |
| 1298 AddDeoptIndexAtCall(Isolate::ToDeoptAfter(deopt_id), token_pos); | 1297 AddDeoptIndexAtCall(Isolate::ToDeoptAfter(deopt_id), token_pos); |
| 1299 __ Drop(argument_count); | 1298 __ Drop(argument_count); |
| 1300 } | 1299 } |
| 1301 | 1300 |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1739 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { | 1738 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { |
| 1740 UNIMPLEMENTED(); | 1739 UNIMPLEMENTED(); |
| 1741 } | 1740 } |
| 1742 | 1741 |
| 1743 | 1742 |
| 1744 #undef __ | 1743 #undef __ |
| 1745 | 1744 |
| 1746 } // namespace dart | 1745 } // namespace dart |
| 1747 | 1746 |
| 1748 #endif // defined TARGET_ARCH_ARM64 | 1747 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |