Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Side by Side Diff: runtime/vm/method_recognizer.h

Issue 1134623004: - Use conditional code inclusion for the dart_no_snapshot and dart executables using the MACRO DART… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intrinsifier.cc ('k') | runtime/vm/method_recognizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier.cc ('k') | runtime/vm/method_recognizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698