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

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: Change arrow-syntax factory into brace-syntax, due to multiline content. 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 ec48b08054b30bab7fb3d23559610e14a9a0601a..39fd9d199df32e01c65ea443fa8c8828cf823a66 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -1365,14 +1365,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) {
@@ -8971,7 +8963,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));
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