| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 visitBitAnd(HBitAnd node); | 7 R visitBitAnd(HBitAnd node); |
| 8 R visitBitNot(HBitNot node); | 8 R visitBitNot(HBitNot node); |
| 9 R visitBitOr(HBitOr node); | 9 R visitBitOr(HBitOr node); |
| 10 R visitBitXor(HBitXor node); | 10 R visitBitXor(HBitXor node); |
| (...skipping 1981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1992 HStaticStore(this.element, HInstruction value) : super(<HInstruction>[value]); | 1992 HStaticStore(this.element, HInstruction value) : super(<HInstruction>[value]); |
| 1993 toString() => 'static store ${element.name}'; | 1993 toString() => 'static store ${element.name}'; |
| 1994 accept(HVisitor visitor) => visitor.visitStaticStore(this); | 1994 accept(HVisitor visitor) => visitor.visitStaticStore(this); |
| 1995 | 1995 |
| 1996 int typeCode() => 26; | 1996 int typeCode() => 26; |
| 1997 bool typeEquals(other) => other is HStaticStore; | 1997 bool typeEquals(other) => other is HStaticStore; |
| 1998 bool dataEquals(HStaticStore other) => element == other.element; | 1998 bool dataEquals(HStaticStore other) => element == other.element; |
| 1999 } | 1999 } |
| 2000 | 2000 |
| 2001 class HLiteralList extends HInstruction { | 2001 class HLiteralList extends HInstruction { |
| 2002 HLiteralList(inputs, this.isConst) : super(inputs); | 2002 HLiteralList(inputs) : super(inputs); |
| 2003 toString() => 'literal list'; | 2003 toString() => 'literal list'; |
| 2004 accept(HVisitor visitor) => visitor.visitLiteralList(this); | 2004 accept(HVisitor visitor) => visitor.visitLiteralList(this); |
| 2005 HType computeType() => HType.ARRAY; | 2005 HType computeType() => HType.ARRAY; |
| 2006 bool hasExpectedType() => true; | 2006 bool hasExpectedType() => true; |
| 2007 final bool isConst; // TODO(floitsch): Remove when CTC handles arrays. | |
| 2008 | 2007 |
| 2009 void prepareGvn() { | 2008 void prepareGvn() { |
| 2010 assert(!hasSideEffects()); | 2009 assert(!hasSideEffects()); |
| 2011 } | 2010 } |
| 2012 } | 2011 } |
| 2013 | 2012 |
| 2014 class HIndex extends HInvokeStatic { | 2013 class HIndex extends HInvokeStatic { |
| 2015 HIndex(HStatic target, HInstruction receiver, HInstruction index) | 2014 HIndex(HStatic target, HInstruction receiver, HInstruction index) |
| 2016 : super(Selector.INDEX, <HInstruction>[target, receiver, index]); | 2015 : super(Selector.INDEX, <HInstruction>[target, receiver, index]); |
| 2017 toString() => 'index operator'; | 2016 toString() => 'index operator'; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2089 class HIfBlockInformation { | 2088 class HIfBlockInformation { |
| 2090 final HIf branch; | 2089 final HIf branch; |
| 2091 final SubGraph thenGraph; | 2090 final SubGraph thenGraph; |
| 2092 final SubGraph elseGraph; | 2091 final SubGraph elseGraph; |
| 2093 final HBasicBlock joinBlock; | 2092 final HBasicBlock joinBlock; |
| 2094 HIfBlockInformation(this.branch, | 2093 HIfBlockInformation(this.branch, |
| 2095 this.thenGraph, | 2094 this.thenGraph, |
| 2096 this.elseGraph, | 2095 this.elseGraph, |
| 2097 this.joinBlock); | 2096 this.joinBlock); |
| 2098 } | 2097 } |
| OLD | NEW |