Index: src/ia32/register-allocator-ia32.cc |
=================================================================== |
--- src/ia32/register-allocator-ia32.cc (revision 1905) |
+++ src/ia32/register-allocator-ia32.cc (working copy) |
@@ -97,6 +97,12 @@ |
} |
+bool RegisterAllocator::IsReserved(int reg_code) { |
+ // Test below relies on the order of register codes. |
+ return reg_code >= esp.code() && reg_code <= esi.code(); |
+} |
+ |
+ |
void RegisterAllocator::Initialize() { |
Reset(); |
// The following register is live on function entry, saved in the |