Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index a874a2400aa1a850eb924ceb83c0df8f02b03519..45b15723dc7ac856ee6c7b19be4c7ea6ec524af9 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -1389,7 +1389,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()); |
@@ -2152,7 +2152,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); |