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

Side by Side Diff: src/crankshaft/mips/lithium-mips.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/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/mips/lithium-mips.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 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 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_
6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 V(LazyBailout) \ 94 V(LazyBailout) \
95 V(LoadContextSlot) \ 95 V(LoadContextSlot) \
96 V(LoadRoot) \ 96 V(LoadRoot) \
97 V(LoadFieldByIndex) \ 97 V(LoadFieldByIndex) \
98 V(LoadFunctionPrototype) \ 98 V(LoadFunctionPrototype) \
99 V(LoadGlobalGeneric) \ 99 V(LoadGlobalGeneric) \
100 V(LoadKeyed) \ 100 V(LoadKeyed) \
101 V(LoadKeyedGeneric) \ 101 V(LoadKeyedGeneric) \
102 V(LoadNamedField) \ 102 V(LoadNamedField) \
103 V(LoadNamedGeneric) \ 103 V(LoadNamedGeneric) \
104 V(MapEnumLength) \
105 V(MathAbs) \ 104 V(MathAbs) \
106 V(MathExp) \ 105 V(MathExp) \
107 V(MathClz32) \ 106 V(MathClz32) \
108 V(MathFloor) \ 107 V(MathFloor) \
109 V(MathFround) \ 108 V(MathFround) \
110 V(MathLog) \ 109 V(MathLog) \
111 V(MathMinMax) \ 110 V(MathMinMax) \
112 V(MathPowHalf) \ 111 V(MathPowHalf) \
113 V(MathRound) \ 112 V(MathRound) \
114 V(MathSqrt) \ 113 V(MathSqrt) \
(...skipping 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after
1317 LOperand* value() { return inputs_[0]; } 1316 LOperand* value() { return inputs_[0]; }
1318 LOperand* temp() { return temps_[0]; } 1317 LOperand* temp() { return temps_[0]; }
1319 1318
1320 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch") 1319 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch")
1321 DECLARE_HYDROGEN_ACCESSOR(CompareMap) 1320 DECLARE_HYDROGEN_ACCESSOR(CompareMap)
1322 1321
1323 Handle<Map> map() const { return hydrogen()->map().handle(); } 1322 Handle<Map> map() const { return hydrogen()->map().handle(); }
1324 }; 1323 };
1325 1324
1326 1325
1327 class LMapEnumLength final : public LTemplateInstruction<1, 1, 0> {
1328 public:
1329 explicit LMapEnumLength(LOperand* value) {
1330 inputs_[0] = value;
1331 }
1332
1333 LOperand* value() { return inputs_[0]; }
1334
1335 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length")
1336 };
1337
1338
1339 class LSeqStringGetChar final : public LTemplateInstruction<1, 2, 0> { 1326 class LSeqStringGetChar final : public LTemplateInstruction<1, 2, 0> {
1340 public: 1327 public:
1341 LSeqStringGetChar(LOperand* string, LOperand* index) { 1328 LSeqStringGetChar(LOperand* string, LOperand* index) {
1342 inputs_[0] = string; 1329 inputs_[0] = string;
1343 inputs_[1] = index; 1330 inputs_[1] = index;
1344 } 1331 }
1345 1332
1346 LOperand* string() const { return inputs_[0]; } 1333 LOperand* string() const { return inputs_[0]; }
1347 LOperand* index() const { return inputs_[1]; } 1334 LOperand* index() const { return inputs_[1]; }
1348 1335
(...skipping 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after
2737 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2724 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2738 }; 2725 };
2739 2726
2740 #undef DECLARE_HYDROGEN_ACCESSOR 2727 #undef DECLARE_HYDROGEN_ACCESSOR
2741 #undef DECLARE_CONCRETE_INSTRUCTION 2728 #undef DECLARE_CONCRETE_INSTRUCTION
2742 2729
2743 } // namespace internal 2730 } // namespace internal
2744 } // namespace v8 2731 } // namespace v8
2745 2732
2746 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ 2733 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698