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/intrinsifier.h" | 8 #include "vm/intrinsifier.h" |
9 | 9 |
10 #include "vm/assembler.h" | 10 #include "vm/assembler.h" |
11 #include "vm/dart_entry.h" | 11 #include "vm/dart_entry.h" |
12 #include "vm/flow_graph_compiler.h" | 12 #include "vm/flow_graph_compiler.h" |
13 #include "vm/object.h" | 13 #include "vm/object.h" |
14 #include "vm/object_store.h" | 14 #include "vm/object_store.h" |
15 #include "vm/regexp_assembler.h" | 15 #include "vm/regexp_assembler.h" |
16 #include "vm/symbols.h" | 16 #include "vm/symbols.h" |
17 | 17 |
18 namespace dart { | 18 namespace dart { |
19 | 19 |
20 DECLARE_FLAG(bool, interpret_irregexp); | 20 DECLARE_FLAG(bool, interpret_irregexp); |
21 | 21 |
22 // When entering intrinsics code: | 22 // When entering intrinsics code: |
23 // R5: IC Data | |
24 // R4: Arguments descriptor | 23 // R4: Arguments descriptor |
25 // LR: Return address | 24 // LR: Return address |
26 // The R5, R4 registers can be destroyed only if there is no slow-path, i.e. | 25 // The R4 register can be destroyed only if there is no slow-path, i.e. |
27 // if the intrinsified method always executes a return. | 26 // if the intrinsified method always executes a return. |
28 // The FP register should not be modified, because it is used by the profiler. | 27 // The FP register should not be modified, because it is used by the profiler. |
| 28 // The PP and THR registers (see constants_arm64.h) must be preserved. |
29 | 29 |
30 #define __ assembler-> | 30 #define __ assembler-> |
31 | 31 |
32 | 32 |
33 intptr_t Intrinsifier::ParameterSlotFromSp() { return -1; } | 33 intptr_t Intrinsifier::ParameterSlotFromSp() { return -1; } |
34 | 34 |
35 | 35 |
36 // Intrinsify only for Smi value and index. Non-smi values need a store buffer | 36 // Intrinsify only for Smi value and index. Non-smi values need a store buffer |
37 // update. Array length is always a Smi. | 37 // update. Array length is always a Smi. |
38 void Intrinsifier::ObjectArraySetIndexed(Assembler* assembler) { | 38 void Intrinsifier::ObjectArraySetIndexed(Assembler* assembler) { |
(...skipping 2046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2085 | 2085 |
2086 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { | 2086 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { |
2087 __ LoadIsolate(R0); | 2087 __ LoadIsolate(R0); |
2088 __ ldr(R0, Address(R0, Isolate::current_tag_offset())); | 2088 __ ldr(R0, Address(R0, Isolate::current_tag_offset())); |
2089 __ ret(); | 2089 __ ret(); |
2090 } | 2090 } |
2091 | 2091 |
2092 } // namespace dart | 2092 } // namespace dart |
2093 | 2093 |
2094 #endif // defined TARGET_ARCH_ARM64 | 2094 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |