| 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 2079 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2090 // string CIDs as well as stored function pointers are in sequence. | 2090 // string CIDs as well as stored function pointers are in sequence. |
| 2091 __ ldr(R2, Address(SP, kRegExpParamOffset)); | 2091 __ ldr(R2, Address(SP, kRegExpParamOffset)); |
| 2092 __ ldr(R1, Address(SP, kStringParamOffset)); | 2092 __ ldr(R1, Address(SP, kStringParamOffset)); |
| 2093 __ LoadClassId(R1, R1); | 2093 __ LoadClassId(R1, R1); |
| 2094 __ AddImmediate(R1, R1, -kOneByteStringCid); | 2094 __ AddImmediate(R1, R1, -kOneByteStringCid); |
| 2095 __ add(R1, R2, Operand(R1, LSL, kWordSizeLog2)); | 2095 __ add(R1, R2, Operand(R1, LSL, kWordSizeLog2)); |
| 2096 __ ldr(R0, FieldAddress(R1, JSRegExp::function_offset(kOneByteStringCid))); | 2096 __ ldr(R0, FieldAddress(R1, JSRegExp::function_offset(kOneByteStringCid))); |
| 2097 | 2097 |
| 2098 // Registers are now set up for the lazy compile stub. It expects the function | 2098 // Registers are now set up for the lazy compile stub. It expects the function |
| 2099 // in R0, the argument descriptor in R4, and IC-Data in R5. | 2099 // in R0, the argument descriptor in R4, and IC-Data in R5. |
| 2100 static const intptr_t arg_count = RegExpMacroAssembler::kParamCount; | |
| 2101 __ LoadObject(R4, Array::Handle(ArgumentsDescriptor::New(arg_count))); | |
| 2102 __ eor(R5, R5, Operand(R5)); | 2100 __ eor(R5, R5, Operand(R5)); |
| 2103 | 2101 |
| 2104 // Tail-call the function. | 2102 // Tail-call the function. |
| 2105 __ ldr(R1, FieldAddress(R0, Function::entry_point_offset())); | 2103 __ ldr(R1, FieldAddress(R0, Function::entry_point_offset())); |
| 2106 __ br(R1); | 2104 __ br(R1); |
| 2107 } | 2105 } |
| 2108 | 2106 |
| 2109 | 2107 |
| 2110 // On stack: user tag (+0). | 2108 // On stack: user tag (+0). |
| 2111 void Intrinsifier::UserTag_makeCurrent(Assembler* assembler) { | 2109 void Intrinsifier::UserTag_makeCurrent(Assembler* assembler) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 2134 | 2132 |
| 2135 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { | 2133 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { |
| 2136 __ LoadIsolate(R0); | 2134 __ LoadIsolate(R0); |
| 2137 __ ldr(R0, Address(R0, Isolate::current_tag_offset())); | 2135 __ ldr(R0, Address(R0, Isolate::current_tag_offset())); |
| 2138 __ ret(); | 2136 __ ret(); |
| 2139 } | 2137 } |
| 2140 | 2138 |
| 2141 } // namespace dart | 2139 } // namespace dart |
| 2142 | 2140 |
| 2143 #endif // defined TARGET_ARCH_ARM64 | 2141 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |