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

Unified Diff: pkg/compiler/lib/src/js_backend/codegen/glue.dart

Issue 1411763002: dart2js cps: Ensure parameter default values are emitted. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Remove empty section from status file Created 5 years, 2 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 | « pkg/compiler/lib/src/js_backend/codegen/codegen.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_backend/codegen/glue.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/glue.dart b/pkg/compiler/lib/src/js_backend/codegen/glue.dart
index e6f5909ab90fd8a68643800d7292a4e50f0e61c2..ac91652ee8b8bd781fa244396663fa638b4c42a0 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/glue.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/glue.dart
@@ -65,10 +65,6 @@ class Glue {
return classWorld.isUsedAsMixin(classElement);
}
- ConstantValue getConstantValueForVariable(VariableElement variable) {
- return _backend.constants.getConstantValueForVariable(variable);
- }
-
js.Expression staticFunctionAccess(FunctionElement element) {
return _backend.emitter.staticFunctionAccess(element);
}
@@ -291,4 +287,8 @@ class Glue {
if (nativeBehavior == null) return;
_enqueuer.nativeEnqueuer.registerNativeBehavior(nativeBehavior, node);
}
+
+ ConstantValue getDefaultParameterValue(ParameterElement elem) {
+ return _backend.constants.getConstantValueForVariable(elem);
+ }
}
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/codegen.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698