| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
| 6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 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 2009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2020 __ add(R1, R2, Operand(R1, LSL, kWordSizeLog2)); | 2020 __ add(R1, R2, Operand(R1, LSL, kWordSizeLog2)); |
| 2021 __ ldr(R0, FieldAddress(R1, JSRegExp::function_offset(kOneByteStringCid))); | 2021 __ ldr(R0, FieldAddress(R1, JSRegExp::function_offset(kOneByteStringCid))); |
| 2022 | 2022 |
| 2023 // Registers are now set up for the lazy compile stub. It expects the function | 2023 // Registers are now set up for the lazy compile stub. It expects the function |
| 2024 // in R0, the argument descriptor in R4, and IC-Data in R5. | 2024 // in R0, the argument descriptor in R4, and IC-Data in R5. |
| 2025 static const intptr_t arg_count = RegExpMacroAssembler::kParamCount; | 2025 static const intptr_t arg_count = RegExpMacroAssembler::kParamCount; |
| 2026 __ LoadObject(R4, Array::Handle(ArgumentsDescriptor::New(arg_count))); | 2026 __ LoadObject(R4, Array::Handle(ArgumentsDescriptor::New(arg_count))); |
| 2027 __ eor(R5, R5, Operand(R5)); | 2027 __ eor(R5, R5, Operand(R5)); |
| 2028 | 2028 |
| 2029 // Tail-call the function. | 2029 // Tail-call the function. |
| 2030 __ ldr(R1, FieldAddress(R0, Function::instructions_offset())); | 2030 __ ldr(R1, FieldAddress(R0, Function::entry_point_offset())); |
| 2031 __ AddImmediate(R1, Instructions::HeaderSize() - kHeapObjectTag); | |
| 2032 __ bx(R1); | 2031 __ bx(R1); |
| 2033 } | 2032 } |
| 2034 | 2033 |
| 2035 | 2034 |
| 2036 // On stack: user tag (+0). | 2035 // On stack: user tag (+0). |
| 2037 void Intrinsifier::UserTag_makeCurrent(Assembler* assembler) { | 2036 void Intrinsifier::UserTag_makeCurrent(Assembler* assembler) { |
| 2038 // R1: Isolate. | 2037 // R1: Isolate. |
| 2039 __ LoadIsolate(R1); | 2038 __ LoadIsolate(R1); |
| 2040 // R0: Current user tag. | 2039 // R0: Current user tag. |
| 2041 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); | 2040 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 2060 | 2059 |
| 2061 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { | 2060 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { |
| 2062 __ LoadIsolate(R0); | 2061 __ LoadIsolate(R0); |
| 2063 __ ldr(R0, Address(R0, Isolate::current_tag_offset())); | 2062 __ ldr(R0, Address(R0, Isolate::current_tag_offset())); |
| 2064 __ Ret(); | 2063 __ Ret(); |
| 2065 } | 2064 } |
| 2066 | 2065 |
| 2067 } // namespace dart | 2066 } // namespace dart |
| 2068 | 2067 |
| 2069 #endif // defined TARGET_ARCH_ARM | 2068 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |