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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 #if defined(DART_NO_SNAPSHOT) |
459 static void InitializeState(); | 459 static void InitializeState(); |
460 #endif // defined(DART_NO_SNAPSHOT). | 460 #endif // defined(DART_NO_SNAPSHOT). |
461 }; | 461 }; |
462 | 462 |
463 | 463 |
| 464 #if defined(DART_NO_SNAPSHOT) |
464 #define CHECK_FINGERPRINT2(f, p0, p1, fp) \ | 465 #define CHECK_FINGERPRINT2(f, p0, p1, fp) \ |
465 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1, fp)) | 466 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1, fp)) |
466 | 467 |
467 #define CHECK_FINGERPRINT3(f, p0, p1, p2, fp) \ | 468 #define CHECK_FINGERPRINT3(f, p0, p1, p2, fp) \ |
468 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1 ", " #p2, fp)) | 469 ASSERT(f.CheckSourceFingerprint(#p0 ", " #p1 ", " #p2, fp)) |
| 470 #endif // defined(DART_NO_SNAPSHOT). |
469 | 471 |
470 | 472 |
471 } // namespace dart | 473 } // namespace dart |
472 | 474 |
473 #endif // VM_METHOD_RECOGNIZER_H_ | 475 #endif // VM_METHOD_RECOGNIZER_H_ |
OLD | NEW |