| 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 interface HVisitor<R> { | 5 interface HVisitor<R> { |
| 6 R visitAdd(HAdd node); | 6 R visitAdd(HAdd node); |
| 7 R visitBailoutTarget(HBailoutTarget node); | 7 R visitBailoutTarget(HBailoutTarget node); |
| 8 R visitBitAnd(HBitAnd node); | 8 R visitBitAnd(HBitAnd node); |
| 9 R visitBitNot(HBitNot node); | 9 R visitBitNot(HBitNot node); |
| 10 R visitBitOr(HBitOr node); | 10 R visitBitOr(HBitOr node); |
| (...skipping 2260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2271 bool typeEquals(other) => other is HStaticStore; | 2271 bool typeEquals(other) => other is HStaticStore; |
| 2272 bool dataEquals(HStaticStore other) => element == other.element; | 2272 bool dataEquals(HStaticStore other) => element == other.element; |
| 2273 bool isStatement(HTypeMap types) => true; | 2273 bool isStatement(HTypeMap types) => true; |
| 2274 } | 2274 } |
| 2275 | 2275 |
| 2276 class HLiteralList extends HInstruction { | 2276 class HLiteralList extends HInstruction { |
| 2277 HLiteralList(inputs) : super(inputs); | 2277 HLiteralList(inputs) : super(inputs); |
| 2278 toString() => 'literal list'; | 2278 toString() => 'literal list'; |
| 2279 accept(HVisitor visitor) => visitor.visitLiteralList(this); | 2279 accept(HVisitor visitor) => visitor.visitLiteralList(this); |
| 2280 | 2280 |
| 2281 HType get guaranteedType() => HType.MUTABLE_ARRAY; | 2281 HType get guaranteedType() => HType.EXTENDABLE_ARRAY; |
| 2282 | 2282 |
| 2283 void prepareGvn(HTypeMap types) { | 2283 void prepareGvn(HTypeMap types) { |
| 2284 assert(!hasSideEffects(types)); | 2284 assert(!hasSideEffects(types)); |
| 2285 } | 2285 } |
| 2286 } | 2286 } |
| 2287 | 2287 |
| 2288 class HIndex extends HInvokeStatic { | 2288 class HIndex extends HInvokeStatic { |
| 2289 HIndex(HStatic target, HInstruction receiver, HInstruction index) | 2289 HIndex(HStatic target, HInstruction receiver, HInstruction index) |
| 2290 : super(<HInstruction>[target, receiver, index]); | 2290 : super(<HInstruction>[target, receiver, index]); |
| 2291 toString() => 'index operator'; | 2291 toString() => 'index operator'; |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2751 HBasicBlock get start() => expression.start; | 2751 HBasicBlock get start() => expression.start; |
| 2752 HBasicBlock get end() { | 2752 HBasicBlock get end() { |
| 2753 // We don't create a switch block if there are no cases. | 2753 // We don't create a switch block if there are no cases. |
| 2754 assert(!statements.isEmpty()); | 2754 assert(!statements.isEmpty()); |
| 2755 return statements.last().end; | 2755 return statements.last().end; |
| 2756 } | 2756 } |
| 2757 | 2757 |
| 2758 bool accept(HStatementInformationVisitor visitor) => | 2758 bool accept(HStatementInformationVisitor visitor) => |
| 2759 visitor.visitSwitchInfo(this); | 2759 visitor.visitSwitchInfo(this); |
| 2760 } | 2760 } |
| OLD | NEW |