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

Side by Side Diff: pkg/compiler/lib/src/inferrer/inferrer_visitor.dart

Issue 1108783003: Refactor SsaBuilder.visitSuperSend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 inferrer_visitor; 5 library inferrer_visitor;
6 6
7 import '../constants/constant_system.dart'; 7 import '../constants/constant_system.dart';
8 import '../constants/expressions.dart'; 8 import '../constants/expressions.dart';
9 import '../dart2jslib.dart' hide Selector, TypedSelector; 9 import '../dart2jslib.dart' hide Selector, TypedSelector;
10 import '../dart_types.dart'; 10 import '../dart_types.dart';
(...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after
701 Node node = analyzedElement.node; 701 Node node = analyzedElement.node;
702 FieldInitializationScope<T> fieldScope = 702 FieldInitializationScope<T> fieldScope =
703 analyzedElement.isGenerativeConstructor 703 analyzedElement.isGenerativeConstructor
704 ? new FieldInitializationScope<T>(types) 704 ? new FieldInitializationScope<T>(types)
705 : null; 705 : null;
706 locals = new LocalsHandler<T>(inferrer, types, compiler, node, fieldScope); 706 locals = new LocalsHandler<T>(inferrer, types, compiler, node, fieldScope);
707 } 707 }
708 708
709 T handleSendSet(SendSet node); 709 T handleSendSet(SendSet node);
710 710
711 T visitSuperSend(Send node);
712
713 T visitStaticSend(Send node); 711 T visitStaticSend(Send node);
714 712
715 T visitGetterSend(Send node); 713 T visitGetterSend(Send node);
716 714
717 T visitDynamicSend(Send node); 715 T visitDynamicSend(Send node);
718 716
719 T visitAsyncForIn(AsyncForIn node); 717 T visitAsyncForIn(AsyncForIn node);
720 718
721 T visitSyncForIn(SyncForIn node); 719 T visitSyncForIn(SyncForIn node);
722 720
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after
1403 return type; 1401 return type;
1404 } 1402 }
1405 1403
1406 T visitCascade(Cascade node) { 1404 T visitCascade(Cascade node) {
1407 // Ignore the result of the cascade send and return the type of the cascade 1405 // Ignore the result of the cascade send and return the type of the cascade
1408 // receiver. 1406 // receiver.
1409 visit(node.expression); 1407 visit(node.expression);
1410 return cascadeReceiverStack.removeLast(); 1408 return cascadeReceiverStack.removeLast();
1411 } 1409 }
1412 } 1410 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/cps_ir_builder_task.dart ('k') | pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698