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

Side by Side Diff: dart/frog/leg/ssa/builder.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 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 class Interceptors { 5 class Interceptors {
6 Compiler compiler; 6 Compiler compiler;
7 Interceptors(Compiler this.compiler); 7 Interceptors(Compiler this.compiler);
8 8
9 SourceString mapOperatorToMethodName(Operator op) { 9 SourceString mapOperatorToMethodName(Operator op) {
10 String name = op.source.stringValue; 10 String name = op.source.stringValue;
(...skipping 1928 matching lines...) Expand 10 before | Expand all | Expand 10 after
1939 } 1939 }
1940 1940
1941 visitLiteralList(LiteralList node) { 1941 visitLiteralList(LiteralList node) {
1942 List<HInstruction> inputs = <HInstruction>[]; 1942 List<HInstruction> inputs = <HInstruction>[];
1943 for (Link<Node> link = node.elements.nodes; 1943 for (Link<Node> link = node.elements.nodes;
1944 !link.isEmpty(); 1944 !link.isEmpty();
1945 link = link.tail) { 1945 link = link.tail) {
1946 visit(link.head); 1946 visit(link.head);
1947 inputs.add(pop()); 1947 inputs.add(pop());
1948 } 1948 }
1949 push(new HLiteralList(inputs)); 1949 push(new HLiteralList(inputs, node.isConst()));
1950 } 1950 }
1951 1951
1952 visitConditional(Conditional node) { 1952 visitConditional(Conditional node) {
1953 visit(node.condition); 1953 visit(node.condition);
1954 HBasicBlock conditionBlock = close(new HIf(popBoolified(), true)); 1954 HBasicBlock conditionBlock = close(new HIf(popBoolified(), true));
1955 LocalsHandler savedLocals = new LocalsHandler.from(localsHandler); 1955 LocalsHandler savedLocals = new LocalsHandler.from(localsHandler);
1956 1956
1957 HBasicBlock thenBlock = addNewBlock(); 1957 HBasicBlock thenBlock = addNewBlock();
1958 conditionBlock.addSuccessor(thenBlock); 1958 conditionBlock.addSuccessor(thenBlock);
1959 open(thenBlock); 1959 open(thenBlock);
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
2290 } 2290 }
2291 2291
2292 visitCatchBlock(CatchBlock node) { 2292 visitCatchBlock(CatchBlock node) {
2293 visit(node.block); 2293 visit(node.block);
2294 } 2294 }
2295 2295
2296 visitTypedef(Typedef node) { 2296 visitTypedef(Typedef node) {
2297 compiler.unimplemented('SsaBuilder.visitTypedef', node: node); 2297 compiler.unimplemented('SsaBuilder.visitTypedef', node: node);
2298 } 2298 }
2299 } 2299 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698