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

Unified Diff: runtime/vm/locations.h

Issue 968183003: Emit stackmaps even in unoptimized code if slow path pushes untagged values. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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: runtime/vm/locations.h
diff --git a/runtime/vm/locations.h b/runtime/vm/locations.h
index d57b2fd0fdde1ef51190dd19e1de3ebf3de2348f..a2e8be3875e31beb0e7e2ce29af6b2381d6843e6 100644
--- a/runtime/vm/locations.h
+++ b/runtime/vm/locations.h
@@ -459,6 +459,8 @@ class SmallSet {
void Remove(T value) { data_ &= ~ToMask(value); }
+ bool IsEmpty() const { return data_ != 0; }
+
intptr_t data() const { return data_; }
private:
@@ -535,6 +537,10 @@ class RegisterSet : public ValueObject {
untagged_cpu_registers_.Add(loc.reg());
}
+ bool HasUntaggedValues() const {
+ return !untagged_cpu_registers_.IsEmpty() || !fpu_registers_.IsEmpty();
+ }
+
bool IsTagged(Register reg) const {
return !untagged_cpu_registers_.Contains(reg);
}

Powered by Google App Engine
This is Rietveld 408576698