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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
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 1951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1962 StringEquality(assembler, kOneByteStringCid); | 1962 StringEquality(assembler, kOneByteStringCid); |
1963 } | 1963 } |
1964 | 1964 |
1965 | 1965 |
1966 void Intrinsifier::TwoByteString_equality(Assembler* assembler) { | 1966 void Intrinsifier::TwoByteString_equality(Assembler* assembler) { |
1967 StringEquality(assembler, kTwoByteStringCid); | 1967 StringEquality(assembler, kTwoByteStringCid); |
1968 } | 1968 } |
1969 | 1969 |
1970 | 1970 |
1971 void Intrinsifier::JSRegExp_ExecuteMatch(Assembler* assembler) { | 1971 void Intrinsifier::JSRegExp_ExecuteMatch(Assembler* assembler) { |
1972 if (FLAG_use_jscre) { | |
1973 return; | |
1974 } | |
1975 static const intptr_t kRegExpParamOffset = 2 * kWordSize; | 1972 static const intptr_t kRegExpParamOffset = 2 * kWordSize; |
1976 static const intptr_t kStringParamOffset = 1 * kWordSize; | 1973 static const intptr_t kStringParamOffset = 1 * kWordSize; |
1977 // start_index smi is located at 0. | 1974 // start_index smi is located at 0. |
1978 | 1975 |
1979 // Incoming registers: | 1976 // Incoming registers: |
1980 // T0: Function. (Will be reloaded with the specialized matcher function.) | 1977 // T0: Function. (Will be reloaded with the specialized matcher function.) |
1981 // S4: Arguments descriptor. (Will be preserved.) | 1978 // S4: Arguments descriptor. (Will be preserved.) |
1982 // S5: Unknown. (Must be GC safe on tail call.) | 1979 // S5: Unknown. (Must be GC safe on tail call.) |
1983 | 1980 |
1984 // Load the specialized function pointer into T0. Leverage the fact the | 1981 // Load the specialized function pointer into T0. Leverage the fact the |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2039 Isolate* isolate = Isolate::Current(); | 2036 Isolate* isolate = Isolate::Current(); |
2040 __ LoadImmediate(V0, reinterpret_cast<uword>(isolate)); | 2037 __ LoadImmediate(V0, reinterpret_cast<uword>(isolate)); |
2041 // Set return value. | 2038 // Set return value. |
2042 __ Ret(); | 2039 __ Ret(); |
2043 __ delay_slot()->lw(V0, Address(V0, Isolate::current_tag_offset())); | 2040 __ delay_slot()->lw(V0, Address(V0, Isolate::current_tag_offset())); |
2044 } | 2041 } |
2045 | 2042 |
2046 } // namespace dart | 2043 } // namespace dart |
2047 | 2044 |
2048 #endif // defined TARGET_ARCH_MIPS | 2045 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |