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

Unified Diff: runtime/vm/locations.h

Issue 26823006: Record a correct deoptimization environment for slow-path code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use an environment value's representation to decide its size. Created 7 years, 2 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 24bf0a036dcb6dc65daaa2c5b56427e4d0dac8ce..8e34046ad92e15052aa8f23a5e72962bc2e55484 100644
--- a/runtime/vm/locations.h
+++ b/runtime/vm/locations.h
@@ -368,15 +368,10 @@ class RegisterSet : public ValueObject {
return (fpu_registers_ & (1 << fpu_reg)) != 0;
}
- 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))) {
- count++;
- }
- }
- return count;
- }
+ intptr_t CpuRegisterCount() const { return RegisterCount(cpu_registers_); }
Florian Schneider 2013/10/17 14:38:52 I don't see that function used anywhere. Do you an
+ intptr_t FpuRegisterCount() const { return RegisterCount(fpu_registers_); }
+
+ static intptr_t RegisterCount(intptr_t registers);
intptr_t cpu_registers() const { return cpu_registers_; }
intptr_t fpu_registers() const { return fpu_registers_; }

Powered by Google App Engine
This is Rietveld 408576698