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

Unified Diff: runtime/lib/object_patch.dart

Issue 10918047: First corelib cleanup patch after unification. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove bogus comment. 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
« lib/coreimpl/object.dart ('K') | « runtime/lib/lib_sources.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/object_patch.dart
diff --git a/runtime/lib/object_patch.dart b/runtime/lib/object_patch.dart
index 52f1bce50b7db77b2cd01aca4e3ed103ae311149..ae5d5f587ea36c6e2d135c9375787b7696df9e85 100644
--- a/runtime/lib/object_patch.dart
+++ b/runtime/lib/object_patch.dart
@@ -2,12 +2,15 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-patch class ObjectImplementation {
- /* patch */ static String toStringImpl(Object object)
- native "Object_toString";
+patch class Object {
+ /* patch */ String toString() => _toString(this);
- /* patch */ static void noSuchMethodImpl(Object object,
- String functionName,
- List args)
+ /* patch */ void noSuchMethod(String functionName, List args) {
+ _noSuchMethod(this, functionName, args);
+ }
+
+ static void _noSuchMethod(Object obj, String functionName, List args)
native "Object_noSuchMethod";
+
+ static String _toString(Object obj) native "Object_toString";
}
« lib/coreimpl/object.dart ('K') | « runtime/lib/lib_sources.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698