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 1896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1907 StringEquality(assembler, kOneByteStringCid); | 1907 StringEquality(assembler, kOneByteStringCid); |
1908 } | 1908 } |
1909 | 1909 |
1910 | 1910 |
1911 void Intrinsifier::TwoByteString_equality(Assembler* assembler) { | 1911 void Intrinsifier::TwoByteString_equality(Assembler* assembler) { |
1912 StringEquality(assembler, kTwoByteStringCid); | 1912 StringEquality(assembler, kTwoByteStringCid); |
1913 } | 1913 } |
1914 | 1914 |
1915 | 1915 |
1916 void Intrinsifier::JSRegExp_ExecuteMatch(Assembler* assembler) { | 1916 void Intrinsifier::JSRegExp_ExecuteMatch(Assembler* assembler) { |
1917 if (FLAG_use_jscre) { | |
1918 return; | |
1919 } | |
1920 static const intptr_t kRegExpParamOffset = 3 * kWordSize; | 1917 static const intptr_t kRegExpParamOffset = 3 * kWordSize; |
1921 static const intptr_t kStringParamOffset = 2 * kWordSize; | 1918 static const intptr_t kStringParamOffset = 2 * kWordSize; |
1922 // start_index smi is located at offset 1. | 1919 // start_index smi is located at offset 1. |
1923 | 1920 |
1924 // Incoming registers: | 1921 // Incoming registers: |
1925 // RAX: Function. (Will be loaded with the specialized matcher function.) | 1922 // RAX: Function. (Will be loaded with the specialized matcher function.) |
1926 // RCX: Unknown. (Must be GC safe on tail call.) | 1923 // RCX: Unknown. (Must be GC safe on tail call.) |
1927 // R10: Arguments descriptor. (Will be preserved.) | 1924 // R10: Arguments descriptor. (Will be preserved.) |
1928 | 1925 |
1929 // Load the specialized function pointer into RAX. Leverage the fact the | 1926 // Load the specialized function pointer into RAX. Leverage the fact the |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1991 // Set return value to Isolate::current_tag_. | 1988 // Set return value to Isolate::current_tag_. |
1992 __ movq(RAX, Address(RBX, Isolate::current_tag_offset())); | 1989 __ movq(RAX, Address(RBX, Isolate::current_tag_offset())); |
1993 __ ret(); | 1990 __ ret(); |
1994 } | 1991 } |
1995 | 1992 |
1996 #undef __ | 1993 #undef __ |
1997 | 1994 |
1998 } // namespace dart | 1995 } // namespace dart |
1999 | 1996 |
2000 #endif // defined TARGET_ARCH_X64 | 1997 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |