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

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

Issue 13779007: Use inlinedFrom in buildFieldInitializers (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
« 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 /** 7 /**
8 * A special element for the extra parameter taken by intercepted 8 * A special element for the extra parameter taken by intercepted
9 * methods. We need to override [Element.computeType] because our 9 * methods. We need to override [Element.computeType] because our
10 * optimizers may look at its declared type. 10 * optimizers may look at its declared type.
(...skipping 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after
1343 if (assignment == null) { 1343 if (assignment == null) {
1344 value = graph.addConstantNull(constantSystem); 1344 value = graph.addConstantNull(constantSystem);
1345 } else { 1345 } else {
1346 Node right = assignment.arguments.head; 1346 Node right = assignment.arguments.head;
1347 TreeElements savedElements = elements; 1347 TreeElements savedElements = elements;
1348 elements = definitions; 1348 elements = definitions;
1349 // In case the field initializer uses closures, run the 1349 // In case the field initializer uses closures, run the
1350 // closure to class mapper. 1350 // closure to class mapper.
1351 compiler.closureToClassMapper.computeClosureToClassMapping( 1351 compiler.closureToClassMapper.computeClosureToClassMapping(
1352 member, node, elements); 1352 member, node, elements);
1353 sourceElementStack.add(member); 1353 inlinedFrom(member, () => right.accept(this));
1354 right.accept(this);
1355 sourceElementStack.removeLast();
1356 elements = savedElements; 1354 elements = savedElements;
1357 value = pop(); 1355 value = pop();
1358 } 1356 }
1359 fieldValues[member] = value; 1357 fieldValues[member] = value;
1360 }); 1358 });
1361 }, 1359 },
1362 includeBackendMembers: true, 1360 includeBackendMembers: true,
1363 includeSuperMembers: false); 1361 includeSuperMembers: false);
1364 } 1362 }
1365 1363
(...skipping 3795 matching lines...) Expand 10 before | Expand all | Expand 10 after
5161 new HSubGraphBlockInformation(elseBranch.graph)); 5159 new HSubGraphBlockInformation(elseBranch.graph));
5162 5160
5163 HBasicBlock conditionStartBlock = conditionBranch.block; 5161 HBasicBlock conditionStartBlock = conditionBranch.block;
5164 conditionStartBlock.setBlockFlow(info, joinBlock); 5162 conditionStartBlock.setBlockFlow(info, joinBlock);
5165 SubGraph conditionGraph = conditionBranch.graph; 5163 SubGraph conditionGraph = conditionBranch.graph;
5166 HIf branch = conditionGraph.end.last; 5164 HIf branch = conditionGraph.end.last;
5167 assert(branch is HIf); 5165 assert(branch is HIf);
5168 branch.blockInformation = conditionStartBlock.blockFlow; 5166 branch.blockInformation = conditionStartBlock.blockFlow;
5169 } 5167 }
5170 } 5168 }
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