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

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

Issue 1134063002: dart2js cps: Introduce GetStatic/SetStatic. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix SExpression parsing/unparsing Created 5 years, 7 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 } 45 }
46 46
47 ConstantExpression getConstantForVariable(VariableElement variable) { 47 ConstantExpression getConstantForVariable(VariableElement variable) {
48 return _backend.constants.getConstantForVariable(variable); 48 return _backend.constants.getConstantForVariable(variable);
49 } 49 }
50 50
51 js.Expression staticFunctionAccess(FunctionElement element) { 51 js.Expression staticFunctionAccess(FunctionElement element) {
52 return _backend.emitter.staticFunctionAccess(element); 52 return _backend.emitter.staticFunctionAccess(element);
53 } 53 }
54 54
55 js.Expression isolateStaticClosureAccess(FunctionElement element) {
56 return _backend.emitter.isolateStaticClosureAccess(element);
57 }
58
55 js.Expression staticFieldAccess(FieldElement element) { 59 js.Expression staticFieldAccess(FieldElement element) {
56 return _backend.emitter.staticFieldAccess(element); 60 return _backend.emitter.staticFieldAccess(element);
57 } 61 }
58 62
59 String safeVariableName(String name) { 63 String safeVariableName(String name) {
60 return _namer.safeVariableName(name); 64 return _namer.safeVariableName(name);
61 } 65 }
62 66
63 ClassElement get listClass => _compiler.listClass; 67 ClassElement get listClass => _compiler.listClass;
64 68
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 bool isDoubleClass(ClassElement cls) => cls == _compiler.doubleClass; 212 bool isDoubleClass(ClassElement cls) => cls == _compiler.doubleClass;
209 213
210 String getTypeTestTag(DartType type) { 214 String getTypeTestTag(DartType type) {
211 return _backend.namer.operatorIsType(type); 215 return _backend.namer.operatorIsType(type);
212 } 216 }
213 217
214 bool operatorEqHandlesNullArgument(FunctionElement element) { 218 bool operatorEqHandlesNullArgument(FunctionElement element) {
215 return _backend.operatorEqHandlesNullArgument(element); 219 return _backend.operatorEqHandlesNullArgument(element);
216 } 220 }
217 } 221 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698