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

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

Issue 761983002: Support for map literals in cps js emitter (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address 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 30 matching lines...) Expand all
41 js.Expression elementAccess(Element element) { 41 js.Expression elementAccess(Element element) {
42 return _namer.elementAccess(element); 42 return _namer.elementAccess(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 {
52 return _backend.mapLiteralConstructor;
53 }
54
55 ConstructorElement get mapLiteralConstructorEmpty {
56 return _backend.mapLiteralConstructorEmpty;
57 }
58
51 FunctionElement get identicalFunction => _compiler.identicalFunction; 59 FunctionElement get identicalFunction => _compiler.identicalFunction;
52 60
53 String invocationName(Selector selector) { 61 String invocationName(Selector selector) {
54 return _namer.invocationName(selector); 62 return _namer.invocationName(selector);
55 } 63 }
56 64
57 bool isIntercepted(Selector selector) { 65 bool isIntercepted(Selector selector) {
58 return _backend.isInterceptedSelector(selector); 66 return _backend.isInterceptedSelector(selector);
59 } 67 }
60 68
61 } 69 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/codegen.dart ('k') | pkg/compiler/lib/src/universe/universe.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698