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 1929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1940 StringEquality(assembler, kOneByteStringCid); | 1940 StringEquality(assembler, kOneByteStringCid); |
1941 } | 1941 } |
1942 | 1942 |
1943 | 1943 |
1944 void Intrinsifier::TwoByteString_equality(Assembler* assembler) { | 1944 void Intrinsifier::TwoByteString_equality(Assembler* assembler) { |
1945 StringEquality(assembler, kTwoByteStringCid); | 1945 StringEquality(assembler, kTwoByteStringCid); |
1946 } | 1946 } |
1947 | 1947 |
1948 | 1948 |
1949 void Intrinsifier::JSRegExp_ExecuteMatch(Assembler* assembler) { | 1949 void Intrinsifier::JSRegExp_ExecuteMatch(Assembler* assembler) { |
1950 if (FLAG_use_jscre) { | |
1951 return; | |
1952 } | |
1953 static const intptr_t kRegExpParamOffset = 2 * kWordSize; | 1950 static const intptr_t kRegExpParamOffset = 2 * kWordSize; |
1954 static const intptr_t kStringParamOffset = 1 * kWordSize; | 1951 static const intptr_t kStringParamOffset = 1 * kWordSize; |
1955 // start_index smi is located at offset 0. | 1952 // start_index smi is located at offset 0. |
1956 | 1953 |
1957 // Incoming registers: | 1954 // Incoming registers: |
1958 // R0: Function. (Will be reloaded with the specialized matcher function.) | 1955 // R0: Function. (Will be reloaded with the specialized matcher function.) |
1959 // R4: Arguments descriptor. (Will be preserved.) | 1956 // R4: Arguments descriptor. (Will be preserved.) |
1960 // R5: Unknown. (Must be GC safe on tail call.) | 1957 // R5: Unknown. (Must be GC safe on tail call.) |
1961 | 1958 |
1962 // Load the specialized function pointer into R0. Leverage the fact the | 1959 // Load the specialized function pointer into R0. Leverage the fact the |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2016 Isolate* isolate = Isolate::Current(); | 2013 Isolate* isolate = Isolate::Current(); |
2017 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate), kNoPP); | 2014 __ LoadImmediate(R1, reinterpret_cast<uword>(isolate), kNoPP); |
2018 // Set return value to Isolate::current_tag_. | 2015 // Set return value to Isolate::current_tag_. |
2019 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); | 2016 __ ldr(R0, Address(R1, Isolate::current_tag_offset())); |
2020 __ ret(); | 2017 __ ret(); |
2021 } | 2018 } |
2022 | 2019 |
2023 } // namespace dart | 2020 } // namespace dart |
2024 | 2021 |
2025 #endif // defined TARGET_ARCH_ARM64 | 2022 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |