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

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

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/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/arm64/lithium-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 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ 5 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_
6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_
7 7
8 #include "src/crankshaft/hydrogen.h" 8 #include "src/crankshaft/hydrogen.h"
9 #include "src/crankshaft/lithium.h" 9 #include "src/crankshaft/lithium.h"
10 #include "src/crankshaft/lithium-allocator.h" 10 #include "src/crankshaft/lithium-allocator.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 V(LoadFieldByIndex) \ 99 V(LoadFieldByIndex) \
100 V(LoadFunctionPrototype) \ 100 V(LoadFunctionPrototype) \
101 V(LoadGlobalGeneric) \ 101 V(LoadGlobalGeneric) \
102 V(LoadKeyedExternal) \ 102 V(LoadKeyedExternal) \
103 V(LoadKeyedFixed) \ 103 V(LoadKeyedFixed) \
104 V(LoadKeyedFixedDouble) \ 104 V(LoadKeyedFixedDouble) \
105 V(LoadKeyedGeneric) \ 105 V(LoadKeyedGeneric) \
106 V(LoadNamedField) \ 106 V(LoadNamedField) \
107 V(LoadNamedGeneric) \ 107 V(LoadNamedGeneric) \
108 V(LoadRoot) \ 108 V(LoadRoot) \
109 V(MapEnumLength) \
110 V(MathAbs) \ 109 V(MathAbs) \
111 V(MathAbsTagged) \ 110 V(MathAbsTagged) \
112 V(MathClz32) \ 111 V(MathClz32) \
113 V(MathExp) \ 112 V(MathExp) \
114 V(MathFloorD) \ 113 V(MathFloorD) \
115 V(MathFloorI) \ 114 V(MathFloorI) \
116 V(MathFround) \ 115 V(MathFround) \
117 V(MathLog) \ 116 V(MathLog) \
118 V(MathMinMax) \ 117 V(MathMinMax) \
119 V(MathPowHalf) \ 118 V(MathPowHalf) \
(...skipping 1664 matching lines...) Expand 10 before | Expand all | Expand 10 after
1784 1783
1785 class LLoadRoot final : public LTemplateInstruction<1, 0, 0> { 1784 class LLoadRoot final : public LTemplateInstruction<1, 0, 0> {
1786 public: 1785 public:
1787 DECLARE_CONCRETE_INSTRUCTION(LoadRoot, "load-root") 1786 DECLARE_CONCRETE_INSTRUCTION(LoadRoot, "load-root")
1788 DECLARE_HYDROGEN_ACCESSOR(LoadRoot) 1787 DECLARE_HYDROGEN_ACCESSOR(LoadRoot)
1789 1788
1790 Heap::RootListIndex index() const { return hydrogen()->index(); } 1789 Heap::RootListIndex index() const { return hydrogen()->index(); }
1791 }; 1790 };
1792 1791
1793 1792
1794 class LMapEnumLength final : public LTemplateInstruction<1, 1, 0> {
1795 public:
1796 explicit LMapEnumLength(LOperand* value) {
1797 inputs_[0] = value;
1798 }
1799
1800 LOperand* value() { return inputs_[0]; }
1801
1802 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length")
1803 };
1804
1805
1806 template<int T> 1793 template<int T>
1807 class LUnaryMathOperation : public LTemplateInstruction<1, 1, T> { 1794 class LUnaryMathOperation : public LTemplateInstruction<1, 1, T> {
1808 public: 1795 public:
1809 explicit LUnaryMathOperation(LOperand* value) { 1796 explicit LUnaryMathOperation(LOperand* value) {
1810 this->inputs_[0] = value; 1797 this->inputs_[0] = value;
1811 } 1798 }
1812 1799
1813 LOperand* value() { return this->inputs_[0]; } 1800 LOperand* value() { return this->inputs_[0]; }
1814 BuiltinFunctionId op() const { return this->hydrogen()->op(); } 1801 BuiltinFunctionId op() const { return this->hydrogen()->op(); }
1815 1802
(...skipping 1335 matching lines...) Expand 10 before | Expand all | Expand 10 after
3151 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 3138 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
3152 }; 3139 };
3153 3140
3154 #undef DECLARE_HYDROGEN_ACCESSOR 3141 #undef DECLARE_HYDROGEN_ACCESSOR
3155 #undef DECLARE_CONCRETE_INSTRUCTION 3142 #undef DECLARE_CONCRETE_INSTRUCTION
3156 3143
3157 } // namespace internal 3144 } // namespace internal
3158 } // namespace v8 3145 } // namespace v8
3159 3146
3160 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ 3147 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/arm64/lithium-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698