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

Unified Diff: runtime/vm/locations.h

Issue 317773002: Fix Win64 build of Dart VM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address comments Created 6 years, 6 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/runtime_entry_x64.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 7a617a3f3d25abd3f1eb542fa7e2f3f6b090a861..91ed897d2632a5ee0aff5bd047e2d12f37fc05a5 100644
--- a/runtime/vm/locations.h
+++ b/runtime/vm/locations.h
@@ -472,17 +472,20 @@ class RegisterSet : public ValueObject {
}
bool ContainsRegister(Register reg) const {
- return (cpu_registers_ & (1 << reg)) != 0;
+ return Contains(cpu_registers_, reg);
}
bool ContainsFpuRegister(FpuRegister fpu_reg) const {
- return (fpu_registers_ & (1 << fpu_reg)) != 0;
+ return Contains(fpu_registers_, fpu_reg);
}
intptr_t CpuRegisterCount() const { return RegisterCount(cpu_registers_); }
intptr_t FpuRegisterCount() const { return RegisterCount(fpu_registers_); }
static intptr_t RegisterCount(intptr_t registers);
+ static bool Contains(intptr_t register_set, intptr_t reg) {
+ return (register_set & (1 << reg)) != 0;
+ }
intptr_t cpu_registers() const { return cpu_registers_; }
intptr_t fpu_registers() const { return fpu_registers_; }
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/runtime_entry_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698