Chromium Code Reviews| Index: src/ia32/register-allocator-ia32-inl.h |
| =================================================================== |
| --- src/ia32/register-allocator-ia32-inl.h (revision 2489) |
| +++ src/ia32/register-allocator-ia32-inl.h (working copy) |
| @@ -65,7 +65,7 @@ |
| Register RegisterAllocator::ToRegister(int num) { |
| ASSERT(num >= 0 && num < kNumRegisters); |
| - static Register registers[] = { eax, ebx, ecx, edx, edi }; |
| + const Register registers[] = { eax, ebx, ecx, edx, edi }; |
|
Kevin Millikin (Chromium)
2009/07/17 08:10:57
This static also occurs above in RegisterAllocator
|
| return registers[num]; |
| } |