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

Side by Side Diff: frog/leg/ssa/nodes.dart

Issue 8888010: First instantiations of objects. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added comment. Created 9 years 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 | « frog/leg/ssa/builder.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 visitBasicBlock(HBasicBlock node); 7 R visitBasicBlock(HBasicBlock 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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 } 860 }
861 861
862 class HForeign extends HInstruction { 862 class HForeign extends HInstruction {
863 final SourceString code; 863 final SourceString code;
864 HForeign(this.code, List<HInstruction> inputs) : super(inputs); 864 HForeign(this.code, List<HInstruction> inputs) : super(inputs);
865 accept(HVisitor visitor) => visitor.visitForeign(this); 865 accept(HVisitor visitor) => visitor.visitForeign(this);
866 } 866 }
867 867
868 class HForeignNew extends HForeign { 868 class HForeignNew extends HForeign {
869 ClassElement element; 869 ClassElement element;
870 HForeignNew(this.element, List<HInstruction> inputs) : super("new", inputs); 870 HForeignNew(this.element, List<HInstruction> inputs)
871 : super(const SourceString("new"), inputs);
871 accept(HVisitor visitor) => visitor.visitForeignNew(this); 872 accept(HVisitor visitor) => visitor.visitForeignNew(this);
872 } 873 }
873 874
874 class HInvokeBinary extends HInvokeStatic { 875 class HInvokeBinary extends HInvokeStatic {
875 bool builtin = false; 876 bool builtin = false;
876 HInvokeBinary(HStatic target, HInstruction left, HInstruction right) 877 HInvokeBinary(HStatic target, HInstruction left, HInstruction right)
877 : super(<HInstruction>[target, left, right]); 878 : super(<HInstruction>[target, left, right]);
878 879
879 HInstruction fold() { 880 HInstruction fold() {
880 if (left.isLiteralNumber() && right.isLiteralNumber()) { 881 if (left.isLiteralNumber() && right.isLiteralNumber()) {
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
1482 1483
1483 class HLocal extends HNonSsaInstruction { 1484 class HLocal extends HNonSsaInstruction {
1484 Element element; 1485 Element element;
1485 HInstruction declaredBy; 1486 HInstruction declaredBy;
1486 HLocal(Element this.element) : super([]) { 1487 HLocal(Element this.element) : super([]) {
1487 declaredBy = this; 1488 declaredBy = this;
1488 } 1489 }
1489 toString() => 'local'; 1490 toString() => 'local';
1490 accept(HVisitor visitor) => visitor.visitLocal(this); 1491 accept(HVisitor visitor) => visitor.visitLocal(this);
1491 } 1492 }
OLDNEW
« no previous file with comments | « frog/leg/ssa/builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698