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_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
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 2028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2039 StringEquality(assembler, kOneByteStringCid); | 2039 StringEquality(assembler, kOneByteStringCid); |
2040 } | 2040 } |
2041 | 2041 |
2042 | 2042 |
2043 void Intrinsifier::TwoByteString_equality(Assembler* assembler) { | 2043 void Intrinsifier::TwoByteString_equality(Assembler* assembler) { |
2044 StringEquality(assembler, kTwoByteStringCid); | 2044 StringEquality(assembler, kTwoByteStringCid); |
2045 } | 2045 } |
2046 | 2046 |
2047 | 2047 |
2048 void Intrinsifier::JSRegExp_ExecuteMatch(Assembler* assembler) { | 2048 void Intrinsifier::JSRegExp_ExecuteMatch(Assembler* assembler) { |
2049 if (FLAG_interpret_irregexp) return; | 2049 if (FLAG_precompiled_mode) return; |
2050 | 2050 |
2051 static const intptr_t kRegExpParamOffset = 3 * kWordSize; | 2051 static const intptr_t kRegExpParamOffset = 3 * kWordSize; |
2052 static const intptr_t kStringParamOffset = 2 * kWordSize; | 2052 static const intptr_t kStringParamOffset = 2 * kWordSize; |
2053 // start_index smi is located at offset 1. | 2053 // start_index smi is located at offset 1. |
2054 | 2054 |
2055 // Incoming registers: | 2055 // Incoming registers: |
2056 // RAX: Function. (Will be loaded with the specialized matcher function.) | 2056 // RAX: Function. (Will be loaded with the specialized matcher function.) |
2057 // RCX: Unknown. (Must be GC safe on tail call.) | 2057 // RCX: Unknown. (Must be GC safe on tail call.) |
2058 // R10: Arguments descriptor. (Will be preserved.) | 2058 // R10: Arguments descriptor. (Will be preserved.) |
2059 | 2059 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2106 __ LoadIsolate(RAX); | 2106 __ LoadIsolate(RAX); |
2107 __ movq(RAX, Address(RAX, Isolate::current_tag_offset())); | 2107 __ movq(RAX, Address(RAX, Isolate::current_tag_offset())); |
2108 __ ret(); | 2108 __ ret(); |
2109 } | 2109 } |
2110 | 2110 |
2111 #undef __ | 2111 #undef __ |
2112 | 2112 |
2113 } // namespace dart | 2113 } // namespace dart |
2114 | 2114 |
2115 #endif // defined TARGET_ARCH_X64 | 2115 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |