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

Unified Diff: lib/runtime/dart_runtime.js

Issue 1043003002: keep mixin and interface implementation info at runtime (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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 | « lib/runtime/dart/typed_data.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart_runtime.js
diff --git a/lib/runtime/dart_runtime.js b/lib/runtime/dart_runtime.js
index fce2a35f9f39fdf68d3c551c75314e4e2735b10a..45b3b25afe9bdd4252e556b5dfb4ede024858eea 100644
--- a/lib/runtime/dart_runtime.js
+++ b/lib/runtime/dart_runtime.js
@@ -197,6 +197,11 @@ var dart, _js_helper;
}
dart.copyProperties = copyProperties;
+
+ /** The Symbol for storing type arguments on a specialized generic type. */
+ dart.mixins = Symbol('mixins');
+ dart.implements = Symbol('implements')
+
/**
* Returns a new type that mixes members from base and all mixins.
*
@@ -229,6 +234,8 @@ var dart, _js_helper;
for (var i = 0; i < mixins.length; i++) {
copyProperties(Mixin.prototype, mixins[i].prototype);
}
+ // Save mixins for reflection
+ Mixin[dart.mixins] = mixins;
return Mixin;
}
dart.mixin = mixin;
« no previous file with comments | « lib/runtime/dart/typed_data.js ('k') | lib/src/codegen/js_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698