Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index 23ccd8abc8668958a261388afd1247ac1c9d0efd..87f9cb23d9c2bf76fbbc2cfbdecf05aa1fdc80db 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -1383,7 +1383,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()); |
@@ -2146,7 +2146,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); |