Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index 517870ffd420b8e1acec1e3adcc99ca13ffa2ac9..d84d024979360679f12ae729df91c4548762b062 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -78,13 +78,13 @@ void LInstruction::VerifyCall() { |
ASSERT(Output() == NULL || |
LUnallocated::cast(Output())->HasFixedPolicy() || |
!LUnallocated::cast(Output())->HasRegisterPolicy()); |
- for (UseIterator it(this); it.HasNext(); it.Advance()) { |
- LUnallocated* operand = LUnallocated::cast(it.Next()); |
+ for (UseIterator it(this); !it.Done(); it.Advance()) { |
+ LUnallocated* operand = LUnallocated::cast(it.Current()); |
ASSERT(operand->HasFixedPolicy() || |
operand->IsUsedAtStart()); |
} |
- for (TempIterator it(this); it.HasNext(); it.Advance()) { |
- LUnallocated* operand = LUnallocated::cast(it.Next()); |
+ for (TempIterator it(this); !it.Done(); it.Advance()) { |
+ LUnallocated* operand = LUnallocated::cast(it.Current()); |
ASSERT(operand->HasFixedPolicy() ||!operand->HasRegisterPolicy()); |
} |
} |