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

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

Issue 9969039: Some cleanups. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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
« no previous file with comments | « lib/compiler/implementation/ssa/codegen.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/ssa/codegen.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698