| 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_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
| 10 | 10 |
| (...skipping 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1623 LOperand* right = UseRegisterOrConstantAtStart(instr->BetterRightOperand()); | 1623 LOperand* right = UseRegisterOrConstantAtStart(instr->BetterRightOperand()); |
| 1624 LInstruction* result = | 1624 LInstruction* result = |
| 1625 instr->representation().IsSmi() | 1625 instr->representation().IsSmi() |
| 1626 ? DefineAsRegister(new (zone()) LAddS(left, right)) | 1626 ? DefineAsRegister(new (zone()) LAddS(left, right)) |
| 1627 : DefineAsRegister(new (zone()) LAddI(left, right)); | 1627 : DefineAsRegister(new (zone()) LAddI(left, right)); |
| 1628 if (instr->CheckFlag(HValue::kCanOverflow)) { | 1628 if (instr->CheckFlag(HValue::kCanOverflow)) { |
| 1629 result = AssignEnvironment(result); | 1629 result = AssignEnvironment(result); |
| 1630 } | 1630 } |
| 1631 return result; | 1631 return result; |
| 1632 } else if (instr->representation().IsExternal()) { | 1632 } else if (instr->representation().IsExternal()) { |
| 1633 DCHECK(instr->left()->representation().IsExternal()); | 1633 DCHECK(instr->IsConsistentExternalRepresentation()); |
| 1634 DCHECK(instr->right()->representation().IsInteger32()); | |
| 1635 DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); | 1634 DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); |
| 1636 LOperand* left = UseRegisterAtStart(instr->left()); | 1635 LOperand* left = UseRegisterAtStart(instr->left()); |
| 1637 LOperand* right = UseRegisterOrConstantAtStart(instr->right()); | 1636 LOperand* right = UseRegisterOrConstantAtStart(instr->right()); |
| 1638 return DefineAsRegister(new (zone()) LAddE(left, right)); | 1637 return DefineAsRegister(new (zone()) LAddE(left, right)); |
| 1639 } else if (instr->representation().IsDouble()) { | 1638 } else if (instr->representation().IsDouble()) { |
| 1640 if (kArchVariant == kMips64r2) { | 1639 if (kArchVariant == kMips64r2) { |
| 1641 if (instr->left()->IsMul()) | 1640 if (instr->left()->IsMul()) |
| 1642 return DoMultiplyAdd(HMul::cast(instr->left()), instr->right()); | 1641 return DoMultiplyAdd(HMul::cast(instr->left()), instr->right()); |
| 1643 | 1642 |
| 1644 if (instr->right()->IsMul()) { | 1643 if (instr->right()->IsMul()) { |
| (...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2681 LAllocateBlockContext* result = | 2680 LAllocateBlockContext* result = |
| 2682 new(zone()) LAllocateBlockContext(context, function); | 2681 new(zone()) LAllocateBlockContext(context, function); |
| 2683 return MarkAsCall(DefineFixed(result, cp), instr); | 2682 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2684 } | 2683 } |
| 2685 | 2684 |
| 2686 | 2685 |
| 2687 } // namespace internal | 2686 } // namespace internal |
| 2688 } // namespace v8 | 2687 } // namespace v8 |
| 2689 | 2688 |
| 2690 #endif // V8_TARGET_ARCH_MIPS64 | 2689 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |