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

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

Issue 742023002: Handle named and optional arguments in cps-ir. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix syntax Created 6 years, 1 month 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/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 26d5a75df2a7b2759b435bc2b22e79d9d7efb644..83370ee5b1b333b5068f15ee0b93d3a8184e6680 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/glue.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/glue.dart
@@ -10,6 +10,7 @@ import '../../js_emitter/js_emitter.dart';
import '../../js/js.dart' as js;
import '../../constants/values.dart';
import '../../elements/elements.dart';
+import '../../constants/expressions.dart';
/// Encapsulates the dependencies of the function-compiler to the compiler,
/// backend and emitter.
@@ -33,6 +34,10 @@ class Glue {
_compiler.internalError(_compiler.currentElement, message);
}
+ ConstantExpression getConstantForVariable(VariableElement variable) {
+ return _backend.constants.getConstantForVariable(variable);
+ }
+
js.Expression elementAccess(Element element) {
return _namer.elementAccess(element);
}
@@ -42,4 +47,6 @@ class Glue {
}
ClassElement get listClass => _compiler.listClass;
+ FunctionElement get identicalFunction => _compiler.identicalFunction;
+
}

Powered by Google App Engine
This is Rietveld 408576698