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 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1668 DCHECK(instr->right()->representation().Equals(instr->representation())); | 1668 DCHECK(instr->right()->representation().Equals(instr->representation())); |
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->IsConsistentExternalRepresentation()); |
1679 DCHECK(instr->right()->representation().IsInteger32()); | |
1680 DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); | 1679 DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); |
1681 LOperand* left = UseRegisterAtStart(instr->left()); | 1680 LOperand* left = UseRegisterAtStart(instr->left()); |
1682 LOperand* right = UseOrConstantAtStart(instr->right()); | 1681 LOperand* right = UseOrConstantAtStart(instr->right()); |
1683 LAddI* add = new(zone()) LAddI(left, right); | 1682 LAddI* add = new(zone()) LAddI(left, right); |
1684 LInstruction* result = DefineAsRegister(add); | 1683 LInstruction* result = DefineAsRegister(add); |
1685 return result; | 1684 return result; |
1686 } else if (instr->representation().IsDouble()) { | 1685 } else if (instr->representation().IsDouble()) { |
1687 if (instr->left()->IsMul() && instr->left()->HasOneUse()) { | 1686 if (instr->left()->IsMul() && instr->left()->HasOneUse()) { |
1688 return DoMultiplyAdd(HMul::cast(instr->left()), instr->right()); | 1687 return DoMultiplyAdd(HMul::cast(instr->left()), instr->right()); |
1689 } | 1688 } |
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2726 HAllocateBlockContext* instr) { | 2725 HAllocateBlockContext* instr) { |
2727 LOperand* context = UseFixed(instr->context(), cp); | 2726 LOperand* context = UseFixed(instr->context(), cp); |
2728 LOperand* function = UseRegisterAtStart(instr->function()); | 2727 LOperand* function = UseRegisterAtStart(instr->function()); |
2729 LAllocateBlockContext* result = | 2728 LAllocateBlockContext* result = |
2730 new(zone()) LAllocateBlockContext(context, function); | 2729 new(zone()) LAllocateBlockContext(context, function); |
2731 return MarkAsCall(DefineFixed(result, cp), instr); | 2730 return MarkAsCall(DefineFixed(result, cp), instr); |
2732 } | 2731 } |
2733 | 2732 |
2734 } // namespace internal | 2733 } // namespace internal |
2735 } // namespace v8 | 2734 } // namespace v8 |
OLD | NEW |