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

Unified Diff: lib/compiler/implementation/ssa/codegen.dart

Issue 9969039: Some cleanups. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 | « lib/compiler/implementation/ssa/builder.dart ('k') | lib/compiler/implementation/ssa/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/codegen.dart
diff --git a/lib/compiler/implementation/ssa/codegen.dart b/lib/compiler/implementation/ssa/codegen.dart
index 8784c2b9ffda835e34308f2dc83adf128a451fe9..ca7c21e368a18446428099cee77066d16fd7f76d 100644
--- a/lib/compiler/implementation/ssa/codegen.dart
+++ b/lib/compiler/implementation/ssa/codegen.dart
@@ -1262,20 +1262,7 @@ class SsaCodeGenerator implements HVisitor {
}
void visitLiteralList(HLiteralList node) {
- if (node.isConst) {
- // TODO(floitsch): Remove this when CTC handles arrays.
- SourceString name = new SourceString('makeLiteralListConst');
- Element helper = compiler.findHelper(name);
- compiler.registerStaticUse(helper);
- beginExpression(JSPrecedence.CALL_PRECEDENCE);
- buffer.add(compiler.namer.isolateAccess(helper));
- buffer.add('(');
- generateArrayLiteral(node);
- buffer.add(')');
- endExpression(JSPrecedence.CALL_PRECEDENCE);
- } else {
- generateArrayLiteral(node);
- }
+ generateArrayLiteral(node);
}
void generateArrayLiteral(HLiteralList node) {
« no previous file with comments | « lib/compiler/implementation/ssa/builder.dart ('k') | lib/compiler/implementation/ssa/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698