| 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 2150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2161 StringEquality(assembler, kOneByteStringCid); | 2161 StringEquality(assembler, kOneByteStringCid); |
| 2162 } | 2162 } |
| 2163 | 2163 |
| 2164 | 2164 |
| 2165 void Intrinsifier::TwoByteString_equality(Assembler* assembler) { | 2165 void Intrinsifier::TwoByteString_equality(Assembler* assembler) { |
| 2166 StringEquality(assembler, kTwoByteStringCid); | 2166 StringEquality(assembler, kTwoByteStringCid); |
| 2167 } | 2167 } |
| 2168 | 2168 |
| 2169 | 2169 |
| 2170 void Intrinsifier::JSRegExp_ExecuteMatch(Assembler* assembler) { | 2170 void Intrinsifier::JSRegExp_ExecuteMatch(Assembler* assembler) { |
| 2171 if (FLAG_interpret_irregexp) return; | 2171 if (FLAG_precompiled_mode) return; |
| 2172 | 2172 |
| 2173 static const intptr_t kRegExpParamOffset = 2 * kWordSize; | 2173 static const intptr_t kRegExpParamOffset = 2 * kWordSize; |
| 2174 static const intptr_t kStringParamOffset = 1 * kWordSize; | 2174 static const intptr_t kStringParamOffset = 1 * kWordSize; |
| 2175 // start_index smi is located at 0. | 2175 // start_index smi is located at 0. |
| 2176 | 2176 |
| 2177 // Incoming registers: | 2177 // Incoming registers: |
| 2178 // T0: Function. (Will be reloaded with the specialized matcher function.) | 2178 // T0: Function. (Will be reloaded with the specialized matcher function.) |
| 2179 // S4: Arguments descriptor. (Will be preserved.) | 2179 // S4: Arguments descriptor. (Will be preserved.) |
| 2180 // S5: Unknown. (Must be GC safe on tail call.) | 2180 // S5: Unknown. (Must be GC safe on tail call.) |
| 2181 | 2181 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2228 | 2228 |
| 2229 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { | 2229 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { |
| 2230 __ LoadIsolate(V0); | 2230 __ LoadIsolate(V0); |
| 2231 __ Ret(); | 2231 __ Ret(); |
| 2232 __ delay_slot()->lw(V0, Address(V0, Isolate::current_tag_offset())); | 2232 __ delay_slot()->lw(V0, Address(V0, Isolate::current_tag_offset())); |
| 2233 } | 2233 } |
| 2234 | 2234 |
| 2235 } // namespace dart | 2235 } // namespace dart |
| 2236 | 2236 |
| 2237 #endif // defined TARGET_ARCH_MIPS | 2237 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |