| Index: src/mips/lithium-mips.cc
|
| diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc
|
| index a054168cf99c6bfc3b8b9761702d12caf2aa9479..861e65dfbb1bb66bc8f94fb7bcf333515cd56dfd 100644
|
| --- a/src/mips/lithium-mips.cc
|
| +++ b/src/mips/lithium-mips.cc
|
| @@ -820,7 +820,7 @@ void LChunkBuilder::DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block) {
|
| HEnvironment* last_environment = pred->last_environment();
|
| for (int i = 0; i < block->phis()->length(); ++i) {
|
| HPhi* phi = block->phis()->at(i);
|
| - if (phi->merged_index() < last_environment->length()) {
|
| + if (phi->HasMergedIndex()) {
|
| last_environment->SetValueAt(phi->merged_index(), phi);
|
| }
|
| }
|
| @@ -1628,9 +1628,8 @@ LInstruction* LChunkBuilder::DoCompareNumericAndBranch(
|
| HCompareNumericAndBranch* instr) {
|
| Representation r = instr->representation();
|
| if (r.IsSmiOrInteger32()) {
|
| - ASSERT(instr->left()->representation().IsSmiOrInteger32());
|
| - ASSERT(instr->left()->representation().Equals(
|
| - instr->right()->representation()));
|
| + ASSERT(instr->left()->representation().Equals(r));
|
| + ASSERT(instr->right()->representation().Equals(r));
|
| LOperand* left = UseRegisterOrConstantAtStart(instr->left());
|
| LOperand* right = UseRegisterOrConstantAtStart(instr->right());
|
| return new(zone()) LCompareNumericAndBranch(left, right);
|
| @@ -1653,6 +1652,13 @@ LInstruction* LChunkBuilder::DoCompareObjectEqAndBranch(
|
| }
|
|
|
|
|
| +LInstruction* LChunkBuilder::DoCompareHoleAndBranch(
|
| + HCompareHoleAndBranch* instr) {
|
| + LOperand* object = UseRegisterAtStart(instr->object());
|
| + return new(zone()) LCmpHoleAndBranch(object);
|
| +}
|
| +
|
| +
|
| LInstruction* LChunkBuilder::DoIsObjectAndBranch(HIsObjectAndBranch* instr) {
|
| ASSERT(instr->value()->representation().IsTagged());
|
| LOperand* temp = TempRegister();
|
| @@ -2067,23 +2073,6 @@ LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) {
|
| }
|
|
|
|
|
| -LInstruction* LChunkBuilder::DoLoadNamedFieldPolymorphic(
|
| - HLoadNamedFieldPolymorphic* instr) {
|
| - ASSERT(instr->representation().IsTagged());
|
| - if (instr->need_generic()) {
|
| - LOperand* obj = UseFixed(instr->object(), a0);
|
| - LLoadNamedFieldPolymorphic* result =
|
| - new(zone()) LLoadNamedFieldPolymorphic(obj);
|
| - return MarkAsCall(DefineFixed(result, v0), instr);
|
| - } else {
|
| - LOperand* obj = UseRegisterAtStart(instr->object());
|
| - LLoadNamedFieldPolymorphic* result =
|
| - new(zone()) LLoadNamedFieldPolymorphic(obj);
|
| - return AssignEnvironment(DefineAsRegister(result));
|
| - }
|
| -}
|
| -
|
| -
|
| LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) {
|
| LOperand* object = UseFixed(instr->object(), a0);
|
| LInstruction* result = DefineFixed(new(zone()) LLoadNamedGeneric(object), v0);
|
|
|