Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/crankshaft/arm64/lithium-arm64.cc

Issue 1614943002: [crankshaft] Remove the useless HMapEnumLength instruction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Put NoObservableSideEffectsScope there Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/crankshaft/arm64/lithium-arm64.h ('k') | src/crankshaft/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/crankshaft/arm64/lithium-arm64.h ('k') | src/crankshaft/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698