OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 #ifndef VM_METHOD_RECOGNIZER_H_ | 5 #ifndef VM_METHOD_RECOGNIZER_H_ |
6 #define VM_METHOD_RECOGNIZER_H_ | 6 #define VM_METHOD_RECOGNIZER_H_ |
7 | 7 |
8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
9 | 9 |
10 namespace dart { | 10 namespace dart { |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 V(_Double, get:isNegative, Double_getIsNegative, 1637875580) \ | 177 V(_Double, get:isNegative, Double_getIsNegative, 1637875580) \ |
178 V(_Double, _mulFromInteger, Double_mulFromInteger, 1594796483) \ | 178 V(_Double, _mulFromInteger, Double_mulFromInteger, 1594796483) \ |
179 V(_Double, .fromInteger, DoubleFromInteger, 999771940) \ | 179 V(_Double, .fromInteger, DoubleFromInteger, 999771940) \ |
180 V(_List, []=, ObjectArraySetIndexed, 1288827575) \ | 180 V(_List, []=, ObjectArraySetIndexed, 1288827575) \ |
181 V(_GrowableList, .withData, GrowableArray_Allocate, 732923072) \ | 181 V(_GrowableList, .withData, GrowableArray_Allocate, 732923072) \ |
182 V(_GrowableList, [], GrowableArrayGetIndexed, 919108233) \ | 182 V(_GrowableList, [], GrowableArrayGetIndexed, 919108233) \ |
183 V(_GrowableList, []=, GrowableArraySetIndexed, 1218649853) \ | 183 V(_GrowableList, []=, GrowableArraySetIndexed, 1218649853) \ |
184 V(_GrowableList, _setLength, GrowableArraySetLength, 89389299) \ | 184 V(_GrowableList, _setLength, GrowableArraySetLength, 89389299) \ |
185 V(_GrowableList, _setData, GrowableArraySetData, 2126927509) \ | 185 V(_GrowableList, _setData, GrowableArraySetData, 2126927509) \ |
186 V(_GrowableList, add, GrowableArray_add, 1899133961) \ | 186 V(_GrowableList, add, GrowableArray_add, 1899133961) \ |
| 187 V(_JSSyntaxRegExp, _ExecuteMatch, JSRegExp_ExecuteMatch, 1654250896) \ |
187 V(Object, ==, ObjectEquals, 1068471689) \ | 188 V(Object, ==, ObjectEquals, 1068471689) \ |
188 V(_StringBase, get:hashCode, String_getHashCode, 2102906241) \ | 189 V(_StringBase, get:hashCode, String_getHashCode, 2102906241) \ |
189 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 49873871) \ | 190 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 49873871) \ |
190 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 397735324) \ | 191 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 397735324) \ |
191 V(_StringBase, [], StringBaseCharAt, 1512210677) \ | 192 V(_StringBase, [], StringBaseCharAt, 1512210677) \ |
192 V(_OneByteString, get:hashCode, OneByteString_getHashCode, 1111837929) \ | 193 V(_OneByteString, get:hashCode, OneByteString_getHashCode, 1111837929) \ |
193 V(_OneByteString, _substringUncheckedNative, \ | 194 V(_OneByteString, _substringUncheckedNative, \ |
194 OneByteString_substringUnchecked, 1527498975) \ | 195 OneByteString_substringUnchecked, 1527498975) \ |
195 V(_OneByteString, _setAt, OneByteStringSetAt, 468605749) \ | 196 V(_OneByteString, _setAt, OneByteStringSetAt, 468605749) \ |
196 V(_OneByteString, _allocate, OneByteString_allocate, 2035417022) \ | 197 V(_OneByteString, _allocate, OneByteString_allocate, 2035417022) \ |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 GRAPH_INTRINSICS_LIST(V) | 315 GRAPH_INTRINSICS_LIST(V) |
315 | 316 |
316 // A list of core function that should always be inlined. | 317 // A list of core function that should always be inlined. |
317 #define INLINE_WHITE_LIST(V) \ | 318 #define INLINE_WHITE_LIST(V) \ |
318 V(Object, ==, ObjectEquals, 1068471689) \ | 319 V(Object, ==, ObjectEquals, 1068471689) \ |
319 V(_List, get:length, ObjectArrayLength, 1181352729) \ | 320 V(_List, get:length, ObjectArrayLength, 1181352729) \ |
320 V(_ImmutableList, get:length, ImmutableArrayLength, 274917727) \ | 321 V(_ImmutableList, get:length, ImmutableArrayLength, 274917727) \ |
321 V(_TypedList, get:length, TypedDataLength, 522565357) \ | 322 V(_TypedList, get:length, TypedDataLength, 522565357) \ |
322 V(_GrowableList, get:length, GrowableArrayLength, 778505107) \ | 323 V(_GrowableList, get:length, GrowableArrayLength, 778505107) \ |
323 V(_StringBase, get:length, StringBaseLength, 784399628) \ | 324 V(_StringBase, get:length, StringBaseLength, 784399628) \ |
| 325 V(_GrowableList, add, GrowableListAdd, 1899133961) \ |
| 326 V(_GrowableList, removeLast, GrowableListRemoveLast, 1274907639) \ |
324 V(ListIterator, moveNext, ListIteratorMoveNext, 210829138) \ | 327 V(ListIterator, moveNext, ListIteratorMoveNext, 210829138) \ |
325 V(_FixedSizeArrayIterator, moveNext, FixedListIteratorMoveNext, 1147271335) \ | 328 V(_FixedSizeArrayIterator, moveNext, FixedListIteratorMoveNext, 1147271335) \ |
326 V(_GrowableList, get:iterator, GrowableArrayIterator, 1812933946) \ | 329 V(_GrowableList, get:iterator, GrowableArrayIterator, 1812933946) \ |
327 V(_GrowableList, forEach, GrowableArrayForEach, 2085943947) \ | 330 V(_GrowableList, forEach, GrowableArrayForEach, 2085943947) \ |
328 V(_List, ., ObjectArrayAllocate, 1595327584) \ | 331 V(_List, ., ObjectArrayAllocate, 1595327584) \ |
329 V(_List, [], ObjectArrayGetIndexed, 795612476) \ | 332 V(_List, [], ObjectArrayGetIndexed, 795612476) \ |
330 V(_List, []=, ObjectArraySetIndexed, 1288827575) \ | 333 V(_List, []=, ObjectArraySetIndexed, 1288827575) \ |
331 V(_List, get:isEmpty, ObjectArrayIsEmpty, 2130247737) \ | 334 V(_List, get:isEmpty, ObjectArrayIsEmpty, 2130247737) \ |
332 V(_List, get:iterator, ObjectArrayIterator, 458612415) \ | 335 V(_List, get:iterator, ObjectArrayIterator, 458612415) \ |
333 V(_List, forEach, ObjectArrayForEach, 592525445) \ | 336 V(_List, forEach, ObjectArrayForEach, 592525445) \ |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 static Kind RecognizeKind(const Function& function); | 434 static Kind RecognizeKind(const Function& function); |
432 static bool AlwaysInline(const Function& function); | 435 static bool AlwaysInline(const Function& function); |
433 static bool PolymorphicTarget(const Function& function); | 436 static bool PolymorphicTarget(const Function& function); |
434 static const char* KindToCString(Kind kind); | 437 static const char* KindToCString(Kind kind); |
435 static void InitializeState(); | 438 static void InitializeState(); |
436 }; | 439 }; |
437 | 440 |
438 } // namespace dart | 441 } // namespace dart |
439 | 442 |
440 #endif // VM_METHOD_RECOGNIZER_H_ | 443 #endif // VM_METHOD_RECOGNIZER_H_ |
OLD | NEW |