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 1605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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->left()->representation().IsExternal()); |
1626 DCHECK(instr->right()->representation().IsInteger32()); | 1626 DCHECK((instr->external_add_type() == AddOfExternalAndInt32 && |
| 1627 instr->right()->representation().IsInteger32()) || |
| 1628 (instr->external_add_type() == AddOfExternalAndTagged && |
| 1629 instr->right()->representation().IsTagged())); |
1627 DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); | 1630 DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); |
1628 LOperand* left = UseRegisterAtStart(instr->left()); | 1631 LOperand* left = UseRegisterAtStart(instr->left()); |
1629 LOperand* right = UseOrConstantAtStart(instr->right()); | 1632 LOperand* right = UseOrConstantAtStart(instr->right()); |
1630 LAddI* add = new(zone()) LAddI(left, right); | 1633 LAddI* add = new(zone()) LAddI(left, right); |
1631 LInstruction* result = DefineAsRegister(add); | 1634 LInstruction* result = DefineAsRegister(add); |
1632 return result; | 1635 return result; |
1633 } else if (instr->representation().IsDouble()) { | 1636 } else if (instr->representation().IsDouble()) { |
1634 if (IsMipsArchVariant(kMips32r2)) { | 1637 if (IsMipsArchVariant(kMips32r2)) { |
1635 if (instr->left()->IsMul()) | 1638 if (instr->left()->IsMul()) |
1636 return DoMultiplyAdd(HMul::cast(instr->left()), instr->right()); | 1639 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()); | 2679 LOperand* function = UseRegisterAtStart(instr->function()); |
2677 LAllocateBlockContext* result = | 2680 LAllocateBlockContext* result = |
2678 new(zone()) LAllocateBlockContext(context, function); | 2681 new(zone()) LAllocateBlockContext(context, function); |
2679 return MarkAsCall(DefineFixed(result, cp), instr); | 2682 return MarkAsCall(DefineFixed(result, cp), instr); |
2680 } | 2683 } |
2681 | 2684 |
2682 } // namespace internal | 2685 } // namespace internal |
2683 } // namespace v8 | 2686 } // namespace v8 |
2684 | 2687 |
2685 #endif // V8_TARGET_ARCH_MIPS | 2688 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |