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

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

Issue 870353004: cps-ir: Implement string concatenation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use reduce. Created 5 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library code_generator_dependencies; 5 library code_generator_dependencies;
6 6
7 import '../js_backend.dart'; 7 import '../js_backend.dart';
8 import '../../dart2jslib.dart'; 8 import '../../dart2jslib.dart';
9 import '../../js_emitter/js_emitter.dart'; 9 import '../../js_emitter/js_emitter.dart';
10 import '../../js/js.dart' as js; 10 import '../../js/js.dart' as js;
(...skipping 12 matching lines...) Expand all
23 23
24 CodeEmitterTask get _emitter => _backend.emitter; 24 CodeEmitterTask get _emitter => _backend.emitter;
25 Namer get _namer => _backend.namer; 25 Namer get _namer => _backend.namer;
26 26
27 Glue(this._compiler); 27 Glue(this._compiler);
28 28
29 js.Expression constantReference(ConstantValue value) { 29 js.Expression constantReference(ConstantValue value) {
30 return _emitter.constantReference(value); 30 return _emitter.constantReference(value);
31 } 31 }
32 32
33 Element getStringConversion() {
34 return _backend.getStringInterpolationHelper();
35 }
36
33 reportInternalError(String message) { 37 reportInternalError(String message) {
34 _compiler.internalError(_compiler.currentElement, message); 38 _compiler.internalError(_compiler.currentElement, message);
35 } 39 }
36 40
37 ConstantExpression getConstantForVariable(VariableElement variable) { 41 ConstantExpression getConstantForVariable(VariableElement variable) {
38 return _backend.constants.getConstantForVariable(variable); 42 return _backend.constants.getConstantForVariable(variable);
39 } 43 }
40 44
41 js.Expression staticFunctionAccess(Element element) { 45 js.Expression staticFunctionAccess(Element element) {
42 return _backend.emitter.staticFunctionAccess(element); 46 return _backend.emitter.staticFunctionAccess(element);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 return _backend.namer.getInterceptorName( 111 return _backend.namer.getInterceptorName(
108 getInterceptorMethod, 112 getInterceptorMethod,
109 interceptedClasses); 113 interceptedClasses);
110 } 114 }
111 115
112 js.Expression getInterceptorLibrary() { 116 js.Expression getInterceptorLibrary() {
113 return new js.VariableUse( 117 return new js.VariableUse(
114 _backend.namer.globalObjectFor(_backend.interceptorsLibrary)); 118 _backend.namer.globalObjectFor(_backend.interceptorsLibrary));
115 } 119 }
116 } 120 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/codegen.dart ('k') | pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698