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

Unified Diff: vm/parser.cc

Issue 10827249: - Register canonical names for internal VM classes and get rid of the method GetSingletonClassName (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vm/object_test.cc ('k') | vm/raw_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/parser.cc
===================================================================
--- vm/parser.cc (revision 10528)
+++ vm/parser.cc (working copy)
@@ -2930,13 +2930,13 @@
if (cls.is_interface()) {
ErrorMsg(classname_pos, "'%s' is already defined as interface",
class_name.ToCString());
- } else if (cls.functions() != Array::Empty()) {
+ } else if (cls.functions() != Object::empty_array()) {
ErrorMsg(classname_pos, "class '%s' is already defined",
class_name.ToCString());
}
}
ASSERT(!cls.IsNull());
- ASSERT(cls.functions() == Array::Empty());
+ ASSERT(cls.functions() == Object::empty_array());
set_current_class(cls);
ParseTypeParameters(cls);
Type& super_type = Type::Handle();
@@ -3208,14 +3208,14 @@
ErrorMsg(interfacename_pos,
"'%s' is already defined as class",
interface_name.ToCString());
- } else if (interface.functions() != Array::Empty()) {
+ } else if (interface.functions() != Object::empty_array()) {
ErrorMsg(interfacename_pos,
"interface '%s' is already defined",
interface_name.ToCString());
}
}
ASSERT(!interface.IsNull());
- ASSERT(interface.functions() == Array::Empty());
+ ASSERT(interface.functions() == Object::empty_array());
set_current_class(interface);
ParseTypeParameters(interface);
« no previous file with comments | « vm/object_test.cc ('k') | vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698