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" |
(...skipping 2076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2087 __ LoadClassId(R1, R1); | 2087 __ LoadClassId(R1, R1); |
2088 __ AddImmediate(R1, R1, -kOneByteStringCid); | 2088 __ AddImmediate(R1, R1, -kOneByteStringCid); |
2089 __ add(R1, R2, Operand(R1, LSL, kWordSizeLog2)); | 2089 __ add(R1, R2, Operand(R1, LSL, kWordSizeLog2)); |
2090 __ ldr(R0, FieldAddress(R1, JSRegExp::function_offset(kOneByteStringCid))); | 2090 __ ldr(R0, FieldAddress(R1, JSRegExp::function_offset(kOneByteStringCid))); |
2091 | 2091 |
2092 // Registers are now set up for the lazy compile stub. It expects the function | 2092 // Registers are now set up for the lazy compile stub. It expects the function |
2093 // in R0, the argument descriptor in R4, and IC-Data in R5. | 2093 // in R0, the argument descriptor in R4, and IC-Data in R5. |
2094 __ eor(R5, R5, Operand(R5)); | 2094 __ eor(R5, R5, Operand(R5)); |
2095 | 2095 |
2096 // Tail-call the function. | 2096 // Tail-call the function. |
2097 __ ldr(CODE_REG, FieldAddress(R0, Function::code_offset())); | |
2098 __ ldr(R1, FieldAddress(R0, Function::entry_point_offset())); | 2097 __ ldr(R1, FieldAddress(R0, Function::entry_point_offset())); |
2099 __ br(R1); | 2098 __ br(R1); |
2100 } | 2099 } |
2101 | 2100 |
2102 | 2101 |
2103 // On stack: user tag (+0). | 2102 // On stack: user tag (+0). |
2104 void Intrinsifier::UserTag_makeCurrent(Assembler* assembler) { | 2103 void Intrinsifier::UserTag_makeCurrent(Assembler* assembler) { |
2105 // R1: Isolate. | 2104 // R1: Isolate. |
2106 __ LoadIsolate(R1); | 2105 __ LoadIsolate(R1); |
2107 // R0: Current user tag. | 2106 // R0: Current user tag. |
(...skipping 19 matching lines...) Expand all Loading... |
2127 | 2126 |
2128 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { | 2127 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { |
2129 __ LoadIsolate(R0); | 2128 __ LoadIsolate(R0); |
2130 __ ldr(R0, Address(R0, Isolate::current_tag_offset())); | 2129 __ ldr(R0, Address(R0, Isolate::current_tag_offset())); |
2131 __ ret(); | 2130 __ ret(); |
2132 } | 2131 } |
2133 | 2132 |
2134 } // namespace dart | 2133 } // namespace dart |
2135 | 2134 |
2136 #endif // defined TARGET_ARCH_ARM64 | 2135 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |