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

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

Issue 734063003: Add missing file from last commit. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | 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
new file mode 100644
index 0000000000000000000000000000000000000000..034c5cba5639db34a30a28fad46782d277cc8dab
--- /dev/null
+++ b/pkg/compiler/lib/src/js_backend/codegen/glue.dart
@@ -0,0 +1,30 @@
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+library code_generator_dependencies;
+
+import '../js_backend.dart';
+import '../../dart2jslib.dart';
+import '../../js_emitter/js_emitter.dart';
+import '../../js/js.dart' as js;
+import '../../constants/values.dart';
+
+/// Encapsulates the dependencies of the function-compiler to the compiler,
+/// backend and emitter.
+// TODO(sigurdm): Should be refactored when we have a better feeling for the
+// interface.
+class Glue {
+ final Compiler _compiler;
+
+ JavaScriptBackend get _backend => _compiler.backend;
+
+ CodeEmitterTask get _emitter => _backend.emitter;
+
+ Glue(this._compiler);
+
+ js.Expression constantReference(ConstantValue value) {
+ return _emitter.constantReference(value);
+ }
+
+}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698