OLD | NEW |
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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS_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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1039 | 1037 |
1040 LOperand* value() { return inputs_[0]; } | 1038 LOperand* value() { return inputs_[0]; } |
1041 | 1039 |
1042 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, | 1040 DECLARE_CONCRETE_INSTRUCTION(HasInstanceTypeAndBranch, |
1043 "has-instance-type-and-branch") | 1041 "has-instance-type-and-branch") |
1044 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch) | 1042 DECLARE_HYDROGEN_ACCESSOR(HasInstanceTypeAndBranch) |
1045 | 1043 |
1046 void PrintDataTo(StringStream* stream) override; | 1044 void PrintDataTo(StringStream* stream) override; |
1047 }; | 1045 }; |
1048 | 1046 |
1049 | |
1050 class LGetCachedArrayIndex final : public LTemplateInstruction<1, 1, 0> { | |
1051 public: | |
1052 explicit LGetCachedArrayIndex(LOperand* value) { | |
1053 inputs_[0] = value; | |
1054 } | |
1055 | |
1056 LOperand* value() { return inputs_[0]; } | |
1057 | |
1058 DECLARE_CONCRETE_INSTRUCTION(GetCachedArrayIndex, "get-cached-array-index") | |
1059 DECLARE_HYDROGEN_ACCESSOR(GetCachedArrayIndex) | |
1060 }; | |
1061 | |
1062 | |
1063 class LHasCachedArrayIndexAndBranch final : public LControlInstruction<1, 0> { | |
1064 public: | |
1065 explicit LHasCachedArrayIndexAndBranch(LOperand* value) { | |
1066 inputs_[0] = value; | |
1067 } | |
1068 | |
1069 LOperand* value() { return inputs_[0]; } | |
1070 | |
1071 DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndexAndBranch, | |
1072 "has-cached-array-index-and-branch") | |
1073 DECLARE_HYDROGEN_ACCESSOR(HasCachedArrayIndexAndBranch) | |
1074 | |
1075 void PrintDataTo(StringStream* stream) override; | |
1076 }; | |
1077 | |
1078 | |
1079 class LClassOfTestAndBranch final : public LControlInstruction<1, 1> { | 1047 class LClassOfTestAndBranch final : public LControlInstruction<1, 1> { |
1080 public: | 1048 public: |
1081 LClassOfTestAndBranch(LOperand* value, LOperand* temp) { | 1049 LClassOfTestAndBranch(LOperand* value, LOperand* temp) { |
1082 inputs_[0] = value; | 1050 inputs_[0] = value; |
1083 temps_[0] = temp; | 1051 temps_[0] = temp; |
1084 } | 1052 } |
1085 | 1053 |
1086 LOperand* value() { return inputs_[0]; } | 1054 LOperand* value() { return inputs_[0]; } |
1087 LOperand* temp() { return temps_[0]; } | 1055 LOperand* temp() { return temps_[0]; } |
1088 | 1056 |
(...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2473 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2441 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2474 }; | 2442 }; |
2475 | 2443 |
2476 #undef DECLARE_HYDROGEN_ACCESSOR | 2444 #undef DECLARE_HYDROGEN_ACCESSOR |
2477 #undef DECLARE_CONCRETE_INSTRUCTION | 2445 #undef DECLARE_CONCRETE_INSTRUCTION |
2478 | 2446 |
2479 } // namespace internal | 2447 } // namespace internal |
2480 } // namespace v8 | 2448 } // namespace v8 |
2481 | 2449 |
2482 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 2450 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |