Index: src/jsregexp.cc |
diff --git a/src/jsregexp.cc b/src/jsregexp.cc |
index 60d9f04f9df2481cc62afba1c6482393ad4caa64..8f378a6064b150a7c972930bd15cee0acb0137e3 100644 |
--- a/src/jsregexp.cc |
+++ b/src/jsregexp.cc |
@@ -1208,8 +1208,9 @@ void Trace::RestoreAffectedRegisters(RegExpMacroAssembler* assembler, |
const OutSet& registers_to_pop, |
const OutSet& registers_to_clear) { |
for (int reg = max_register; reg >= 0; reg--) { |
- if (registers_to_pop.Get(reg)) assembler->PopRegister(reg); |
- else if (registers_to_clear.Get(reg)) { |
+ if (registers_to_pop.Get(reg)) { |
+ assembler->PopRegister(reg); |
+ } else if (registers_to_clear.Get(reg)) { |
int clear_to = reg; |
while (reg > 0 && registers_to_clear.Get(reg - 1)) { |
reg--; |