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

Unified Diff: runtime/vm/locations.h

Issue 375693004: Don't assign safepoint at the definition to the definition's live-range. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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') | tests/standalone/slowpath_safepoints_test.dart » ('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 91ed897d2632a5ee0aff5bd047e2d12f37fc05a5..9b5b841835d57685e7b34a8c9b3167dbc97f7a46 100644
--- a/runtime/vm/locations.h
+++ b/runtime/vm/locations.h
@@ -445,6 +445,17 @@ class RegisterSet : public ValueObject {
}
}
+ bool Contains(Location loc) {
+ if (loc.IsRegister()) {
+ return ContainsRegister(loc.reg());
+ } else if (loc.IsFpuRegister()) {
+ return ContainsFpuRegister(loc.fpu_reg());
+ } else {
+ UNREACHABLE();
+ return false;
+ }
+ }
+
void DebugPrint() {
for (intptr_t i = 0; i < kNumberOfCpuRegisters; i++) {
Register r = static_cast<Register>(i);
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | tests/standalone/slowpath_safepoints_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698