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

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

Issue 2427673004: [intrinsics] Nuke %HasCachedArrayIndex and %GetCachedArrayIndex. (Closed)
Patch Set: Created 4 years, 2 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/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/s390/lithium-s390.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_S390_LITHIUM_S390_H_ 5 #ifndef V8_CRANKSHAFT_S390_LITHIUM_S390_H_
6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_H_ 6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 V(DoubleToSmi) \ 64 V(DoubleToSmi) \
65 V(Drop) \ 65 V(Drop) \
66 V(Dummy) \ 66 V(Dummy) \
67 V(DummyUse) \ 67 V(DummyUse) \
68 V(FastAllocate) \ 68 V(FastAllocate) \
69 V(FlooringDivByConstI) \ 69 V(FlooringDivByConstI) \
70 V(FlooringDivByPowerOf2I) \ 70 V(FlooringDivByPowerOf2I) \
71 V(FlooringDivI) \ 71 V(FlooringDivI) \
72 V(ForInCacheArray) \ 72 V(ForInCacheArray) \
73 V(ForInPrepareMap) \ 73 V(ForInPrepareMap) \
74 V(GetCachedArrayIndex) \
75 V(Goto) \ 74 V(Goto) \
76 V(HasCachedArrayIndexAndBranch) \
77 V(HasInPrototypeChainAndBranch) \ 75 V(HasInPrototypeChainAndBranch) \
78 V(HasInstanceTypeAndBranch) \ 76 V(HasInstanceTypeAndBranch) \
79 V(InnerAllocatedObject) \ 77 V(InnerAllocatedObject) \
80 V(InstructionGap) \ 78 V(InstructionGap) \
81 V(Integer32ToDouble) \ 79 V(Integer32ToDouble) \
82 V(InvokeFunction) \ 80 V(InvokeFunction) \
83 V(IsStringAndBranch) \ 81 V(IsStringAndBranch) \
84 V(IsSmiAndBranch) \ 82 V(IsSmiAndBranch) \
85 V(IsUndetectableAndBranch) \ 83 V(IsUndetectableAndBranch) \
86 V(Label) \ 84 V(Label) \
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after
972 970
973 LOperand* value() { return inputs_[0]; } 971 LOperand* value() { return inputs_[0]; }
974 972
975 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, 973 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch,
976 "has-instance-type-and-branch") 974 "has-instance-type-and-branch")
977 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch) 975 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch)
978 976
979 void PrintDataTo(StringStream* stream) override; 977 void PrintDataTo(StringStream* stream) override;
980 }; 978 };
981 979
982 class LGetCachedArrayIndex final : public LTemplateInstruction<1, 1, 0> {
983 public:
984 explicit LGetCachedArrayIndex(LOperand* value) { inputs_[0] = value; }
985
986 LOperand* value() { return inputs_[0]; }
987
988 DECLARE_CONCRETE_INSTRUCTION(GetCachedArrayIndex, "get-cached-array-index")
989 DECLARE_HYDROGEN_ACCESSOR(GetCachedArrayIndex)
990 };
991
992 class LHasCachedArrayIndexAndBranch final : public LControlInstruction<1, 0> {
993 public:
994 explicit LHasCachedArrayIndexAndBranch(LOperand* value) {
995 inputs_[0] = value;
996 }
997
998 LOperand* value() { return inputs_[0]; }
999
1000 DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndexAndBranch,
1001 "has-cached-array-index-and-branch")
1002 DECLARE_HYDROGEN_ACCESSOR(HasCachedArrayIndexAndBranch)
1003
1004 void PrintDataTo(StringStream* stream) override;
1005 };
1006
1007 class LClassOfTestAndBranch final : public LControlInstruction<1, 1> { 980 class LClassOfTestAndBranch final : public LControlInstruction<1, 1> {
1008 public: 981 public:
1009 LClassOfTestAndBranch(LOperand* value, LOperand* temp) { 982 LClassOfTestAndBranch(LOperand* value, LOperand* temp) {
1010 inputs_[0] = value; 983 inputs_[0] = value;
1011 temps_[0] = temp; 984 temps_[0] = temp;
1012 } 985 }
1013 986
1014 LOperand* value() { return inputs_[0]; } 987 LOperand* value() { return inputs_[0]; }
1015 LOperand* temp() { return temps_[0]; } 988 LOperand* temp() { return temps_[0]; }
1016 989
(...skipping 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after
2280 2253
2281 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2254 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2282 }; 2255 };
2283 2256
2284 #undef DECLARE_HYDROGEN_ACCESSOR 2257 #undef DECLARE_HYDROGEN_ACCESSOR
2285 #undef DECLARE_CONCRETE_INSTRUCTION 2258 #undef DECLARE_CONCRETE_INSTRUCTION
2286 } // namespace internal 2259 } // namespace internal
2287 } // namespace v8 2260 } // namespace v8
2288 2261
2289 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ 2262 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_
OLDNEW
« no previous file with comments | « src/crankshaft/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/s390/lithium-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698