| 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, 1637905371) \ | 177 V(_Double, get:isNegative, Double_getIsNegative, 1637905371) \ |
| 178 V(_Double, _mulFromInteger, Double_mulFromInteger, 1748815298) \ | 178 V(_Double, _mulFromInteger, Double_mulFromInteger, 1748815298) \ |
| 179 V(_Double, .fromInteger, DoubleFromInteger, 803258435) \ | 179 V(_Double, .fromInteger, DoubleFromInteger, 803258435) \ |
| 180 V(_List, []=, ObjectArraySetIndexed, 1768442583) \ | 180 V(_List, []=, ObjectArraySetIndexed, 1768442583) \ |
| 181 V(_GrowableList, .withData, GrowableArray_Allocate, 536409567) \ | 181 V(_GrowableList, .withData, GrowableArray_Allocate, 536409567) \ |
| 182 V(_GrowableList, [], GrowableArrayGetIndexed, 514434920) \ | 182 V(_GrowableList, [], GrowableArrayGetIndexed, 514434920) \ |
| 183 V(_GrowableList, []=, GrowableArraySetIndexed, 1698264861) \ | 183 V(_GrowableList, []=, GrowableArraySetIndexed, 1698264861) \ |
| 184 V(_GrowableList, _setLength, GrowableArraySetLength, 1832199634) \ | 184 V(_GrowableList, _setLength, GrowableArraySetLength, 1832199634) \ |
| 185 V(_GrowableList, _setData, GrowableArraySetData, 1722254196) \ | 185 V(_GrowableList, _setData, GrowableArraySetData, 1722254196) \ |
| 186 V(_GrowableList, add, GrowableArray_add, 422087403) \ | 186 V(_GrowableList, add, GrowableArray_add, 422087403) \ |
| 187 V(_JSSyntaxRegExp, _ExecuteMatch, JSRegExp_ExecuteMatch, 1654250896) \ |
| 187 V(Object, ==, ObjectEquals, 1955975370) \ | 188 V(Object, ==, ObjectEquals, 1955975370) \ |
| 188 V(_StringBase, get:hashCode, String_getHashCode, 2102936032) \ | 189 V(_StringBase, get:hashCode, String_getHashCode, 2102936032) \ |
| 189 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 769493198) \ | 190 V(_StringBase, get:isEmpty, StringBaseIsEmpty, 769493198) \ |
| 190 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 397735324) \ | 191 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 397735324) \ |
| 191 V(_StringBase, [], StringBaseCharAt, 1107537364) \ | 192 V(_StringBase, [], StringBaseCharAt, 1107537364) \ |
| 192 V(_OneByteString, get:hashCode, OneByteString_getHashCode, 1111867720) \ | 193 V(_OneByteString, get:hashCode, OneByteString_getHashCode, 1111867720) \ |
| 193 V(_OneByteString, _substringUncheckedNative, \ | 194 V(_OneByteString, _substringUncheckedNative, \ |
| 194 OneByteString_substringUnchecked, 1527498975) \ | 195 OneByteString_substringUnchecked, 1527498975) \ |
| 195 V(_OneByteString, _setAt, OneByteStringSetAt, 819138038) \ | 196 V(_OneByteString, _setAt, OneByteStringSetAt, 819138038) \ |
| 196 V(_OneByteString, _allocate, OneByteString_allocate, 227962559) \ | 197 V(_OneByteString, _allocate, OneByteString_allocate, 227962559) \ |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 ALL_INTRINSICS_LIST(V) \ | 314 ALL_INTRINSICS_LIST(V) \ |
| 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, 1955975370) \ | 319 V(Object, ==, ObjectEquals, 1955975370) \ |
| 319 V(_List, get:length, ObjectArrayLength, 1181382520) \ | 320 V(_List, get:length, ObjectArrayLength, 1181382520) \ |
| 320 V(_ImmutableList, get:length, ImmutableArrayLength, 274947518) \ | 321 V(_ImmutableList, get:length, ImmutableArrayLength, 274947518) \ |
| 321 V(_TypedList, get:length, TypedDataLength, 522595148) \ | 322 V(_TypedList, get:length, TypedDataLength, 522595148) \ |
| 322 V(_GrowableList, get:length, GrowableArrayLength, 778534898) \ | 323 V(_GrowableList, get:length, GrowableArrayLength, 778534898) \ |
| 324 V(_GrowableList, add, GrowableListAdd, 422087403) \ |
| 325 V(_GrowableList, removeLast, GrowableListRemoveLast, 1285719639) \ |
| 323 V(_StringBase, get:length, StringBaseLength, 784429419) \ | 326 V(_StringBase, get:length, StringBaseLength, 784429419) \ |
| 324 V(ListIterator, moveNext, ListIteratorMoveNext, 1001265875) \ | 327 V(ListIterator, moveNext, ListIteratorMoveNext, 1001265875) \ |
| 325 V(_FixedSizeArrayIterator, moveNext, FixedListIteratorMoveNext, 890839431) \ | 328 V(_FixedSizeArrayIterator, moveNext, FixedListIteratorMoveNext, 890839431) \ |
| 326 V(_GrowableList, get:iterator, GrowableArrayIterator, 1663047580) \ | 329 V(_GrowableList, get:iterator, GrowableArrayIterator, 1663047580) \ |
| 327 V(_GrowableList, forEach, GrowableArrayForEach, 605873384) \ | 330 V(_GrowableList, forEach, GrowableArrayForEach, 605873384) \ |
| 328 V(_List, ., ObjectArrayAllocate, 335347617) \ | 331 V(_List, ., ObjectArrayAllocate, 335347617) \ |
| 329 V(_List, [], ObjectArrayGetIndexed, 390939163) \ | 332 V(_List, [], ObjectArrayGetIndexed, 390939163) \ |
| 330 V(_List, []=, ObjectArraySetIndexed, 1768442583) \ | 333 V(_List, []=, ObjectArraySetIndexed, 1768442583) \ |
| 331 V(_List, get:isEmpty, ObjectArrayIsEmpty, 702383416) \ | 334 V(_List, get:isEmpty, ObjectArrayIsEmpty, 702383416) \ |
| 332 V(_List, get:iterator, ObjectArrayIterator, 308726049) \ | 335 V(_List, get:iterator, ObjectArrayIterator, 308726049) \ |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 static Kind RecognizeKind(const Function& function); | 437 static Kind RecognizeKind(const Function& function); |
| 435 static bool AlwaysInline(const Function& function); | 438 static bool AlwaysInline(const Function& function); |
| 436 static bool PolymorphicTarget(const Function& function); | 439 static bool PolymorphicTarget(const Function& function); |
| 437 static const char* KindToCString(Kind kind); | 440 static const char* KindToCString(Kind kind); |
| 438 static void InitializeState(); | 441 static void InitializeState(); |
| 439 }; | 442 }; |
| 440 | 443 |
| 441 } // namespace dart | 444 } // namespace dart |
| 442 | 445 |
| 443 #endif // VM_METHOD_RECOGNIZER_H_ | 446 #endif // VM_METHOD_RECOGNIZER_H_ |
| OLD | NEW |