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

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

Issue 862703002: Implement constructor bodies and initializers in CPS->JS backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase again Created 5 years, 11 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 js_tree_ir_builder; 5 library js_tree_ir_builder;
6 6
7 import '../../tree_ir/tree_ir_builder.dart' show Builder; 7 import '../../tree_ir/tree_ir_builder.dart' show Builder;
8 import 'glue.dart' show Glue; 8 import 'glue.dart' show Glue;
9 import '../../dart2jslib.dart' show Selector, InternalErrorFunction; 9 import '../../dart2jslib.dart' show Selector, InternalErrorFunction;
10 import '../../elements/elements.dart'; 10 import '../../elements/elements.dart';
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 return new SetField(getVariableReference(node.object), 57 return new SetField(getVariableReference(node.object),
58 node.field, 58 node.field,
59 getVariableReference(node.value), 59 getVariableReference(node.value),
60 visit(node.body)); 60 visit(node.body));
61 } 61 }
62 62
63 Expression visitCreateBox(cps_ir.CreateBox node) { 63 Expression visitCreateBox(cps_ir.CreateBox node) {
64 return new CreateBox(); 64 return new CreateBox();
65 } 65 }
66 66
67 Expression visitCreateClosureClass(cps_ir.CreateClosureClass node) { 67 Expression visitCreateInstance(cps_ir.CreateInstance node) {
68 return new CreateClosureClass( 68 return new CreateInstance(
69 node.classElement, 69 node.classElement,
70 node.arguments.map(getVariableReference).toList()); 70 node.arguments.map(getVariableReference).toList());
71 } 71 }
72 } 72 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/glue.dart ('k') | pkg/compiler/lib/src/js_backend/codegen/task.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698