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

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

Issue 25675002: Generative constructor factories for native objects (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
OLDNEW
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 part of ssa; 5 part of ssa;
6 6
7 abstract class HVisitor<R> { 7 abstract class HVisitor<R> {
8 R visitAdd(HAdd node); 8 R visitAdd(HAdd node);
9 R visitBailoutTarget(HBailoutTarget node); 9 R visitBailoutTarget(HBailoutTarget node);
10 R visitBitAnd(HBitAnd node); 10 R visitBitAnd(HBitAnd node);
(...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after
1447 accept(HVisitor visitor) => visitor.visitInvokeSuper(this); 1447 accept(HVisitor visitor) => visitor.visitInvokeSuper(this);
1448 1448
1449 HInstruction get value { 1449 HInstruction get value {
1450 assert(isSetter); 1450 assert(isSetter);
1451 // The 'inputs' are [receiver, value] or [interceptor, receiver, value]. 1451 // The 'inputs' are [receiver, value] or [interceptor, receiver, value].
1452 return inputs.last; 1452 return inputs.last;
1453 } 1453 }
1454 } 1454 }
1455 1455
1456 class HInvokeConstructorBody extends HInvokeStatic { 1456 class HInvokeConstructorBody extends HInvokeStatic {
1457 // The 'inputs' are [reciever, arg1, ..., argN] or
kasperl 2013/10/04 11:08:42 receiver
1458 // [interceptor, reciever, arg1, ... argN].
1457 HInvokeConstructorBody(element, inputs) 1459 HInvokeConstructorBody(element, inputs)
1458 : super(element, inputs, HType.UNKNOWN); 1460 : super(element, inputs, HType.UNKNOWN);
1459 1461
1460 String toString() => 'invoke constructor body: ${element.name}'; 1462 String toString() => 'invoke constructor body: ${element.name}';
1461 accept(HVisitor visitor) => visitor.visitInvokeConstructorBody(this); 1463 accept(HVisitor visitor) => visitor.visitInvokeConstructorBody(this);
1462 } 1464 }
1463 1465
1464 abstract class HFieldAccess extends HInstruction { 1466 abstract class HFieldAccess extends HInstruction {
1465 final Element element; 1467 final Element element;
1466 1468
(...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after
2780 HBasicBlock get start => expression.start; 2782 HBasicBlock get start => expression.start;
2781 HBasicBlock get end { 2783 HBasicBlock get end {
2782 // We don't create a switch block if there are no cases. 2784 // We don't create a switch block if there are no cases.
2783 assert(!statements.isEmpty); 2785 assert(!statements.isEmpty);
2784 return statements.last.end; 2786 return statements.last.end;
2785 } 2787 }
2786 2788
2787 bool accept(HStatementInformationVisitor visitor) => 2789 bool accept(HStatementInformationVisitor visitor) =>
2788 visitor.visitSwitchInfo(this); 2790 visitor.visitSwitchInfo(this);
2789 } 2791 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698