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

Unified Diff: pkg/compiler/lib/src/js_emitter/model.dart

Issue 868483006: dart2js: remove additionalProperties and store it directly as nativeBlob. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 | pkg/compiler/lib/src/js_emitter/native_emitter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_emitter/model.dart
diff --git a/pkg/compiler/lib/src/js_emitter/model.dart b/pkg/compiler/lib/src/js_emitter/model.dart
index 9a7ef02eca17fd0bc8c091b4f2f915de50c24f99..12f143d828835c004414cb68c00afa7dab60465b 100644
--- a/pkg/compiler/lib/src/js_emitter/model.dart
+++ b/pkg/compiler/lib/src/js_emitter/model.dart
@@ -18,11 +18,7 @@ class Program {
/// A map from load id to the list of fragments that need to be loaded.
final Map<String, List<Fragment>> loadMap;
- /// Additional properties that have to be added to classes.
- final Map<Class, Map<String, js.Expression>> additionalProperties;
-
Program(this.fragments,
- this.additionalProperties,
this.loadMap,
{this.outputContainsNativeClasses,
this.outputContainsConstantList}) {
@@ -198,6 +194,9 @@ class Class implements FieldContainer {
/// Whether the class must be evaluated eagerly.
bool isEager = false;
+ /// Data that must be emitted with the class for native interop.
+ String nativeBlob;
herhut 2015/01/26 14:58:22 For me, a BLOB is a Binary Large OBject. How about
floitsch 2015/01/26 18:02:26 My fault. I thought it was just referring to opaqu
floitsch 2015/01/27 12:58:59 Renamed to NativeInfo.
+
Class(this.element, this.name, this.holder,
this.methods,
this.fields,
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/native_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698