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 // The intrinsic code below is executed before a method has built its frame. | 5 // The intrinsic code below is executed before a method has built its frame. |
6 // The return address is on the stack and the arguments below it. | 6 // The return address is on the stack and the arguments below it. |
7 // Registers EDX (arguments descriptor) and ECX (function) must be preserved. | 7 // Registers EDX (arguments descriptor) and ECX (function) must be preserved. |
8 // Each intrinsification method returns true if the corresponding | 8 // Each intrinsification method returns true if the corresponding |
9 // Dart method was intrinsified. | 9 // Dart method was intrinsified. |
10 | 10 |
(...skipping 2072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2083 StringEquality(assembler, kOneByteStringCid); | 2083 StringEquality(assembler, kOneByteStringCid); |
2084 } | 2084 } |
2085 | 2085 |
2086 | 2086 |
2087 void Intrinsifier::TwoByteString_equality(Assembler* assembler) { | 2087 void Intrinsifier::TwoByteString_equality(Assembler* assembler) { |
2088 StringEquality(assembler, kTwoByteStringCid); | 2088 StringEquality(assembler, kTwoByteStringCid); |
2089 } | 2089 } |
2090 | 2090 |
2091 | 2091 |
2092 void Intrinsifier::JSRegExp_ExecuteMatch(Assembler* assembler) { | 2092 void Intrinsifier::JSRegExp_ExecuteMatch(Assembler* assembler) { |
2093 if (FLAG_interpret_irregexp) return; | 2093 if (FLAG_precompiled_mode) return; |
2094 | 2094 |
2095 static const intptr_t kRegExpParamOffset = 3 * kWordSize; | 2095 static const intptr_t kRegExpParamOffset = 3 * kWordSize; |
2096 static const intptr_t kStringParamOffset = 2 * kWordSize; | 2096 static const intptr_t kStringParamOffset = 2 * kWordSize; |
2097 // start_index smi is located at offset 1. | 2097 // start_index smi is located at offset 1. |
2098 | 2098 |
2099 // Incoming registers: | 2099 // Incoming registers: |
2100 // EAX: Function. (Will be loaded with the specialized matcher function.) | 2100 // EAX: Function. (Will be loaded with the specialized matcher function.) |
2101 // ECX: Unknown. (Must be GC safe on tail call.) | 2101 // ECX: Unknown. (Must be GC safe on tail call.) |
2102 // EDX: Arguments descriptor. (Will be preserved.) | 2102 // EDX: Arguments descriptor. (Will be preserved.) |
2103 | 2103 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2148 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { | 2148 void Intrinsifier::Profiler_getCurrentTag(Assembler* assembler) { |
2149 __ LoadIsolate(EAX); | 2149 __ LoadIsolate(EAX); |
2150 __ movl(EAX, Address(EAX, Isolate::current_tag_offset())); | 2150 __ movl(EAX, Address(EAX, Isolate::current_tag_offset())); |
2151 __ ret(); | 2151 __ ret(); |
2152 } | 2152 } |
2153 | 2153 |
2154 #undef __ | 2154 #undef __ |
2155 } // namespace dart | 2155 } // namespace dart |
2156 | 2156 |
2157 #endif // defined TARGET_ARCH_IA32 | 2157 #endif // defined TARGET_ARCH_IA32 |
OLD | NEW |