| 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 2321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2332 bool typeEquals(other) => other is HStaticStore; | 2332 bool typeEquals(other) => other is HStaticStore; |
| 2333 bool dataEquals(HStaticStore other) => element == other.element; | 2333 bool dataEquals(HStaticStore other) => element == other.element; |
| 2334 bool isStatement(HTypeMap types) => true; | 2334 bool isStatement(HTypeMap types) => true; |
| 2335 } | 2335 } |
| 2336 | 2336 |
| 2337 class HLiteralList extends HInstruction { | 2337 class HLiteralList extends HInstruction { |
| 2338 HLiteralList(inputs) : super(inputs); | 2338 HLiteralList(inputs) : super(inputs); |
| 2339 toString() => 'literal list'; | 2339 toString() => 'literal list'; |
| 2340 accept(HVisitor visitor) => visitor.visitLiteralList(this); | 2340 accept(HVisitor visitor) => visitor.visitLiteralList(this); |
| 2341 | 2341 |
| 2342 HType get guaranteedType => HType.MUTABLE_ARRAY; | 2342 HType get guaranteedType => HType.EXTENDABLE_ARRAY; |
| 2343 | 2343 |
| 2344 void prepareGvn(HTypeMap types) { | 2344 void prepareGvn(HTypeMap types) { |
| 2345 assert(!hasSideEffects(types)); | 2345 assert(!hasSideEffects(types)); |
| 2346 } | 2346 } |
| 2347 } | 2347 } |
| 2348 | 2348 |
| 2349 class HIndex extends HInvokeStatic { | 2349 class HIndex extends HInvokeStatic { |
| 2350 HIndex(HStatic target, HInstruction receiver, HInstruction index) | 2350 HIndex(HStatic target, HInstruction receiver, HInstruction index) |
| 2351 : super(<HInstruction>[target, receiver, index]); | 2351 : super(<HInstruction>[target, receiver, index]); |
| 2352 toString() => 'index operator'; | 2352 toString() => 'index operator'; |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2812 HBasicBlock get start => expression.start; | 2812 HBasicBlock get start => expression.start; |
| 2813 HBasicBlock get end { | 2813 HBasicBlock get end { |
| 2814 // We don't create a switch block if there are no cases. | 2814 // We don't create a switch block if there are no cases. |
| 2815 assert(!statements.isEmpty()); | 2815 assert(!statements.isEmpty()); |
| 2816 return statements.last().end; | 2816 return statements.last().end; |
| 2817 } | 2817 } |
| 2818 | 2818 |
| 2819 bool accept(HStatementInformationVisitor visitor) => | 2819 bool accept(HStatementInformationVisitor visitor) => |
| 2820 visitor.visitSwitchInfo(this); | 2820 visitor.visitSwitchInfo(this); |
| 2821 } | 2821 } |
| OLD | NEW |