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

Unified Diff: runtime/lib/object_patch.dart

Issue 10979058: - Implement first class types in the VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
Index: runtime/lib/object_patch.dart
===================================================================
--- runtime/lib/object_patch.dart (revision 12980)
+++ runtime/lib/object_patch.dart (working copy)
@@ -19,17 +19,12 @@
return result;
}
- /* patch */ String toString() => _toString(this);
+ /* patch */ String toString() native "Object_toString";
+ // A statically dispatched version of Object.toString.
+ static String _toString(obj) native "Object_toString";
- /* patch */ Dynamic noSuchMethod(String functionName, List args) {
- _noSuchMethod(this, functionName, args);
- }
-
- // Not yet supported.
- /* patch */ Type get runtimeType => null;
-
- static void _noSuchMethod(Object obj, String functionName, List args)
+ /* patch */ Dynamic noSuchMethod(String functionName, List args)
native "Object_noSuchMethod";
- static String _toString(Object obj) native "Object_toString";
+ /* patch */ Type get runtimeType native "Object_runtimeType";
}
« runtime/lib/object.cc ('K') | « runtime/lib/object.cc ('k') | runtime/lib/type_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698