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

Unified Diff: pkg/compiler/lib/src/js_backend/backend.dart

Issue 1153243003: dart2js: Use frequency of occurence to sort metadata indices. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sra comments Created 5 years, 6 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: pkg/compiler/lib/src/js_backend/backend.dart
diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
index ce403ad44d6edb0b5f439f11c65f0e5d20c06de4..fa48ca0cc4bb8e1ab3ccd96583ef5af7151e8d2c 100644
--- a/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/pkg/compiler/lib/src/js_backend/backend.dart
@@ -212,6 +212,12 @@ class FunctionInlineCache {
}
}
+class SyntheticConstantKind {
+ static const String DUMMY_RECEIVER = "DUMMY_INTERCEPTOR";
sra1 2015/06/10 19:29:59 Should this be an enum?
herhut 2015/06/11 08:03:55 Done. Now that we have them, why not use them.
+ static const String EMPTY_VALUE = "EMPTY_VALUE";
+ static const String TYPEVARIABLE_REFERENCE = "TYPEVARIABLE_REFERENCE";
+}
+
class JavaScriptBackend extends Backend {
static final Uri DART_JS_HELPER = new Uri(scheme: 'dart', path: '_js_helper');
static final Uri DART_INTERCEPTORS =
@@ -1420,6 +1426,7 @@ class JavaScriptBackend extends Backend {
compiler.enqueuer.codegen.registerStaticUse(getCyclicThrowHelper());
}
}
+
generatedCode[element] = functionCompiler.compile(work);
return const WorldImpact();
}

Powered by Google App Engine
This is Rietveld 408576698