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

Side by Side Diff: src/crankshaft/mips64/lithium-mips64.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
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_MIPS64_LITHIUM_MIPS_H_ 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 6 #define V8_CRANKSHAFT_MIPS64_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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 V(DoubleToSmi) \ 66 V(DoubleToSmi) \
67 V(Drop) \ 67 V(Drop) \
68 V(Dummy) \ 68 V(Dummy) \
69 V(DummyUse) \ 69 V(DummyUse) \
70 V(FastAllocate) \ 70 V(FastAllocate) \
71 V(FlooringDivByConstI) \ 71 V(FlooringDivByConstI) \
72 V(FlooringDivByPowerOf2I) \ 72 V(FlooringDivByPowerOf2I) \
73 V(FlooringDivI) \ 73 V(FlooringDivI) \
74 V(ForInCacheArray) \ 74 V(ForInCacheArray) \
75 V(ForInPrepareMap) \ 75 V(ForInPrepareMap) \
76 V(GetCachedArrayIndex) \
77 V(Goto) \ 76 V(Goto) \
78 V(HasCachedArrayIndexAndBranch) \
79 V(HasInPrototypeChainAndBranch) \ 77 V(HasInPrototypeChainAndBranch) \
80 V(HasInstanceTypeAndBranch) \ 78 V(HasInstanceTypeAndBranch) \
81 V(InnerAllocatedObject) \ 79 V(InnerAllocatedObject) \
82 V(InstructionGap) \ 80 V(InstructionGap) \
83 V(Integer32ToDouble) \ 81 V(Integer32ToDouble) \
84 V(InvokeFunction) \ 82 V(InvokeFunction) \
85 V(IsStringAndBranch) \ 83 V(IsStringAndBranch) \
86 V(IsSmiAndBranch) \ 84 V(IsSmiAndBranch) \
87 V(IsUndetectableAndBranch) \ 85 V(IsUndetectableAndBranch) \
88 V(Label) \ 86 V(Label) \
(...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 1055
1058 LOperand* value() { return inputs_[0]; } 1056 LOperand* value() { return inputs_[0]; }
1059 1057
1060 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, 1058 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch,
1061 "has-instance-type-and-branch") 1059 "has-instance-type-and-branch")
1062 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch) 1060 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch)
1063 1061
1064 void PrintDataTo(StringStream* stream) override; 1062 void PrintDataTo(StringStream* stream) override;
1065 }; 1063 };
1066 1064
1067
1068 class LGetCachedArrayIndex final : public LTemplateInstruction<1, 1, 0> {
1069 public:
1070 explicit LGetCachedArrayIndex(LOperand* value) {
1071 inputs_[0] = value;
1072 }
1073
1074 LOperand* value() { return inputs_[0]; }
1075
1076 DECLARE_CONCRETE_INSTRUCTION(GetCachedArrayIndex, "get-cached-array-index")
1077 DECLARE_HYDROGEN_ACCESSOR(GetCachedArrayIndex)
1078 };
1079
1080
1081 class LHasCachedArrayIndexAndBranch final : public LControlInstruction<1, 0> {
1082 public:
1083 explicit LHasCachedArrayIndexAndBranch(LOperand* value) {
1084 inputs_[0] = value;
1085 }
1086
1087 LOperand* value() { return inputs_[0]; }
1088
1089 DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndexAndBranch,
1090 "has-cached-array-index-and-branch")
1091 DECLARE_HYDROGEN_ACCESSOR(HasCachedArrayIndexAndBranch)
1092
1093 void PrintDataTo(StringStream* stream) override;
1094 };
1095
1096
1097 class LClassOfTestAndBranch final : public LControlInstruction<1, 1> { 1065 class LClassOfTestAndBranch final : public LControlInstruction<1, 1> {
1098 public: 1066 public:
1099 LClassOfTestAndBranch(LOperand* value, LOperand* temp) { 1067 LClassOfTestAndBranch(LOperand* value, LOperand* temp) {
1100 inputs_[0] = value; 1068 inputs_[0] = value;
1101 temps_[0] = temp; 1069 temps_[0] = temp;
1102 } 1070 }
1103 1071
1104 LOperand* value() { return inputs_[0]; } 1072 LOperand* value() { return inputs_[0]; }
1105 LOperand* temp() { return temps_[0]; } 1073 LOperand* temp() { return temps_[0]; }
1106 1074
(...skipping 1412 matching lines...) Expand 10 before | Expand all | Expand 10 after
2519 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2487 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2520 }; 2488 };
2521 2489
2522 #undef DECLARE_HYDROGEN_ACCESSOR 2490 #undef DECLARE_HYDROGEN_ACCESSOR
2523 #undef DECLARE_CONCRETE_INSTRUCTION 2491 #undef DECLARE_CONCRETE_INSTRUCTION
2524 2492
2525 } // namespace internal 2493 } // namespace internal
2526 } // namespace v8 2494 } // namespace v8
2527 2495
2528 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 2496 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/crankshaft/mips64/lithium-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698