| 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" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
| 7 | 7 |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/code_generator.h" | 9 #include "vm/code_generator.h" |
| 10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
| (...skipping 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1513 // Pass IC data object. | 1513 // Pass IC data object. |
| 1514 __ Push(R5); | 1514 __ Push(R5); |
| 1515 __ CallRuntime(handle_ic_miss, num_args + 1); | 1515 __ CallRuntime(handle_ic_miss, num_args + 1); |
| 1516 // Remove the call arguments pushed earlier, including the IC data object. | 1516 // Remove the call arguments pushed earlier, including the IC data object. |
| 1517 __ Drop(num_args + 1); | 1517 __ Drop(num_args + 1); |
| 1518 // Pop returned function object into R0. | 1518 // Pop returned function object into R0. |
| 1519 // Restore arguments descriptor array and IC data array. | 1519 // Restore arguments descriptor array and IC data array. |
| 1520 __ Pop(R0); // Pop returned function object into R0. | 1520 __ Pop(R0); // Pop returned function object into R0. |
| 1521 __ Pop(R5); // Restore IC Data. | 1521 __ Pop(R5); // Restore IC Data. |
| 1522 __ Pop(R4); // Restore arguments descriptor array. | 1522 __ Pop(R4); // Restore arguments descriptor array. |
| 1523 if (range_collection_mode == kCollectRanges) { | 1523 __ RestoreCodePointer(); |
| 1524 __ RestoreCodePointer(); | |
| 1525 } | |
| 1526 __ LeaveStubFrame(); | 1524 __ LeaveStubFrame(); |
| 1527 Label call_target_function; | 1525 Label call_target_function; |
| 1528 if (!FLAG_lazy_dispatchers) { | 1526 if (!FLAG_lazy_dispatchers) { |
| 1529 GenerateDispatcherCode(assembler, &call_target_function); | 1527 GenerateDispatcherCode(assembler, &call_target_function); |
| 1530 } else { | 1528 } else { |
| 1531 __ b(&call_target_function); | 1529 __ b(&call_target_function); |
| 1532 } | 1530 } |
| 1533 | 1531 |
| 1534 __ Bind(&found); | 1532 __ Bind(&found); |
| 1535 __ Comment("Update caller's counter"); | 1533 __ Comment("Update caller's counter"); |
| (...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2193 __ Bind(&miss); | 2191 __ Bind(&miss); |
| 2194 __ LoadIsolate(R2); | 2192 __ LoadIsolate(R2); |
| 2195 __ ldr(CODE_REG, Address(R2, Isolate::ic_miss_code_offset())); | 2193 __ ldr(CODE_REG, Address(R2, Isolate::ic_miss_code_offset())); |
| 2196 __ ldr(R1, FieldAddress(CODE_REG, Code::entry_point_offset())); | 2194 __ ldr(R1, FieldAddress(CODE_REG, Code::entry_point_offset())); |
| 2197 __ ret(); | 2195 __ ret(); |
| 2198 } | 2196 } |
| 2199 | 2197 |
| 2200 } // namespace dart | 2198 } // namespace dart |
| 2201 | 2199 |
| 2202 #endif // defined TARGET_ARCH_ARM64 | 2200 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |