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

Side by Side Diff: dart/lib/compiler/implementation/ssa/codegen_helpers.dart

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
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
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;
6
7 /** 5 /**
8 * Instead of emitting each SSA instruction with a temporary variable 6 * Instead of emitting each SSA instruction with a temporary variable
9 * mark instructions that can be emitted at their use-site. 7 * mark instructions that can be emitted at their use-site.
10 * For example, in: 8 * For example, in:
11 * t0 = 4; 9 * t0 = 4;
12 * t1 = 3; 10 * t1 = 3;
13 * t2 = add(t0, t1); 11 * t2 = add(t0, t1);
14 * t0 and t1 would be marked and the resulting code would then be: 12 * t0 and t1 would be marked and the resulting code would then be:
15 * t2 = add(4, 3); 13 * t2 = add(4, 3);
16 */ 14 */
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 } 340 }
343 341
344 // If [thenInput] is defined in the first predecessor, then it is only used 342 // If [thenInput] is defined in the first predecessor, then it is only used
345 // by [phi] and can be generated at use site. 343 // by [phi] and can be generated at use site.
346 if (identical(thenInput.block, end.predecessors[0])) { 344 if (identical(thenInput.block, end.predecessors[0])) {
347 assert(thenInput.usedBy.length == 1); 345 assert(thenInput.usedBy.length == 1);
348 markAsGenerateAtUseSite(thenInput); 346 markAsGenerateAtUseSite(thenInput);
349 } 347 }
350 } 348 }
351 } 349 }
OLDNEW
« no previous file with comments | « dart/lib/compiler/implementation/ssa/codegen.dart ('k') | dart/lib/compiler/implementation/ssa/js_names.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698