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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/ssa/builder.dart

Issue 11367092: Fix a wrong type annotation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 part of ssa; 5 part of ssa;
6 6
7 class Interceptors { 7 class Interceptors {
8 Compiler compiler; 8 Compiler compiler;
9 Interceptors(Compiler this.compiler); 9 Interceptors(Compiler this.compiler);
10 10
(...skipping 3100 matching lines...) Expand 10 before | Expand all | Expand 10 after
3111 if (returnType != null) instruction.guaranteedType = returnType; 3111 if (returnType != null) instruction.guaranteedType = returnType;
3112 pushWithPosition(instruction, node); 3112 pushWithPosition(instruction, node);
3113 } else { 3113 } else {
3114 generateGetter(node, element); 3114 generateGetter(node, element);
3115 List<HInstruction> inputs = <HInstruction>[pop()]; 3115 List<HInstruction> inputs = <HInstruction>[pop()];
3116 addDynamicSendArgumentsToList(node, inputs); 3116 addDynamicSendArgumentsToList(node, inputs);
3117 pushWithPosition(new HInvokeClosure(selector, inputs), node); 3117 pushWithPosition(new HInvokeClosure(selector, inputs), node);
3118 } 3118 }
3119 } 3119 }
3120 3120
3121 HConstant addConstantString(Identifier node, String string) { 3121 HConstant addConstantString(Node node, String string) {
3122 DartString dartString = new DartString.literal(string); 3122 DartString dartString = new DartString.literal(string);
3123 Constant constant = constantSystem.createString(dartString, node); 3123 Constant constant = constantSystem.createString(dartString, node);
3124 return graph.addConstant(constant); 3124 return graph.addConstant(constant);
3125 } 3125 }
3126 3126
3127 visitTypeReferenceSend(Send node) { 3127 visitTypeReferenceSend(Send node) {
3128 Element element = elements[node]; 3128 Element element = elements[node];
3129 HInstruction name; 3129 HInstruction name;
3130 Element helper = 3130 Element helper =
3131 compiler.findHelper(RuntimeTypeInformation.CACHE_HELPER_NAME); 3131 compiler.findHelper(RuntimeTypeInformation.CACHE_HELPER_NAME);
(...skipping 1543 matching lines...) Expand 10 before | Expand all | Expand 10 after
4675 new HSubGraphBlockInformation(elseBranch.graph)); 4675 new HSubGraphBlockInformation(elseBranch.graph));
4676 4676
4677 HBasicBlock conditionStartBlock = conditionBranch.block; 4677 HBasicBlock conditionStartBlock = conditionBranch.block;
4678 conditionStartBlock.setBlockFlow(info, joinBlock); 4678 conditionStartBlock.setBlockFlow(info, joinBlock);
4679 SubGraph conditionGraph = conditionBranch.graph; 4679 SubGraph conditionGraph = conditionBranch.graph;
4680 HIf branch = conditionGraph.end.last; 4680 HIf branch = conditionGraph.end.last;
4681 assert(branch is HIf); 4681 assert(branch is HIf);
4682 branch.blockInformation = conditionStartBlock.blockFlow; 4682 branch.blockInformation = conditionStartBlock.blockFlow;
4683 } 4683 }
4684 } 4684 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698