OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 V(HasCachedArrayIndexAndBranch) \ | 101 V(HasCachedArrayIndexAndBranch) \ |
102 V(HasInstanceType) \ | 102 V(HasInstanceType) \ |
103 V(HasInstanceTypeAndBranch) \ | 103 V(HasInstanceTypeAndBranch) \ |
104 V(In) \ | 104 V(In) \ |
105 V(InstanceOf) \ | 105 V(InstanceOf) \ |
106 V(InstanceOfAndBranch) \ | 106 V(InstanceOfAndBranch) \ |
107 V(InstanceOfKnownGlobal) \ | 107 V(InstanceOfKnownGlobal) \ |
108 V(InstructionGap) \ | 108 V(InstructionGap) \ |
109 V(Integer32ToDouble) \ | 109 V(Integer32ToDouble) \ |
110 V(InvokeFunction) \ | 110 V(InvokeFunction) \ |
| 111 V(IsConstructCall) \ |
| 112 V(IsConstructCallAndBranch) \ |
111 V(IsNull) \ | 113 V(IsNull) \ |
112 V(IsNullAndBranch) \ | 114 V(IsNullAndBranch) \ |
113 V(IsObject) \ | 115 V(IsObject) \ |
114 V(IsObjectAndBranch) \ | 116 V(IsObjectAndBranch) \ |
115 V(IsSmi) \ | 117 V(IsSmi) \ |
116 V(IsSmiAndBranch) \ | 118 V(IsSmiAndBranch) \ |
| 119 V(IsUndetectable) \ |
| 120 V(IsUndetectableAndBranch) \ |
117 V(JSArrayLength) \ | 121 V(JSArrayLength) \ |
118 V(Label) \ | 122 V(Label) \ |
119 V(LazyBailout) \ | 123 V(LazyBailout) \ |
120 V(LoadContextSlot) \ | 124 V(LoadContextSlot) \ |
121 V(LoadElements) \ | 125 V(LoadElements) \ |
122 V(LoadExternalArrayPointer) \ | 126 V(LoadExternalArrayPointer) \ |
| 127 V(LoadFunctionPrototype) \ |
123 V(LoadGlobalCell) \ | 128 V(LoadGlobalCell) \ |
124 V(LoadGlobalGeneric) \ | 129 V(LoadGlobalGeneric) \ |
125 V(LoadKeyedFastElement) \ | 130 V(LoadKeyedFastElement) \ |
126 V(LoadKeyedGeneric) \ | 131 V(LoadKeyedGeneric) \ |
127 V(LoadKeyedSpecializedArrayElement) \ | 132 V(LoadKeyedSpecializedArrayElement) \ |
128 V(LoadNamedField) \ | 133 V(LoadNamedField) \ |
129 V(LoadNamedFieldPolymorphic) \ | 134 V(LoadNamedFieldPolymorphic) \ |
130 V(LoadNamedGeneric) \ | 135 V(LoadNamedGeneric) \ |
131 V(LoadFunctionPrototype) \ | |
132 V(ModI) \ | 136 V(ModI) \ |
133 V(MulI) \ | 137 V(MulI) \ |
134 V(NumberTagD) \ | 138 V(NumberTagD) \ |
135 V(NumberTagI) \ | 139 V(NumberTagI) \ |
136 V(NumberUntagD) \ | 140 V(NumberUntagD) \ |
137 V(ObjectLiteral) \ | 141 V(ObjectLiteral) \ |
138 V(OsrEntry) \ | 142 V(OsrEntry) \ |
139 V(OuterContext) \ | 143 V(OuterContext) \ |
140 V(Parameter) \ | 144 V(Parameter) \ |
141 V(Power) \ | 145 V(Power) \ |
(...skipping 11 matching lines...) Expand all Loading... |
153 V(StoreKeyedGeneric) \ | 157 V(StoreKeyedGeneric) \ |
154 V(StoreKeyedSpecializedArrayElement) \ | 158 V(StoreKeyedSpecializedArrayElement) \ |
155 V(StoreNamedField) \ | 159 V(StoreNamedField) \ |
156 V(StoreNamedGeneric) \ | 160 V(StoreNamedGeneric) \ |
157 V(StringAdd) \ | 161 V(StringAdd) \ |
158 V(StringCharCodeAt) \ | 162 V(StringCharCodeAt) \ |
159 V(StringCharFromCode) \ | 163 V(StringCharFromCode) \ |
160 V(StringLength) \ | 164 V(StringLength) \ |
161 V(SubI) \ | 165 V(SubI) \ |
162 V(TaggedToI) \ | 166 V(TaggedToI) \ |
| 167 V(Throw) \ |
163 V(ToFastProperties) \ | 168 V(ToFastProperties) \ |
164 V(Throw) \ | |
165 V(Typeof) \ | 169 V(Typeof) \ |
166 V(TypeofIs) \ | 170 V(TypeofIs) \ |
167 V(TypeofIsAndBranch) \ | 171 V(TypeofIsAndBranch) \ |
168 V(IsConstructCall) \ | |
169 V(IsConstructCallAndBranch) \ | |
170 V(UnaryMathOperation) \ | 172 V(UnaryMathOperation) \ |
171 V(UnknownOSRValue) \ | 173 V(UnknownOSRValue) \ |
172 V(ValueOf) | 174 V(ValueOf) |
173 | 175 |
174 | 176 |
175 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ | 177 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
176 virtual Opcode opcode() const { return LInstruction::k##type; } \ | 178 virtual Opcode opcode() const { return LInstruction::k##type; } \ |
177 virtual void CompileToNative(LCodeGen* generator); \ | 179 virtual void CompileToNative(LCodeGen* generator); \ |
178 virtual const char* Mnemonic() const { return mnemonic; } \ | 180 virtual const char* Mnemonic() const { return mnemonic; } \ |
179 static L##type* cast(LInstruction* instr) { \ | 181 static L##type* cast(LInstruction* instr) { \ |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
731 explicit LIsSmiAndBranch(LOperand* value) { | 733 explicit LIsSmiAndBranch(LOperand* value) { |
732 inputs_[0] = value; | 734 inputs_[0] = value; |
733 } | 735 } |
734 | 736 |
735 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch") | 737 DECLARE_CONCRETE_INSTRUCTION(IsSmiAndBranch, "is-smi-and-branch") |
736 | 738 |
737 virtual void PrintDataTo(StringStream* stream); | 739 virtual void PrintDataTo(StringStream* stream); |
738 }; | 740 }; |
739 | 741 |
740 | 742 |
| 743 class LIsUndetectable: public LTemplateInstruction<1, 1, 0> { |
| 744 public: |
| 745 explicit LIsUndetectable(LOperand* value) { |
| 746 inputs_[0] = value; |
| 747 } |
| 748 |
| 749 DECLARE_CONCRETE_INSTRUCTION(IsUndetectable, "is-undetectable") |
| 750 DECLARE_HYDROGEN_ACCESSOR(IsUndetectable) |
| 751 }; |
| 752 |
| 753 |
| 754 class LIsUndetectableAndBranch: public LControlInstruction<1, 1> { |
| 755 public: |
| 756 explicit LIsUndetectableAndBranch(LOperand* value, LOperand* temp) { |
| 757 inputs_[0] = value; |
| 758 temps_[0] = temp; |
| 759 } |
| 760 |
| 761 DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch, |
| 762 "is-undetectable-and-branch") |
| 763 |
| 764 virtual void PrintDataTo(StringStream* stream); |
| 765 }; |
| 766 |
| 767 |
741 class LHasInstanceType: public LTemplateInstruction<1, 1, 0> { | 768 class LHasInstanceType: public LTemplateInstruction<1, 1, 0> { |
742 public: | 769 public: |
743 explicit LHasInstanceType(LOperand* value) { | 770 explicit LHasInstanceType(LOperand* value) { |
744 inputs_[0] = value; | 771 inputs_[0] = value; |
745 } | 772 } |
746 | 773 |
747 DECLARE_CONCRETE_INSTRUCTION(HasInstanceType, "has-instance-type") | 774 DECLARE_CONCRETE_INSTRUCTION(HasInstanceType, "has-instance-type") |
748 DECLARE_HYDROGEN_ACCESSOR(HasInstanceType) | 775 DECLARE_HYDROGEN_ACCESSOR(HasInstanceType) |
749 }; | 776 }; |
750 | 777 |
(...skipping 1478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2229 | 2256 |
2230 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2257 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2231 }; | 2258 }; |
2232 | 2259 |
2233 #undef DECLARE_HYDROGEN_ACCESSOR | 2260 #undef DECLARE_HYDROGEN_ACCESSOR |
2234 #undef DECLARE_CONCRETE_INSTRUCTION | 2261 #undef DECLARE_CONCRETE_INSTRUCTION |
2235 | 2262 |
2236 } } // namespace v8::int | 2263 } } // namespace v8::int |
2237 | 2264 |
2238 #endif // V8_X64_LITHIUM_X64_H_ | 2265 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |