| 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 1604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1615 DCHECK(instr->right()->representation().Equals(instr->representation())); | 1615 DCHECK(instr->right()->representation().Equals(instr->representation())); |
| 1616 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand()); | 1616 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand()); |
| 1617 LOperand* right = UseOrConstantAtStart(instr->BetterRightOperand()); | 1617 LOperand* right = UseOrConstantAtStart(instr->BetterRightOperand()); |
| 1618 LAddI* add = new(zone()) LAddI(left, right); | 1618 LAddI* add = new(zone()) LAddI(left, right); |
| 1619 LInstruction* result = DefineAsRegister(add); | 1619 LInstruction* result = DefineAsRegister(add); |
| 1620 if (instr->CheckFlag(HValue::kCanOverflow)) { | 1620 if (instr->CheckFlag(HValue::kCanOverflow)) { |
| 1621 result = AssignEnvironment(result); | 1621 result = AssignEnvironment(result); |
| 1622 } | 1622 } |
| 1623 return result; | 1623 return result; |
| 1624 } else if (instr->representation().IsExternal()) { | 1624 } else if (instr->representation().IsExternal()) { |
| 1625 DCHECK(instr->left()->representation().IsExternal()); | 1625 DCHECK(instr->IsConsistentExternalRepresentation()); |
| 1626 DCHECK(instr->right()->representation().IsInteger32()); | |
| 1627 DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); | 1626 DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); |
| 1628 LOperand* left = UseRegisterAtStart(instr->left()); | 1627 LOperand* left = UseRegisterAtStart(instr->left()); |
| 1629 LOperand* right = UseOrConstantAtStart(instr->right()); | 1628 LOperand* right = UseOrConstantAtStart(instr->right()); |
| 1630 LAddI* add = new(zone()) LAddI(left, right); | 1629 LAddI* add = new(zone()) LAddI(left, right); |
| 1631 LInstruction* result = DefineAsRegister(add); | 1630 LInstruction* result = DefineAsRegister(add); |
| 1632 return result; | 1631 return result; |
| 1633 } else if (instr->representation().IsDouble()) { | 1632 } else if (instr->representation().IsDouble()) { |
| 1634 if (IsMipsArchVariant(kMips32r2)) { | 1633 if (IsMipsArchVariant(kMips32r2)) { |
| 1635 if (instr->left()->IsMul()) | 1634 if (instr->left()->IsMul()) |
| 1636 return DoMultiplyAdd(HMul::cast(instr->left()), instr->right()); | 1635 return DoMultiplyAdd(HMul::cast(instr->left()), instr->right()); |
| (...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2676 LOperand* function = UseRegisterAtStart(instr->function()); | 2675 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2677 LAllocateBlockContext* result = | 2676 LAllocateBlockContext* result = |
| 2678 new(zone()) LAllocateBlockContext(context, function); | 2677 new(zone()) LAllocateBlockContext(context, function); |
| 2679 return MarkAsCall(DefineFixed(result, cp), instr); | 2678 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2680 } | 2679 } |
| 2681 | 2680 |
| 2682 } // namespace internal | 2681 } // namespace internal |
| 2683 } // namespace v8 | 2682 } // namespace v8 |
| 2684 | 2683 |
| 2685 #endif // V8_TARGET_ARCH_MIPS | 2684 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |