Index: src/mips/lithium-mips.cc |
diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc |
index fa84882718f43bee4472ac6c977c4e8054378d01..6624b073c2da8de181d37093b42f6bdc4bb8bc51 100644 |
--- a/src/mips/lithium-mips.cc |
+++ b/src/mips/lithium-mips.cc |
@@ -1345,7 +1345,7 @@ LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { |
LInstruction* LChunkBuilder::DoCompareIDAndBranch( |
HCompareIDAndBranch* instr) { |
- Representation r = instr->GetInputRepresentation(); |
+ Representation r = instr->representation(); |
if (r.IsInteger32()) { |
ASSERT(instr->left()->representation().IsInteger32()); |
ASSERT(instr->right()->representation().IsInteger32()); |
@@ -2105,7 +2105,7 @@ LInstruction* LChunkBuilder::DoSimulate(HSimulate* instr) { |
env->set_ast_id(instr->ast_id()); |
env->Drop(instr->pop_count()); |
- for (int i = 0; i < instr->values()->length(); ++i) { |
+ for (int i = instr->values()->length() - 1; i >= 0; --i) { |
HValue* value = instr->values()->at(i); |
if (instr->HasAssignedIndexAt(i)) { |
env->Bind(instr->GetAssignedIndexAt(i), value); |