Index: src/deoptimizer.h |
diff --git a/src/deoptimizer.h b/src/deoptimizer.h |
index a0cc6975c3c95862cf284591d593124dd8995106..c5094838e5504d44ec6e0eac983c47890f65c662 100644 |
--- a/src/deoptimizer.h |
+++ b/src/deoptimizer.h |
@@ -494,7 +494,7 @@ class FrameDescription { |
// This convoluted DCHECK is needed to work around a gcc problem that |
// improperly detects an array bounds overflow in optimized debug builds |
// when using a plain DCHECK. |
- if (n >= ARRAY_SIZE(registers_)) { |
+ if (n >= arraysize(registers_)) { |
DCHECK(false); |
return 0; |
} |
@@ -503,17 +503,17 @@ class FrameDescription { |
} |
double GetDoubleRegister(unsigned n) const { |
- DCHECK(n < ARRAY_SIZE(double_registers_)); |
+ DCHECK(n < arraysize(double_registers_)); |
return double_registers_[n]; |
} |
void SetRegister(unsigned n, intptr_t value) { |
- DCHECK(n < ARRAY_SIZE(registers_)); |
+ DCHECK(n < arraysize(registers_)); |
registers_[n] = value; |
} |
void SetDoubleRegister(unsigned n, double value) { |
- DCHECK(n < ARRAY_SIZE(double_registers_)); |
+ DCHECK(n < arraysize(double_registers_)); |
double_registers_[n] = value; |
} |