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_HYDROGEN_INSTRUCTIONS_H_ | 5 #ifndef V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
6 #define V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 6 #define V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
7 | 7 |
8 #include <cstring> | 8 #include <cstring> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 V(Bitwise) \ | 57 V(Bitwise) \ |
58 V(BlockEntry) \ | 58 V(BlockEntry) \ |
59 V(BoundsCheck) \ | 59 V(BoundsCheck) \ |
60 V(BoundsCheckBaseIndexInformation) \ | 60 V(BoundsCheckBaseIndexInformation) \ |
61 V(Branch) \ | 61 V(Branch) \ |
62 V(CallWithDescriptor) \ | 62 V(CallWithDescriptor) \ |
63 V(CallJSFunction) \ | 63 V(CallJSFunction) \ |
64 V(CallFunction) \ | 64 V(CallFunction) \ |
65 V(CallNewArray) \ | 65 V(CallNewArray) \ |
66 V(CallRuntime) \ | 66 V(CallRuntime) \ |
67 V(CallStub) \ | |
68 V(CapturedObject) \ | 67 V(CapturedObject) \ |
69 V(Change) \ | 68 V(Change) \ |
70 V(CheckArrayBufferNotNeutered) \ | 69 V(CheckArrayBufferNotNeutered) \ |
71 V(CheckHeapObject) \ | 70 V(CheckHeapObject) \ |
72 V(CheckInstanceType) \ | 71 V(CheckInstanceType) \ |
73 V(CheckMaps) \ | 72 V(CheckMaps) \ |
74 V(CheckMapValue) \ | 73 V(CheckMapValue) \ |
75 V(CheckSmi) \ | 74 V(CheckSmi) \ |
76 V(CheckValue) \ | 75 V(CheckValue) \ |
77 V(ClampToUint8) \ | 76 V(ClampToUint8) \ |
(...skipping 5150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5228 : index_(index), | 5227 : index_(index), |
5229 kind_(kind) { | 5228 kind_(kind) { |
5230 set_representation(r); | 5229 set_representation(r); |
5231 } | 5230 } |
5232 | 5231 |
5233 unsigned index_; | 5232 unsigned index_; |
5234 ParameterKind kind_; | 5233 ParameterKind kind_; |
5235 }; | 5234 }; |
5236 | 5235 |
5237 | 5236 |
5238 class HCallStub final : public HUnaryCall { | |
5239 public: | |
5240 DECLARE_INSTRUCTION_WITH_CONTEXT_FACTORY_P2(HCallStub, CodeStub::Major, int); | |
5241 CodeStub::Major major_key() { return major_key_; } | |
5242 | |
5243 HValue* context() { return value(); } | |
5244 | |
5245 std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT | |
5246 | |
5247 DECLARE_CONCRETE_INSTRUCTION(CallStub) | |
5248 | |
5249 private: | |
5250 HCallStub(HValue* context, CodeStub::Major major_key, int argument_count) | |
5251 : HUnaryCall(context, argument_count), | |
5252 major_key_(major_key) { | |
5253 } | |
5254 | |
5255 CodeStub::Major major_key_; | |
5256 }; | |
5257 | |
5258 | |
5259 class HUnknownOSRValue final : public HTemplateInstruction<0> { | 5237 class HUnknownOSRValue final : public HTemplateInstruction<0> { |
5260 public: | 5238 public: |
5261 DECLARE_INSTRUCTION_FACTORY_P2(HUnknownOSRValue, HEnvironment*, int); | 5239 DECLARE_INSTRUCTION_FACTORY_P2(HUnknownOSRValue, HEnvironment*, int); |
5262 | 5240 |
5263 std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT | 5241 std::ostream& PrintDataTo(std::ostream& os) const override; // NOLINT |
5264 | 5242 |
5265 Representation RequiredInputRepresentation(int index) override { | 5243 Representation RequiredInputRepresentation(int index) override { |
5266 return Representation::None(); | 5244 return Representation::None(); |
5267 } | 5245 } |
5268 | 5246 |
(...skipping 2452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7721 | 7699 |
7722 | 7700 |
7723 | 7701 |
7724 #undef DECLARE_INSTRUCTION | 7702 #undef DECLARE_INSTRUCTION |
7725 #undef DECLARE_CONCRETE_INSTRUCTION | 7703 #undef DECLARE_CONCRETE_INSTRUCTION |
7726 | 7704 |
7727 } // namespace internal | 7705 } // namespace internal |
7728 } // namespace v8 | 7706 } // namespace v8 |
7729 | 7707 |
7730 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 7708 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |