Index: src/ia32/lithium-ia32.cc |
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
index 0945848ea07a421954a23d5a666f0e51fff1181e..77934d846a45c0af98ddf6c77a584b521d671e0b 100644 |
--- a/src/ia32/lithium-ia32.cc |
+++ b/src/ia32/lithium-ia32.cc |
@@ -1443,7 +1443,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()); |
@@ -2283,7 +2283,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); |