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

Side by Side Diff: src/crankshaft/x87/lithium-x87.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/x87/lithium-codegen-x87.cc ('k') | src/crankshaft/x87/lithium-x87.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_X87_LITHIUM_X87_H_ 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_
6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 V(DoubleToSmi) \ 69 V(DoubleToSmi) \
70 V(Drop) \ 70 V(Drop) \
71 V(Dummy) \ 71 V(Dummy) \
72 V(DummyUse) \ 72 V(DummyUse) \
73 V(FastAllocate) \ 73 V(FastAllocate) \
74 V(FlooringDivByConstI) \ 74 V(FlooringDivByConstI) \
75 V(FlooringDivByPowerOf2I) \ 75 V(FlooringDivByPowerOf2I) \
76 V(FlooringDivI) \ 76 V(FlooringDivI) \
77 V(ForInCacheArray) \ 77 V(ForInCacheArray) \
78 V(ForInPrepareMap) \ 78 V(ForInPrepareMap) \
79 V(GetCachedArrayIndex) \
80 V(Goto) \ 79 V(Goto) \
81 V(HasCachedArrayIndexAndBranch) \
82 V(HasInPrototypeChainAndBranch) \ 80 V(HasInPrototypeChainAndBranch) \
83 V(HasInstanceTypeAndBranch) \ 81 V(HasInstanceTypeAndBranch) \
84 V(InnerAllocatedObject) \ 82 V(InnerAllocatedObject) \
85 V(InstructionGap) \ 83 V(InstructionGap) \
86 V(Integer32ToDouble) \ 84 V(Integer32ToDouble) \
87 V(InvokeFunction) \ 85 V(InvokeFunction) \
88 V(IsStringAndBranch) \ 86 V(IsStringAndBranch) \
89 V(IsSmiAndBranch) \ 87 V(IsSmiAndBranch) \
90 V(IsUndetectableAndBranch) \ 88 V(IsUndetectableAndBranch) \
91 V(Label) \ 89 V(Label) \
(...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after
1064 LOperand* value() { return inputs_[0]; } 1062 LOperand* value() { return inputs_[0]; }
1065 LOperand* temp() { return temps_[0]; } 1063 LOperand* temp() { return temps_[0]; }
1066 1064
1067 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, 1065 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch,
1068 "has-instance-type-and-branch") 1066 "has-instance-type-and-branch")
1069 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch) 1067 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch)
1070 1068
1071 void PrintDataTo(StringStream* stream) override; 1069 void PrintDataTo(StringStream* stream) override;
1072 }; 1070 };
1073 1071
1074
1075 class LGetCachedArrayIndex final : public LTemplateInstruction<1, 1, 0> {
1076 public:
1077 explicit LGetCachedArrayIndex(LOperand* value) {
1078 inputs_[0] = value;
1079 }
1080
1081 LOperand* value() { return inputs_[0]; }
1082
1083 DECLARE_CONCRETE_INSTRUCTION(GetCachedArrayIndex, "get-cached-array-index")
1084 DECLARE_HYDROGEN_ACCESSOR(GetCachedArrayIndex)
1085 };
1086
1087
1088 class LHasCachedArrayIndexAndBranch final : public LControlInstruction<1, 0> {
1089 public:
1090 explicit LHasCachedArrayIndexAndBranch(LOperand* value) {
1091 inputs_[0] = value;
1092 }
1093
1094 LOperand* value() { return inputs_[0]; }
1095
1096 DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndexAndBranch,
1097 "has-cached-array-index-and-branch")
1098
1099 void PrintDataTo(StringStream* stream) override;
1100 };
1101
1102
1103 class LClassOfTestAndBranch final : public LControlInstruction<1, 2> { 1072 class LClassOfTestAndBranch final : public LControlInstruction<1, 2> {
1104 public: 1073 public:
1105 LClassOfTestAndBranch(LOperand* value, LOperand* temp, LOperand* temp2) { 1074 LClassOfTestAndBranch(LOperand* value, LOperand* temp, LOperand* temp2) {
1106 inputs_[0] = value; 1075 inputs_[0] = value;
1107 temps_[0] = temp; 1076 temps_[0] = temp;
1108 temps_[1] = temp2; 1077 temps_[1] = temp2;
1109 } 1078 }
1110 1079
1111 LOperand* value() { return inputs_[0]; } 1080 LOperand* value() { return inputs_[0]; }
1112 LOperand* temp() { return temps_[0]; } 1081 LOperand* temp() { return temps_[0]; }
(...skipping 1417 matching lines...) Expand 10 before | Expand all | Expand 10 after
2530 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2499 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2531 }; 2500 };
2532 2501
2533 #undef DECLARE_HYDROGEN_ACCESSOR 2502 #undef DECLARE_HYDROGEN_ACCESSOR
2534 #undef DECLARE_CONCRETE_INSTRUCTION 2503 #undef DECLARE_CONCRETE_INSTRUCTION
2535 2504
2536 } // namespace internal 2505 } // namespace internal
2537 } // namespace v8 2506 } // namespace v8
2538 2507
2539 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ 2508 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_
OLDNEW
« no previous file with comments | « src/crankshaft/x87/lithium-codegen-x87.cc ('k') | src/crankshaft/x87/lithium-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698