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

Unified Diff: dart/frog/leg/ssa/nodes.dart

Issue 9453021: Start supporting fixed length and immutable lists. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update co19-leg.status Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: dart/frog/leg/ssa/nodes.dart
diff --git a/dart/frog/leg/ssa/nodes.dart b/dart/frog/leg/ssa/nodes.dart
index 48e66414f9261cb1f8545a5c7c2b9f08f9a48325..a0cbf6a41221ba82ac0733b2e5753cebbd4505cd 100644
--- a/dart/frog/leg/ssa/nodes.dart
+++ b/dart/frog/leg/ssa/nodes.dart
@@ -2120,11 +2120,12 @@ class HStaticStore extends HInstruction {
}
class HLiteralList extends HInstruction {
- HLiteralList(inputs) : super(inputs);
+ HLiteralList(inputs, this.isConst) : super(inputs);
ngeoffray 2012/02/24 13:24:33 Please add a TODO(floitsch): remove 'isConst' once
ahe 2012/02/27 11:51:12 Done.
toString() => 'literal list';
accept(HVisitor visitor) => visitor.visitLiteralList(this);
HType computeType() => HType.ARRAY;
bool hasExpectedType() => true;
+ final bool isConst;
void prepareGvn() {
assert(!hasSideEffects());

Powered by Google App Engine
This is Rietveld 408576698