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

Unified Diff: sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart

Issue 12342036: Emit substitution functions on Object. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Emit substitutions on Object. Created 7 years, 10 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 | « no previous file | tests/html/html.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart b/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart
index 8e389bf4f79c788000c9306ceaa7f74fb8970fc8..039e2d454f51a685c6bc4d17cc90f3b2c18dab0c 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/native_emitter.dart
@@ -476,9 +476,13 @@ function(cls, desc) {
Elements.sortedByPosition(emitter.checkedClasses)) {
if (!requiresNativeIsCheck(element)) continue;
if (element.isObject(compiler)) continue;
+ // Add function for the is-test.
String name = backend.namer.operatorIs(element);
addProperty(name,
js.fun([], js.return_(js['false'])));
+ // Add a function for the (trivial) substitution.
+ addProperty(backend.namer.substitutionName(element),
+ js.fun([], js.return_(js['null'])));
}
}
emitIsChecks();
« no previous file with comments | « no previous file | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698