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

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

Issue 787603003: Generative constructors in the new dart backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments, set element for constructors in frontend_ast_to_backend_ast, adjust status-file 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; 5 library code_generator;
6 6
7 import 'glue.dart'; 7 import 'glue.dart';
8 8
9 import '../../tree_ir/tree_ir_nodes.dart' as tree_ir; 9 import '../../tree_ir/tree_ir_nodes.dart' as tree_ir;
10 import '../../js/js.dart' as js; 10 import '../../js/js.dart' as js;
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 void visitWhileTrue(tree_ir.WhileTrue node) { 409 void visitWhileTrue(tree_ir.WhileTrue node) {
410 accumulator.add( 410 accumulator.add(
411 buildWhile(new js.LiteralBool(true), node.body, node.label, node)); 411 buildWhile(new js.LiteralBool(true), node.body, node.label, node));
412 } 412 }
413 413
414 @override 414 @override
415 void visitReturn(tree_ir.Return node) { 415 void visitReturn(tree_ir.Return node) {
416 accumulator.add(new js.Return(visitExpression(node.value))); 416 accumulator.add(new js.Return(visitExpression(node.value)));
417 } 417 }
418 418
419 @override
420 js.Expression visitFieldInitializer(tree_ir.FieldInitializer node) {
421 return giveup(node);
422 // TODO: implement FieldInitializer
423 }
424
425 @override
426 js.Expression visitSuperInitializer(tree_ir.SuperInitializer node) {
427 return giveup(node);
428 // TODO: implement SuperInitializer
429 }
430
419 } 431 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698