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

Unified Diff: runtime/vm/parser.cc

Issue 11369234: Remove private class helping the parser to construct literal lists and maps. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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
« no previous file with comments | « runtime/lib/map_patch.dart ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
===================================================================
--- runtime/vm/parser.cc (revision 14872)
+++ runtime/vm/parser.cc (working copy)
@@ -8776,15 +8776,13 @@
return new LiteralNode(literal_pos, const_list);
} else {
// Factory call at runtime.
- String& list_literal_factory_class_name = String::Handle(
- Symbols::ListLiteralFactoryClass());
- const Class& list_literal_factory_class =
- Class::Handle(LookupCoreClass(list_literal_factory_class_name));
- ASSERT(!list_literal_factory_class.IsNull());
+ String& list_class_name = String::Handle(Symbols::ListImplementation());
+ const Class& list_class = Class::Handle(LookupCoreClass(list_class_name));
+ ASSERT(!list_class.IsNull());
const String& list_literal_factory_name =
String::Handle(Symbols::ListLiteralFactory());
const Function& list_literal_factory = Function::ZoneHandle(
- list_literal_factory_class.LookupFactory(list_literal_factory_name));
+ list_class.LookupFactory(list_literal_factory_name));
ASSERT(!list_literal_factory.IsNull());
if (!type_arguments.IsNull() &&
!type_arguments.IsInstantiated() &&
@@ -9001,15 +8999,13 @@
}
} else {
// Factory call at runtime.
- String& map_literal_factory_class_name = String::Handle(
- Symbols::MapLiteralFactoryClass());
- const Class& map_literal_factory_class =
- Class::Handle(LookupCoreClass(map_literal_factory_class_name));
- ASSERT(!map_literal_factory_class.IsNull());
+ String& map_class_name = String::Handle(Symbols::MapImplementation());
+ const Class& map_class = Class::Handle(LookupCoreClass(map_class_name));
+ ASSERT(!map_class.IsNull());
const String& map_literal_factory_name =
String::Handle(Symbols::MapLiteralFactory());
const Function& map_literal_factory = Function::ZoneHandle(
- map_literal_factory_class.LookupFactory(map_literal_factory_name));
+ map_class.LookupFactory(map_literal_factory_name));
ASSERT(!map_literal_factory.IsNull());
if (!map_type_arguments.IsNull() &&
!map_type_arguments.IsInstantiated() &&
« no previous file with comments | « runtime/lib/map_patch.dart ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698