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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/ssa/nodes.dart

Issue 11688010: NoSuchMethod on different super accesses/invocations handled. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of ssa; 5 part of ssa;
6 6
7 abstract class HVisitor<R> { 7 abstract class HVisitor<R> {
8 R visitAdd(HAdd node); 8 R visitAdd(HAdd node);
9 R visitBailoutTarget(HBailoutTarget node); 9 R visitBailoutTarget(HBailoutTarget node);
10 R visitBitAnd(HBitAnd node); 10 R visitBitAnd(HBitAnd node);
(...skipping 1410 matching lines...) Expand 10 before | Expand all | Expand 10 after
1421 } 1421 }
1422 1422
1423 HType computeDesiredTypeForNonTargetInput(HInstruction input, 1423 HType computeDesiredTypeForNonTargetInput(HInstruction input,
1424 HTypeMap types, 1424 HTypeMap types,
1425 Compiler compiler) { 1425 Compiler compiler) {
1426 return HType.UNKNOWN; 1426 return HType.UNKNOWN;
1427 } 1427 }
1428 } 1428 }
1429 1429
1430 class HInvokeSuper extends HInvokeStatic { 1430 class HInvokeSuper extends HInvokeStatic {
1431 final bool isSetter; 1431 final bool isSendSet;
1432 HInvokeSuper(inputs, {this.isSetter: false}) : super(inputs); 1432 final bool isPropertyAccess;
1433 HInvokeSuper(inputs, {this.isSendSet: false, this.isPropertyAccess: false})
1434 : super(inputs);
1433 toString() => 'invoke super: ${element.name}'; 1435 toString() => 'invoke super: ${element.name}';
1434 accept(HVisitor visitor) => visitor.visitInvokeSuper(this); 1436 accept(HVisitor visitor) => visitor.visitInvokeSuper(this);
1435 1437
1436 HInstruction get value { 1438 HInstruction get value {
1437 assert(isSetter); 1439 assert(isSendSet);
1438 // Index 0: the element, index 1: 'this'. 1440 // Index 0: the element, index 1: 'this'.
1439 return inputs[2]; 1441 return inputs[2];
1440 } 1442 }
1441 } 1443 }
1442 1444
1443 abstract class HFieldAccess extends HInstruction { 1445 abstract class HFieldAccess extends HInstruction {
1444 final Element element; 1446 final Element element;
1445 1447
1446 HFieldAccess(Element element, List<HInstruction> inputs) 1448 HFieldAccess(Element element, List<HInstruction> inputs)
1447 : this.element = element, 1449 : this.element = element,
(...skipping 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after
2950 HBasicBlock get start => expression.start; 2952 HBasicBlock get start => expression.start;
2951 HBasicBlock get end { 2953 HBasicBlock get end {
2952 // We don't create a switch block if there are no cases. 2954 // We don't create a switch block if there are no cases.
2953 assert(!statements.isEmpty); 2955 assert(!statements.isEmpty);
2954 return statements.last.end; 2956 return statements.last.end;
2955 } 2957 }
2956 2958
2957 bool accept(HStatementInformationVisitor visitor) => 2959 bool accept(HStatementInformationVisitor visitor) =>
2958 visitor.visitSwitchInfo(this); 2960 visitor.visitSwitchInfo(this);
2959 } 2961 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/ssa/codegen.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698