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

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

Issue 779593002: Move elementAccess() from namer to emitter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments. Created 6 years 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 20 matching lines...) Expand all
31 } 31 }
32 32
33 reportInternalError(String message) { 33 reportInternalError(String message) {
34 _compiler.internalError(_compiler.currentElement, message); 34 _compiler.internalError(_compiler.currentElement, message);
35 } 35 }
36 36
37 ConstantExpression getConstantForVariable(VariableElement variable) { 37 ConstantExpression getConstantForVariable(VariableElement variable) {
38 return _backend.constants.getConstantForVariable(variable); 38 return _backend.constants.getConstantForVariable(variable);
39 } 39 }
40 40
41 js.Expression elementAccess(Element element) { 41 js.Expression staticFunctionAccess(Element element) {
42 return _namer.elementAccess(element); 42 return _backend.emitter.staticFunctionAccess(element);
43 } 43 }
44 44
45 String safeVariableName(String name) { 45 String safeVariableName(String name) {
46 return _namer.safeVariableName(name); 46 return _namer.safeVariableName(name);
47 } 47 }
48 48
49 ClassElement get listClass => _compiler.listClass; 49 ClassElement get listClass => _compiler.listClass;
50 50
51 ConstructorElement get mapLiteralConstructor { 51 ConstructorElement get mapLiteralConstructor {
52 return _backend.mapLiteralConstructor; 52 return _backend.mapLiteralConstructor;
53 } 53 }
54 54
55 ConstructorElement get mapLiteralConstructorEmpty { 55 ConstructorElement get mapLiteralConstructorEmpty {
56 return _backend.mapLiteralConstructorEmpty; 56 return _backend.mapLiteralConstructorEmpty;
57 } 57 }
58 58
59 FunctionElement get identicalFunction => _compiler.identicalFunction; 59 FunctionElement get identicalFunction => _compiler.identicalFunction;
60 60
61 String invocationName(Selector selector) { 61 String invocationName(Selector selector) {
62 return _namer.invocationName(selector); 62 return _namer.invocationName(selector);
63 } 63 }
64 64
65 bool isIntercepted(Selector selector) { 65 bool isIntercepted(Selector selector) {
66 return _backend.isInterceptedSelector(selector); 66 return _backend.isInterceptedSelector(selector);
67 } 67 }
68 68
69 } 69 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/codegen.dart ('k') | pkg/compiler/lib/src/js_backend/constant_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698