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

Unified Diff: runtime/vm/flow_graph_allocator.cc

Issue 296003013: - Reduce the number of Isolate::Current() calls. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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: runtime/vm/flow_graph_allocator.cc
===================================================================
--- runtime/vm/flow_graph_allocator.cc (revision 36483)
+++ runtime/vm/flow_graph_allocator.cc (working copy)
@@ -135,7 +135,7 @@
Instruction* current = it.Current();
// Initialize location summary for instruction.
- current->InitializeLocationSummary(true); // Optimizing.
+ current->InitializeLocationSummary(Isolate::Current(), true); // opt
LocationSummary* locs = current->locs();
// Handle definitions.
@@ -1913,7 +1913,7 @@
safepoint != NULL;
safepoint = safepoint->next()) {
// Mark the stack slot as having an object.
- safepoint->locs()->stack_bitmap()->Set(stack_index, true);
+ safepoint->locs()->SetStackBit(stack_index);
}
range = range->next_sibling();
}

Powered by Google App Engine
This is Rietveld 408576698