| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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/intermediate_language.h" | 5 #include "vm/intermediate_language.h" |
| 6 | 6 |
| 7 #include "vm/bigint_operations.h" | 7 #include "vm/bigint_operations.h" |
| 8 #include "vm/bit_vector.h" | 8 #include "vm/bit_vector.h" |
| 9 #include "vm/dart_entry.h" | 9 #include "vm/dart_entry.h" |
| 10 #include "vm/flow_graph_allocator.h" | 10 #include "vm/flow_graph_allocator.h" |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 const String& test_name_symbol = String::Handle(Symbols::New(test_name)); | 371 const String& test_name_symbol = String::Handle(Symbols::New(test_name)); |
| 372 return String::Handle(lib.PrivateName(test_name_symbol)).Equals(name); | 372 return String::Handle(lib.PrivateName(test_name_symbol)).Equals(name); |
| 373 } | 373 } |
| 374 | 374 |
| 375 | 375 |
| 376 static bool IsRecognizedLibrary(const Library& library) { | 376 static bool IsRecognizedLibrary(const Library& library) { |
| 377 // List of libraries where methods can be recognized. | 377 // List of libraries where methods can be recognized. |
| 378 return (library.raw() == Library::CoreLibrary()) | 378 return (library.raw() == Library::CoreLibrary()) |
| 379 || (library.raw() == Library::MathLibrary()) | 379 || (library.raw() == Library::MathLibrary()) |
| 380 || (library.raw() == Library::TypedDataLibrary()) | 380 || (library.raw() == Library::TypedDataLibrary()) |
| 381 || (library.raw() == Library::CollectionDevLibrary()); | 381 || (library.raw() == Library::InternalLibrary()); |
| 382 } | 382 } |
| 383 | 383 |
| 384 | 384 |
| 385 MethodRecognizer::Kind MethodRecognizer::RecognizeKind( | 385 MethodRecognizer::Kind MethodRecognizer::RecognizeKind( |
| 386 const Function& function) { | 386 const Function& function) { |
| 387 if (!function.is_recognized()) { | 387 if (!function.is_recognized()) { |
| 388 return kUnknown; | 388 return kUnknown; |
| 389 } | 389 } |
| 390 | 390 |
| 391 const Class& function_class = Class::Handle(function.Owner()); | 391 const Class& function_class = Class::Handle(function.Owner()); |
| (...skipping 2702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3094 case Token::kTRUNCDIV: return 0; | 3094 case Token::kTRUNCDIV: return 0; |
| 3095 case Token::kMOD: return 1; | 3095 case Token::kMOD: return 1; |
| 3096 default: UNIMPLEMENTED(); return -1; | 3096 default: UNIMPLEMENTED(); return -1; |
| 3097 } | 3097 } |
| 3098 } | 3098 } |
| 3099 | 3099 |
| 3100 | 3100 |
| 3101 #undef __ | 3101 #undef __ |
| 3102 | 3102 |
| 3103 } // namespace dart | 3103 } // namespace dart |
| OLD | NEW |