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 #include "vm/method_recognizer.h" | 5 #include "vm/method_recognizer.h" |
6 | 6 |
7 #include "vm/object.h" | 7 #include "vm/object.h" |
8 #include "vm/symbols.h" | 8 #include "vm/symbols.h" |
9 | 9 |
10 namespace dart { | 10 namespace dart { |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 | 22 |
23 bool MethodRecognizer::PolymorphicTarget(const Function& function) { | 23 bool MethodRecognizer::PolymorphicTarget(const Function& function) { |
24 return function.is_polymorphic_target(); | 24 return function.is_polymorphic_target(); |
25 } | 25 } |
26 | 26 |
27 | 27 |
28 #define KIND_TO_STRING(class_name, function_name, enum_name, fp) \ | 28 #define KIND_TO_STRING(class_name, function_name, enum_name, fp) \ |
29 #enum_name, | 29 #enum_name, |
30 static const char* recognized_list_method_name[] = { | 30 static const char* recognized_list_method_name[] = { |
31 RECOGNIZED_LIST(KIND_TO_STRING) | 31 "Unknown", |
| 32 RECOGNIZED_LIST(KIND_TO_STRING) |
32 }; | 33 }; |
33 #undef KIND_TO_STRING | 34 #undef KIND_TO_STRING |
34 | 35 |
35 const char* MethodRecognizer::KindToCString(Kind kind) { | 36 const char* MethodRecognizer::KindToCString(Kind kind) { |
36 if (kind > kUnknown && kind < kNumRecognizedMethods) | 37 if (kind > kUnknown && kind < kNumRecognizedMethods) |
37 return recognized_list_method_name[kind]; | 38 return recognized_list_method_name[kind]; |
38 return "?"; | 39 return "?"; |
39 } | 40 } |
40 | 41 |
41 | 42 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 POLYMORPHIC_TARGET_LIST(SET_IS_POLYMORPHIC_TARGET); | 86 POLYMORPHIC_TARGET_LIST(SET_IS_POLYMORPHIC_TARGET); |
86 | 87 |
87 #undef SET_RECOGNIZED_KIND | 88 #undef SET_RECOGNIZED_KIND |
88 #undef SET_IS_ALWAYS_INLINE | 89 #undef SET_IS_ALWAYS_INLINE |
89 #undef SET_IS_POLYMORPHIC_TARGET | 90 #undef SET_IS_POLYMORPHIC_TARGET |
90 #undef SET_FUNCTION_BIT | 91 #undef SET_FUNCTION_BIT |
91 } | 92 } |
92 #endif // defined(DART_NO_SNAPSHOT). | 93 #endif // defined(DART_NO_SNAPSHOT). |
93 | 94 |
94 } // namespace dart | 95 } // namespace dart |
OLD | NEW |