OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 "src/crankshaft/arm64/lithium-arm64.h" | 5 #include "src/crankshaft/arm64/lithium-arm64.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" | 9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" |
10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
(...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1736 DefineFixed(new(zone()) LLoadNamedGeneric(context, object, vector), x0); | 1736 DefineFixed(new(zone()) LLoadNamedGeneric(context, object, vector), x0); |
1737 return MarkAsCall(result, instr); | 1737 return MarkAsCall(result, instr); |
1738 } | 1738 } |
1739 | 1739 |
1740 | 1740 |
1741 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) { | 1741 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) { |
1742 return DefineAsRegister(new(zone()) LLoadRoot); | 1742 return DefineAsRegister(new(zone()) LLoadRoot); |
1743 } | 1743 } |
1744 | 1744 |
1745 | 1745 |
1746 LInstruction* LChunkBuilder::DoMapEnumLength(HMapEnumLength* instr) { | |
1747 LOperand* map = UseRegisterAtStart(instr->value()); | |
1748 return DefineAsRegister(new(zone()) LMapEnumLength(map)); | |
1749 } | |
1750 | |
1751 | |
1752 LInstruction* LChunkBuilder::DoFlooringDivByPowerOf2I(HMathFloorOfDiv* instr) { | 1746 LInstruction* LChunkBuilder::DoFlooringDivByPowerOf2I(HMathFloorOfDiv* instr) { |
1753 DCHECK(instr->representation().IsInteger32()); | 1747 DCHECK(instr->representation().IsInteger32()); |
1754 DCHECK(instr->left()->representation().Equals(instr->representation())); | 1748 DCHECK(instr->left()->representation().Equals(instr->representation())); |
1755 DCHECK(instr->right()->representation().Equals(instr->representation())); | 1749 DCHECK(instr->right()->representation().Equals(instr->representation())); |
1756 LOperand* dividend = UseRegisterAtStart(instr->left()); | 1750 LOperand* dividend = UseRegisterAtStart(instr->left()); |
1757 int32_t divisor = instr->right()->GetInteger32Constant(); | 1751 int32_t divisor = instr->right()->GetInteger32Constant(); |
1758 LInstruction* result = DefineAsRegister(new(zone()) LFlooringDivByPowerOf2I( | 1752 LInstruction* result = DefineAsRegister(new(zone()) LFlooringDivByPowerOf2I( |
1759 dividend, divisor)); | 1753 dividend, divisor)); |
1760 if ((instr->CheckFlag(HValue::kBailoutOnMinusZero) && divisor < 0) || | 1754 if ((instr->CheckFlag(HValue::kBailoutOnMinusZero) && divisor < 0) || |
1761 (instr->CheckFlag(HValue::kLeftCanBeMinInt) && divisor == -1)) { | 1755 (instr->CheckFlag(HValue::kLeftCanBeMinInt) && divisor == -1)) { |
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2723 LOperand* context = UseFixed(instr->context(), cp); | 2717 LOperand* context = UseFixed(instr->context(), cp); |
2724 LOperand* function = UseRegisterAtStart(instr->function()); | 2718 LOperand* function = UseRegisterAtStart(instr->function()); |
2725 LAllocateBlockContext* result = | 2719 LAllocateBlockContext* result = |
2726 new(zone()) LAllocateBlockContext(context, function); | 2720 new(zone()) LAllocateBlockContext(context, function); |
2727 return MarkAsCall(DefineFixed(result, cp), instr); | 2721 return MarkAsCall(DefineFixed(result, cp), instr); |
2728 } | 2722 } |
2729 | 2723 |
2730 | 2724 |
2731 } // namespace internal | 2725 } // namespace internal |
2732 } // namespace v8 | 2726 } // namespace v8 |
OLD | NEW |