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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/variable_allocator.dart

Issue 12254006: Reapply "New implementation of {,Linked}Hash{Set,Map}." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Make HashMap and LinkedHashMap not extend HashTable. Created 7 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 side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/ssa/variable_allocator.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/variable_allocator.dart b/sdk/lib/_internal/compiler/implementation/ssa/variable_allocator.dart
index c1243d23a85b64df4ea6fff4862b7093dac2641c..e139f242388b05667626bc9a56a117b36bf81640 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/variable_allocator.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/variable_allocator.dart
@@ -299,7 +299,8 @@ class SsaLiveIntervalBuilder extends HBaseVisitor {
int lastId = env.loopMarkers[header];
// Update all instructions that are liveIns in [header] to have a
// range that covers the loop.
- env.liveInstructions.forEach((HInstruction instruction, int id) {
+ new Map.from(env.liveInstructions).forEach((HInstruction instruction,
+ int id) {
LiveInterval range = env.liveIntervals.putIfAbsent(
instruction, () => new LiveInterval());
range.loopUpdate(env.startId, lastId);

Powered by Google App Engine
This is Rietveld 408576698