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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 #define DEFINE_ENUM_LIST(class_name, function_name, enum_name, fp) k##enum_name, | 448 #define DEFINE_ENUM_LIST(class_name, function_name, enum_name, fp) k##enum_name, |
449 RECOGNIZED_LIST(DEFINE_ENUM_LIST) | 449 RECOGNIZED_LIST(DEFINE_ENUM_LIST) |
450 #undef DEFINE_ENUM_LIST | 450 #undef DEFINE_ENUM_LIST |
451 kNumRecognizedMethods | 451 kNumRecognizedMethods |
452 }; | 452 }; |
453 | 453 |
454 static Kind RecognizeKind(const Function& function); | 454 static Kind RecognizeKind(const Function& function); |
455 static bool AlwaysInline(const Function& function); | 455 static bool AlwaysInline(const Function& function); |
456 static bool PolymorphicTarget(const Function& function); | 456 static bool PolymorphicTarget(const Function& function); |
457 static const char* KindToCString(Kind kind); | 457 static const char* KindToCString(Kind kind); |
| 458 #if defined(DART_NO_SNAPSHOT) |
458 static void InitializeState(); | 459 static void InitializeState(); |
| 460 #endif // defined(DART_NO_SNAPSHOT). |
459 }; | 461 }; |
460 | 462 |
461 | 463 |
462 #define CHECK_FINGERPRINT2(f, p0, p1, fp) \ | 464 #define CHECK_FINGERPRINT2(f, p0, p1, fp) \ |
463 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1, fp)) | 465 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1, fp)) |
464 | 466 |
465 #define CHECK_FINGERPRINT3(f, p0, p1, p2, fp) \ | 467 #define CHECK_FINGERPRINT3(f, p0, p1, p2, fp) \ |
466 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1 ", " #p2, fp)) | 468 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1 ", " #p2, fp)) |
467 | 469 |
468 | 470 |
469 } // namespace dart | 471 } // namespace dart |
470 | 472 |
471 #endif // VM_METHOD_RECOGNIZER_H_ | 473 #endif // VM_METHOD_RECOGNIZER_H_ |
OLD | NEW |