| 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 | 288 |
| 289 // A list of core function that should always be inlined. | 289 // A list of core function that should always be inlined. |
| 290 #define INLINE_WHITE_LIST(V) \ | 290 #define INLINE_WHITE_LIST(V) \ |
| 291 V(Object, ==, ObjectEquals, 1068471689) \ | 291 V(Object, ==, ObjectEquals, 1068471689) \ |
| 292 V(_List, get:length, ObjectArrayLength, 1181352729) \ | 292 V(_List, get:length, ObjectArrayLength, 1181352729) \ |
| 293 V(_ImmutableList, get:length, ImmutableArrayLength, 274917727) \ | 293 V(_ImmutableList, get:length, ImmutableArrayLength, 274917727) \ |
| 294 V(_TypedList, get:length, TypedDataLength, 522565357) \ | 294 V(_TypedList, get:length, TypedDataLength, 522565357) \ |
| 295 V(_GrowableList, get:length, GrowableArrayLength, 778505107) \ | 295 V(_GrowableList, get:length, GrowableArrayLength, 778505107) \ |
| 296 V(_StringBase, get:length, StringBaseLength, 784399628) \ | 296 V(_StringBase, get:length, StringBaseLength, 784399628) \ |
| 297 V(ListIterator, moveNext, ListIteratorMoveNext, 210829138) \ | 297 V(ListIterator, moveNext, ListIteratorMoveNext, 210829138) \ |
| 298 V(_FixedSizeArrayIterator, moveNext, FixedListIteratorMoveNext, 1147271335) \ |
| 298 V(_GrowableList, get:iterator, GrowableArrayIterator, 1812933946) \ | 299 V(_GrowableList, get:iterator, GrowableArrayIterator, 1812933946) \ |
| 299 V(_GrowableList, forEach, GrowableArrayForEach, 2085943947) \ | 300 V(_GrowableList, forEach, GrowableArrayForEach, 2085943947) \ |
| 300 V(_List, ., ObjectArrayAllocate, 1595327584) \ | 301 V(_List, ., ObjectArrayAllocate, 1595327584) \ |
| 301 V(_List, [], ObjectArrayGetIndexed, 795612476) \ | 302 V(_List, [], ObjectArrayGetIndexed, 795612476) \ |
| 302 V(_List, []=, ObjectArraySetIndexed, 1288827575) \ | 303 V(_List, []=, ObjectArraySetIndexed, 1288827575) \ |
| 303 V(_List, get:isEmpty, ObjectArrayIsEmpty, 2130247737) \ | 304 V(_List, get:isEmpty, ObjectArrayIsEmpty, 2130247737) \ |
| 305 V(_List, get:iterator, ObjectArrayIterator, 458612415) \ |
| 306 V(_List, forEach, ObjectArrayForEach, 592525445) \ |
| 307 V(_ImmutableList, get:iterator, ImmutableArrayIterator, 362084797) \ |
| 308 V(_ImmutableList, forEach, ImmutableArrayForEach, 63658053) \ |
| 304 V(_ImmutableList, [], ImmutableArrayGetIndexed, 1990177341) \ | 309 V(_ImmutableList, [], ImmutableArrayGetIndexed, 1990177341) \ |
| 305 V(_GrowableList, [], GrowableArrayGetIndexed, 919108233) \ | 310 V(_GrowableList, [], GrowableArrayGetIndexed, 919108233) \ |
| 306 V(_GrowableList, []=, GrowableArraySetIndexed, 1218649853) \ | 311 V(_GrowableList, []=, GrowableArraySetIndexed, 1218649853) \ |
| 307 V(_Float32Array, [], Float32ArrayGetIndexed, 856653338) \ | 312 V(_Float32Array, [], Float32ArrayGetIndexed, 856653338) \ |
| 308 V(_Float32Array, []=, Float32ArraySetIndexed, 2086166464) \ | 313 V(_Float32Array, []=, Float32ArraySetIndexed, 2086166464) \ |
| 309 V(_Float64Array, [], Float64ArrayGetIndexed, 1779054297) \ | 314 V(_Float64Array, [], Float64ArrayGetIndexed, 1779054297) \ |
| 310 V(_Float64Array, []=, Float64ArraySetIndexed, 243929230) \ | 315 V(_Float64Array, []=, Float64ArraySetIndexed, 243929230) \ |
| 311 V(_Int8Array, [], Int8ArrayGetIndexed, 321230586) \ | 316 V(_Int8Array, [], Int8ArrayGetIndexed, 321230586) \ |
| 312 V(_Int8Array, []=, Int8ArraySetIndexed, 2050598685) \ | 317 V(_Int8Array, []=, Int8ArraySetIndexed, 2050598685) \ |
| 313 V(_Uint8Array, [], Uint8ArrayGetIndexed, 16125140) \ | 318 V(_Uint8Array, [], Uint8ArrayGetIndexed, 16125140) \ |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 static Kind RecognizeKind(const Function& function); | 389 static Kind RecognizeKind(const Function& function); |
| 385 static bool AlwaysInline(const Function& function); | 390 static bool AlwaysInline(const Function& function); |
| 386 static bool PolymorphicTarget(const Function& function); | 391 static bool PolymorphicTarget(const Function& function); |
| 387 static const char* KindToCString(Kind kind); | 392 static const char* KindToCString(Kind kind); |
| 388 static void InitializeState(); | 393 static void InitializeState(); |
| 389 }; | 394 }; |
| 390 | 395 |
| 391 } // namespace dart | 396 } // namespace dart |
| 392 | 397 |
| 393 #endif // VM_METHOD_RECOGNIZER_H_ | 398 #endif // VM_METHOD_RECOGNIZER_H_ |
| OLD | NEW |