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