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

Unified Diff: runtime/vm/parser.cc

Issue 11365196: Move JSSyntaxRegExp to core as a private member. This removes the last refrences to dart:coreimpl. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix two pending TODO's. Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 9dc93dbc571560696e6bec625f7779c805d23ee3..ec9000e71b6dcae5ff87d044d598bfcb3e8f32d9 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -1367,14 +1367,6 @@ RawFunction* Parser::GetSuperFunction(intptr_t token_pos,
}
-// Lookup class in the corelib implementation which contains various VM
-// helper methods and classes.
-static RawClass* LookupImplClass(const String& class_name) {
- Library& coreimpl = Library::Handle(Library::CoreImplLibrary());
- return coreimpl.LookupClassAllowPrivate(class_name);
-}
-
-
// Lookup class in the core lib which also contains various VM
// helper methods and classes. Allow look up of private classes.
static RawClass* LookupCoreClass(const String& class_name) {
@@ -9021,7 +9013,7 @@ AstNode* Parser::ParseMapLiteral(intptr_t type_pos,
const String& immutable_map_class_name =
String::Handle(Symbols::ImmutableMap());
const Class& immutable_map_class =
- Class::Handle(LookupImplClass(immutable_map_class_name));
+ Class::Handle(LookupCoreClass(immutable_map_class_name));
Ivan Posva 2012/11/13 18:26:28 I do not see the immutable map class moving from c
Anders Johnsen 2012/11/13 18:40:26 Agreed, and this is something that I didn't detect
ASSERT(!immutable_map_class.IsNull());
ArgumentListNode* constr_args = new ArgumentListNode(TokenPos());
constr_args->Add(new LiteralNode(literal_pos, key_value_array));

Powered by Google App Engine
This is Rietveld 408576698