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

Side by Side Diff: src/crankshaft/ppc/lithium-ppc.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/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 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 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
1048 1046
1049 LOperand* value() { return inputs_[0]; } 1047 LOperand* value() { return inputs_[0]; }
1050 1048
1051 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, 1049 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch,
1052 "has-instance-type-and-branch") 1050 "has-instance-type-and-branch")
1053 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch) 1051 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch)
1054 1052
1055 void PrintDataTo(StringStream* stream) override; 1053 void PrintDataTo(StringStream* stream) override;
1056 }; 1054 };
1057 1055
1058
1059 class LGetCachedArrayIndex final : public LTemplateInstruction<1, 1, 0> {
1060 public:
1061 explicit LGetCachedArrayIndex(LOperand* value) { inputs_[0] = value; }
1062
1063 LOperand* value() { return inputs_[0]; }
1064
1065 DECLARE_CONCRETE_INSTRUCTION(GetCachedArrayIndex, "get-cached-array-index")
1066 DECLARE_HYDROGEN_ACCESSOR(GetCachedArrayIndex)
1067 };
1068
1069
1070 class LHasCachedArrayIndexAndBranch final : public LControlInstruction<1, 0> {
1071 public:
1072 explicit LHasCachedArrayIndexAndBranch(LOperand* value) {
1073 inputs_[0] = value;
1074 }
1075
1076 LOperand* value() { return inputs_[0]; }
1077
1078 DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndexAndBranch,
1079 "has-cached-array-index-and-branch")
1080 DECLARE_HYDROGEN_ACCESSOR(HasCachedArrayIndexAndBranch)
1081
1082 void PrintDataTo(StringStream* stream) override;
1083 };
1084
1085
1086 class LClassOfTestAndBranch final : public LControlInstruction<1, 1> { 1056 class LClassOfTestAndBranch final : public LControlInstruction<1, 1> {
1087 public: 1057 public:
1088 LClassOfTestAndBranch(LOperand* value, LOperand* temp) { 1058 LClassOfTestAndBranch(LOperand* value, LOperand* temp) {
1089 inputs_[0] = value; 1059 inputs_[0] = value;
1090 temps_[0] = temp; 1060 temps_[0] = temp;
1091 } 1061 }
1092 1062
1093 LOperand* value() { return inputs_[0]; } 1063 LOperand* value() { return inputs_[0]; }
1094 LOperand* temp() { return temps_[0]; } 1064 LOperand* temp() { return temps_[0]; }
1095 1065
(...skipping 1339 matching lines...) Expand 10 before | Expand all | Expand 10 after
2435 2405
2436 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2406 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2437 }; 2407 };
2438 2408
2439 #undef DECLARE_HYDROGEN_ACCESSOR 2409 #undef DECLARE_HYDROGEN_ACCESSOR
2440 #undef DECLARE_CONCRETE_INSTRUCTION 2410 #undef DECLARE_CONCRETE_INSTRUCTION
2441 } // namespace internal 2411 } // namespace internal
2442 } // namespace v8 2412 } // namespace v8
2443 2413
2444 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ 2414 #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