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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 }; | 126 }; |
127 #undef KIND_TO_STRING | 127 #undef KIND_TO_STRING |
128 | 128 |
129 const char* MethodRecognizer::KindToCString(Kind kind) { | 129 const char* MethodRecognizer::KindToCString(Kind kind) { |
130 if (kind > kUnknown && kind < kNumRecognizedMethods) | 130 if (kind > kUnknown && kind < kNumRecognizedMethods) |
131 return recognized_list_method_name[kind]; | 131 return recognized_list_method_name[kind]; |
132 return "?"; | 132 return "?"; |
133 } | 133 } |
134 | 134 |
135 | 135 |
136 #if defined(DART_NO_SNAPSHOT) | |
137 void MethodRecognizer::InitializeState() { | 136 void MethodRecognizer::InitializeState() { |
138 GrowableArray<Library*> libs(3); | 137 GrowableArray<Library*> libs(3); |
139 libs.Add(&Library::ZoneHandle(Library::CoreLibrary())); | 138 libs.Add(&Library::ZoneHandle(Library::CoreLibrary())); |
140 libs.Add(&Library::ZoneHandle(Library::CollectionLibrary())); | 139 libs.Add(&Library::ZoneHandle(Library::CollectionLibrary())); |
141 libs.Add(&Library::ZoneHandle(Library::MathLibrary())); | 140 libs.Add(&Library::ZoneHandle(Library::MathLibrary())); |
142 libs.Add(&Library::ZoneHandle(Library::TypedDataLibrary())); | 141 libs.Add(&Library::ZoneHandle(Library::TypedDataLibrary())); |
143 libs.Add(&Library::ZoneHandle(Library::InternalLibrary())); | 142 libs.Add(&Library::ZoneHandle(Library::InternalLibrary())); |
144 libs.Add(&Library::ZoneHandle(Library::DeveloperLibrary())); | 143 libs.Add(&Library::ZoneHandle(Library::DeveloperLibrary())); |
145 Function& func = Function::Handle(); | 144 Function& func = Function::Handle(); |
146 | 145 |
(...skipping 29 matching lines...) Expand all Loading... |
176 | 175 |
177 INLINE_WHITE_LIST(SET_IS_ALWAYS_INLINE); | 176 INLINE_WHITE_LIST(SET_IS_ALWAYS_INLINE); |
178 INLINE_BLACK_LIST(SET_IS_NEVER_INLINE); | 177 INLINE_BLACK_LIST(SET_IS_NEVER_INLINE); |
179 POLYMORPHIC_TARGET_LIST(SET_IS_POLYMORPHIC_TARGET); | 178 POLYMORPHIC_TARGET_LIST(SET_IS_POLYMORPHIC_TARGET); |
180 | 179 |
181 #undef SET_RECOGNIZED_KIND | 180 #undef SET_RECOGNIZED_KIND |
182 #undef SET_IS_ALWAYS_INLINE | 181 #undef SET_IS_ALWAYS_INLINE |
183 #undef SET_IS_POLYMORPHIC_TARGET | 182 #undef SET_IS_POLYMORPHIC_TARGET |
184 #undef SET_FUNCTION_BIT | 183 #undef SET_FUNCTION_BIT |
185 } | 184 } |
186 #endif // defined(DART_NO_SNAPSHOT). | 185 |
187 | 186 |
188 } // namespace dart | 187 } // namespace dart |
OLD | NEW |