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

Unified Diff: runtime/vm/locations.h

Issue 517343002: Ensure that BoxInt32 input is correctly preserved on the slow-path. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/locations.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/locations.h
diff --git a/runtime/vm/locations.h b/runtime/vm/locations.h
index a5332391e9337652b17300c433e6905da2aa90b1..5438b0868a2095f69624ceb908a1016bd9377e5d 100644
--- a/runtime/vm/locations.h
+++ b/runtime/vm/locations.h
@@ -631,6 +631,13 @@ class LocationSummary : public ZoneAllocated {
return &live_registers_;
}
+#if defined(DEBUG)
+ // Debug only verification that ensures that writable registers are correctly
+ // preserved on the slow path.
+ void DiscoverWritableInputs();
+ void CheckWritableInputs();
+#endif
+
private:
const intptr_t num_inputs_;
Location* input_locations_;
@@ -642,6 +649,10 @@ class LocationSummary : public ZoneAllocated {
const ContainsCall contains_call_;
RegisterSet live_registers_;
+
+#if defined(DEBUG)
+ intptr_t writable_inputs_;
+#endif
};
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/locations.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698