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

Side by Side Diff: src/crankshaft/ppc/lithium-ppc.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/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/ppc/lithium-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC_LITHIUM_PPC_H_ 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_
6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_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(MathClz32) \ 105 V(MathClz32) \
107 V(MathExp) \ 106 V(MathExp) \
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 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after
1307 LOperand* value() { return inputs_[0]; } 1306 LOperand* value() { return inputs_[0]; }
1308 LOperand* temp() { return temps_[0]; } 1307 LOperand* temp() { return temps_[0]; }
1309 1308
1310 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch") 1309 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch")
1311 DECLARE_HYDROGEN_ACCESSOR(CompareMap) 1310 DECLARE_HYDROGEN_ACCESSOR(CompareMap)
1312 1311
1313 Handle<Map> map() const { return hydrogen()->map().handle(); } 1312 Handle<Map> map() const { return hydrogen()->map().handle(); }
1314 }; 1313 };
1315 1314
1316 1315
1317 class LMapEnumLength final : public LTemplateInstruction<1, 1, 0> {
1318 public:
1319 explicit LMapEnumLength(LOperand* value) { inputs_[0] = value; }
1320
1321 LOperand* value() { return inputs_[0]; }
1322
1323 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length")
1324 };
1325
1326
1327 class LSeqStringGetChar final : public LTemplateInstruction<1, 2, 0> { 1316 class LSeqStringGetChar final : public LTemplateInstruction<1, 2, 0> {
1328 public: 1317 public:
1329 LSeqStringGetChar(LOperand* string, LOperand* index) { 1318 LSeqStringGetChar(LOperand* string, LOperand* index) {
1330 inputs_[0] = string; 1319 inputs_[0] = string;
1331 inputs_[1] = index; 1320 inputs_[1] = index;
1332 } 1321 }
1333 1322
1334 LOperand* string() const { return inputs_[0]; } 1323 LOperand* string() const { return inputs_[0]; }
1335 LOperand* index() const { return inputs_[1]; } 1324 LOperand* index() const { return inputs_[1]; }
1336 1325
(...skipping 1321 matching lines...) Expand 10 before | Expand all | Expand 10 after
2658 2647
2659 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2648 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2660 }; 2649 };
2661 2650
2662 #undef DECLARE_HYDROGEN_ACCESSOR 2651 #undef DECLARE_HYDROGEN_ACCESSOR
2663 #undef DECLARE_CONCRETE_INSTRUCTION 2652 #undef DECLARE_CONCRETE_INSTRUCTION
2664 } // namespace internal 2653 } // namespace internal
2665 } // namespace v8 2654 } // namespace v8
2666 2655
2667 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ 2656 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/ppc/lithium-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698