| 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 2084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; | 2100 static const intptr_t arg_count = RegExpMacroAssembler::kParamCount; |
| 2101 __ LoadObject(R4, Array::Handle(ArgumentsDescriptor::New(arg_count))); | 2101 __ LoadObject(R4, Array::Handle(ArgumentsDescriptor::New(arg_count))); |
| 2102 __ eor(R5, R5, Operand(R5)); | 2102 __ eor(R5, R5, Operand(R5)); |
| 2103 | 2103 |
| 2104 // Tail-call the function. | 2104 // Tail-call the function. |
| 2105 __ ldr(R1, FieldAddress(R0, Function::instructions_offset())); | 2105 __ ldr(R1, FieldAddress(R0, Function::entry_point_offset())); |
| 2106 __ AddImmediate(R1, R1, Instructions::HeaderSize() - kHeapObjectTag); | |
| 2107 __ br(R1); | 2106 __ br(R1); |
| 2108 } | 2107 } |
| 2109 | 2108 |
| 2110 | 2109 |
| 2111 // On stack: user tag (+0). | 2110 // On stack: user tag (+0). |
| 2112 void Intrinsifier::UserTag_makeCurrent(Assembler* assembler) { | 2111 void Intrinsifier::UserTag_makeCurrent(Assembler* assembler) { |
| 2113 // R1: Isolate. | 2112 // R1: Isolate. |
| 2114 __ LoadIsolate(R1); | 2113 __ LoadIsolate(R1); |
| 2115 // R0: Current user tag. | 2114 // R0: Current user tag. |
| 2116 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); | 2115 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2135 | 2134 |
| 2136 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { | 2135 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { |
| 2137 __ LoadIsolate(R0); | 2136 __ LoadIsolate(R0); |
| 2138 __ ldr(R0, Address(R0, Isolate::current_tag_offset())); | 2137 __ ldr(R0, Address(R0, Isolate::current_tag_offset())); |
| 2139 __ ret(); | 2138 __ ret(); |
| 2140 } | 2139 } |
| 2141 | 2140 |
| 2142 } // namespace dart | 2141 } // namespace dart |
| 2143 | 2142 |
| 2144 #endif // defined TARGET_ARCH_ARM64 | 2143 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |