Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 1411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 isSetter; |
| 1432 HInvokeSuper(inputs, {this.isSetter: false}) : super(inputs); | 1432 final bool isGetter; |
|
ngeoffray
2012/12/28 10:24:03
Aren't these fields misnamed? Shouldn't they reall
Johnni Winther
2012/12/28 22:32:31
Done.
| |
| 1433 HInvokeSuper(inputs, {this.isSetter: false, this.isGetter: false}) : super(inp uts); | |
|
ngeoffray
2012/12/28 10:24:03
long line.
Johnni Winther
2012/12/28 22:32:31
Done.
| |
| 1433 toString() => 'invoke super: ${element.name}'; | 1434 toString() => 'invoke super: ${element.name}'; |
| 1434 accept(HVisitor visitor) => visitor.visitInvokeSuper(this); | 1435 accept(HVisitor visitor) => visitor.visitInvokeSuper(this); |
| 1435 | 1436 |
| 1436 HInstruction get value { | 1437 HInstruction get value { |
| 1437 assert(isSetter); | 1438 assert(isSetter); |
| 1438 // Index 0: the element, index 1: 'this'. | 1439 // Index 0: the element, index 1: 'this'. |
| 1439 return inputs[2]; | 1440 return inputs[2]; |
| 1440 } | 1441 } |
| 1441 } | 1442 } |
| 1442 | 1443 |
| (...skipping 1507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2950 HBasicBlock get start => expression.start; | 2951 HBasicBlock get start => expression.start; |
| 2951 HBasicBlock get end { | 2952 HBasicBlock get end { |
| 2952 // We don't create a switch block if there are no cases. | 2953 // We don't create a switch block if there are no cases. |
| 2953 assert(!statements.isEmpty); | 2954 assert(!statements.isEmpty); |
| 2954 return statements.last.end; | 2955 return statements.last.end; |
| 2955 } | 2956 } |
| 2956 | 2957 |
| 2957 bool accept(HStatementInformationVisitor visitor) => | 2958 bool accept(HStatementInformationVisitor visitor) => |
| 2958 visitor.visitSwitchInfo(this); | 2959 visitor.visitSwitchInfo(this); |
| 2959 } | 2960 } |
| OLD | NEW |