OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <sstream> | 5 #include <sstream> |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
10 | 10 |
(...skipping 1591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1602 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand()); | 1602 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand()); |
1603 LOperand* right = UseOrConstantAtStart(instr->BetterRightOperand()); | 1603 LOperand* right = UseOrConstantAtStart(instr->BetterRightOperand()); |
1604 LAddI* add = new(zone()) LAddI(left, right); | 1604 LAddI* add = new(zone()) LAddI(left, right); |
1605 LInstruction* result = DefineAsRegister(add); | 1605 LInstruction* result = DefineAsRegister(add); |
1606 if (instr->CheckFlag(HValue::kCanOverflow)) { | 1606 if (instr->CheckFlag(HValue::kCanOverflow)) { |
1607 result = AssignEnvironment(result); | 1607 result = AssignEnvironment(result); |
1608 } | 1608 } |
1609 return result; | 1609 return result; |
1610 } else if (instr->representation().IsExternal()) { | 1610 } else if (instr->representation().IsExternal()) { |
1611 DCHECK(instr->left()->representation().IsExternal()); | 1611 DCHECK(instr->left()->representation().IsExternal()); |
1612 DCHECK(instr->right()->representation().IsInteger32()); | 1612 DCHECK(instr->right()->representation().IsInteger32() || |
| 1613 instr->right()->representation().IsTagged()); |
1613 DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); | 1614 DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); |
1614 LOperand* left = UseRegisterAtStart(instr->left()); | 1615 LOperand* left = UseRegisterAtStart(instr->left()); |
1615 LOperand* right = UseOrConstantAtStart(instr->right()); | 1616 LOperand* right = UseOrConstantAtStart(instr->right()); |
1616 LAddI* add = new(zone()) LAddI(left, right); | 1617 LAddI* add = new(zone()) LAddI(left, right); |
1617 LInstruction* result = DefineAsRegister(add); | 1618 LInstruction* result = DefineAsRegister(add); |
1618 return result; | 1619 return result; |
1619 } else if (instr->representation().IsDouble()) { | 1620 } else if (instr->representation().IsDouble()) { |
1620 if (IsMipsArchVariant(kMips32r2)) { | 1621 if (IsMipsArchVariant(kMips32r2)) { |
1621 if (instr->left()->IsMul()) | 1622 if (instr->left()->IsMul()) |
1622 return DoMultiplyAdd(HMul::cast(instr->left()), instr->right()); | 1623 return DoMultiplyAdd(HMul::cast(instr->left()), instr->right()); |
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2640 LOperand* function = UseRegisterAtStart(instr->function()); | 2641 LOperand* function = UseRegisterAtStart(instr->function()); |
2641 LAllocateBlockContext* result = | 2642 LAllocateBlockContext* result = |
2642 new(zone()) LAllocateBlockContext(context, function); | 2643 new(zone()) LAllocateBlockContext(context, function); |
2643 return MarkAsCall(DefineFixed(result, cp), instr); | 2644 return MarkAsCall(DefineFixed(result, cp), instr); |
2644 } | 2645 } |
2645 | 2646 |
2646 } // namespace internal | 2647 } // namespace internal |
2647 } // namespace v8 | 2648 } // namespace v8 |
2648 | 2649 |
2649 #endif // V8_TARGET_ARCH_MIPS | 2650 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |