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

Side by Side Diff: runtime/vm/intermediate_language.cc

Issue 133273011: Revert "Rename internal library dart:_collection-dev to dart:_internal." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: reapply after revert. Created 6 years, 11 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/intermediate_language.h ('k') | runtime/vm/isolate_test.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) 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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.h ('k') | runtime/vm/isolate_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698