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

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: Handle constant list expressions. 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
« no previous file with comments | « dart/frog/leg/ssa/codegen.dart ('k') | dart/tests/co19/co19-leg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0787b22e2fd0ee5cfcb8cc11902a5cf2c7a4c9f1 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);
toString() => 'literal list';
accept(HVisitor visitor) => visitor.visitLiteralList(this);
HType computeType() => HType.ARRAY;
bool hasExpectedType() => true;
+ final bool isConst; // TODO(floitsch): Remove when CTC handles arrays.
void prepareGvn() {
assert(!hasSideEffects());
« no previous file with comments | « dart/frog/leg/ssa/codegen.dart ('k') | dart/tests/co19/co19-leg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698