Index: test/cctest/test-code-stubs-mips64.cc |
diff --git a/test/cctest/test-code-stubs-mips64.cc b/test/cctest/test-code-stubs-mips64.cc |
index fde2d07a9c12864b3096b9e9d7d9dec8daa3cbb6..1415cec0798eacbc662c231fa0f1876ec5f9712c 100644 |
--- a/test/cctest/test-code-stubs-mips64.cc |
+++ b/test/cctest/test-code-stubs-mips64.cc |
@@ -34,7 +34,6 @@ |
#include "src/factory.h" |
#include "src/macro-assembler.h" |
#include "src/mips64/constants-mips64.h" |
-#include "src/register-configuration.h" |
#include "src/simulator.h" |
#include "test/cctest/cctest.h" |
#include "test/cctest/test-code-stubs.h" |
@@ -80,8 +79,7 @@ |
// Save registers make sure they don't get clobbered. |
int source_reg_offset = kDoubleSize; |
int reg_num = 2; |
- const RegisterConfiguration* config = RegisterConfiguration::ArchDefault(); |
- for (; reg_num < config->num_allocatable_general_registers(); ++reg_num) { |
+ for (;reg_num < Register::NumAllocatableRegisters(); ++reg_num) { |
Register reg = Register::from_code(reg_num); |
if (!reg.is(destination_reg)) { |
__ push(reg); |