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 #include "src/arm/lithium-codegen-arm.h" | 9 #include "src/arm/lithium-codegen-arm.h" |
10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
(...skipping 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1669 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand()); | 1669 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand()); |
1670 LOperand* right = UseOrConstantAtStart(instr->BetterRightOperand()); | 1670 LOperand* right = UseOrConstantAtStart(instr->BetterRightOperand()); |
1671 LAddI* add = new(zone()) LAddI(left, right); | 1671 LAddI* add = new(zone()) LAddI(left, right); |
1672 LInstruction* result = DefineAsRegister(add); | 1672 LInstruction* result = DefineAsRegister(add); |
1673 if (instr->CheckFlag(HValue::kCanOverflow)) { | 1673 if (instr->CheckFlag(HValue::kCanOverflow)) { |
1674 result = AssignEnvironment(result); | 1674 result = AssignEnvironment(result); |
1675 } | 1675 } |
1676 return result; | 1676 return result; |
1677 } else if (instr->representation().IsExternal()) { | 1677 } else if (instr->representation().IsExternal()) { |
1678 DCHECK(instr->left()->representation().IsExternal()); | 1678 DCHECK(instr->left()->representation().IsExternal()); |
1679 DCHECK(instr->right()->representation().IsInteger32()); | 1679 DCHECK((instr->external_add_type() == AddOfExternalAndInt32 && |
| 1680 instr->right()->representation().IsInteger32()) || |
| 1681 (instr->external_add_type() == AddOfExternalAndTagged && |
| 1682 instr->right()->representation().IsTagged())); |
1680 DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); | 1683 DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); |
1681 LOperand* left = UseRegisterAtStart(instr->left()); | 1684 LOperand* left = UseRegisterAtStart(instr->left()); |
1682 LOperand* right = UseOrConstantAtStart(instr->right()); | 1685 LOperand* right = UseOrConstantAtStart(instr->right()); |
1683 LAddI* add = new(zone()) LAddI(left, right); | 1686 LAddI* add = new(zone()) LAddI(left, right); |
1684 LInstruction* result = DefineAsRegister(add); | 1687 LInstruction* result = DefineAsRegister(add); |
1685 return result; | 1688 return result; |
1686 } else if (instr->representation().IsDouble()) { | 1689 } else if (instr->representation().IsDouble()) { |
1687 if (instr->left()->IsMul() && instr->left()->HasOneUse()) { | 1690 if (instr->left()->IsMul() && instr->left()->HasOneUse()) { |
1688 return DoMultiplyAdd(HMul::cast(instr->left()), instr->right()); | 1691 return DoMultiplyAdd(HMul::cast(instr->left()), instr->right()); |
1689 } | 1692 } |
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2726 HAllocateBlockContext* instr) { | 2729 HAllocateBlockContext* instr) { |
2727 LOperand* context = UseFixed(instr->context(), cp); | 2730 LOperand* context = UseFixed(instr->context(), cp); |
2728 LOperand* function = UseRegisterAtStart(instr->function()); | 2731 LOperand* function = UseRegisterAtStart(instr->function()); |
2729 LAllocateBlockContext* result = | 2732 LAllocateBlockContext* result = |
2730 new(zone()) LAllocateBlockContext(context, function); | 2733 new(zone()) LAllocateBlockContext(context, function); |
2731 return MarkAsCall(DefineFixed(result, cp), instr); | 2734 return MarkAsCall(DefineFixed(result, cp), instr); |
2732 } | 2735 } |
2733 | 2736 |
2734 } // namespace internal | 2737 } // namespace internal |
2735 } // namespace v8 | 2738 } // namespace v8 |
OLD | NEW |