Index: src/arm/lithium-arm.cc |
diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc |
index a3b6b95659ec2868d3b12f24fb62dd35fefcbb57..d1c5c72748e305ce2ba95977f2ab4d788997d980 100644 |
--- a/src/arm/lithium-arm.cc |
+++ b/src/arm/lithium-arm.cc |
@@ -68,13 +68,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()); |
} |
} |