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

Unified Diff: runtime/vm/locations.h

Issue 12335102: Compile and simulate first dart function on arm generated from ast. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
===================================================================
--- runtime/vm/locations.h (revision 19074)
+++ runtime/vm/locations.h (working copy)
@@ -366,15 +366,15 @@
}
}
- bool ContainsRegister(Register reg) {
+ bool ContainsRegister(Register reg) const {
return (cpu_registers_ & (1 << reg)) != 0;
}
- bool ContainsFpuRegister(FpuRegister fpu_reg) {
+ bool ContainsFpuRegister(FpuRegister fpu_reg) const {
return (fpu_registers_ & (1 << fpu_reg)) != 0;
}
- intptr_t fpu_regs_count() {
+ intptr_t fpu_regs_count() const {
intptr_t count = 0;
for (intptr_t reg_idx = 0; reg_idx < kNumberOfFpuRegisters; reg_idx++) {
if (ContainsFpuRegister(static_cast<FpuRegister>(reg_idx))) {
@@ -384,6 +384,9 @@
return count;
}
+ intptr_t cpu_registers() const { return cpu_registers_; }
+ intptr_t fpu_registers() const { return fpu_registers_; }
+
private:
intptr_t cpu_registers_;
intptr_t fpu_registers_;

Powered by Google App Engine
This is Rietveld 408576698