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

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

Issue 10828416: Small changes to get the compilation size of code importing dart:html shorter. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 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 2260 matching lines...) Expand 10 before | Expand all | Expand 10 after
2271 bool typeEquals(other) => other is HStaticStore; 2271 bool typeEquals(other) => other is HStaticStore;
2272 bool dataEquals(HStaticStore other) => element == other.element; 2272 bool dataEquals(HStaticStore other) => element == other.element;
2273 bool isStatement(HTypeMap types) => true; 2273 bool isStatement(HTypeMap types) => true;
2274 } 2274 }
2275 2275
2276 class HLiteralList extends HInstruction { 2276 class HLiteralList extends HInstruction {
2277 HLiteralList(inputs) : super(inputs); 2277 HLiteralList(inputs) : super(inputs);
2278 toString() => 'literal list'; 2278 toString() => 'literal list';
2279 accept(HVisitor visitor) => visitor.visitLiteralList(this); 2279 accept(HVisitor visitor) => visitor.visitLiteralList(this);
2280 2280
2281 HType get guaranteedType() => HType.MUTABLE_ARRAY; 2281 HType get guaranteedType() => HType.EXTENDABLE_ARRAY;
2282 2282
2283 void prepareGvn(HTypeMap types) { 2283 void prepareGvn(HTypeMap types) {
2284 assert(!hasSideEffects(types)); 2284 assert(!hasSideEffects(types));
2285 } 2285 }
2286 } 2286 }
2287 2287
2288 class HIndex extends HInvokeStatic { 2288 class HIndex extends HInvokeStatic {
2289 HIndex(HStatic target, HInstruction receiver, HInstruction index) 2289 HIndex(HStatic target, HInstruction receiver, HInstruction index)
2290 : super(<HInstruction>[target, receiver, index]); 2290 : super(<HInstruction>[target, receiver, index]);
2291 toString() => 'index operator'; 2291 toString() => 'index operator';
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
2751 HBasicBlock get start() => expression.start; 2751 HBasicBlock get start() => expression.start;
2752 HBasicBlock get end() { 2752 HBasicBlock get end() {
2753 // We don't create a switch block if there are no cases. 2753 // We don't create a switch block if there are no cases.
2754 assert(!statements.isEmpty()); 2754 assert(!statements.isEmpty());
2755 return statements.last().end; 2755 return statements.last().end;
2756 } 2756 }
2757 2757
2758 bool accept(HStatementInformationVisitor visitor) => 2758 bool accept(HStatementInformationVisitor visitor) =>
2759 visitor.visitSwitchInfo(this); 2759 visitor.visitSwitchInfo(this);
2760 } 2760 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698