| 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 3078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3089 | 3089 |
| 3090 class HConstant final : public HTemplateInstruction<0> { | 3090 class HConstant final : public HTemplateInstruction<0> { |
| 3091 public: | 3091 public: |
| 3092 enum Special { kHoleNaN }; | 3092 enum Special { kHoleNaN }; |
| 3093 | 3093 |
| 3094 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, Special); | 3094 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, Special); |
| 3095 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, int32_t); | 3095 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, int32_t); |
| 3096 DECLARE_INSTRUCTION_FACTORY_P2(HConstant, int32_t, Representation); | 3096 DECLARE_INSTRUCTION_FACTORY_P2(HConstant, int32_t, Representation); |
| 3097 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, double); | 3097 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, double); |
| 3098 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, Handle<Object>); | 3098 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, Handle<Object>); |
| 3099 DECLARE_INSTRUCTION_FACTORY_P2(HConstant, Handle<Object>, Representation); | |
| 3100 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, ExternalReference); | 3099 DECLARE_INSTRUCTION_FACTORY_P1(HConstant, ExternalReference); |
| 3101 | 3100 |
| 3102 static HConstant* CreateAndInsertAfter(Isolate* isolate, Zone* zone, | 3101 static HConstant* CreateAndInsertAfter(Isolate* isolate, Zone* zone, |
| 3103 HValue* context, int32_t value, | 3102 HValue* context, int32_t value, |
| 3104 Representation representation, | 3103 Representation representation, |
| 3105 HInstruction* instruction) { | 3104 HInstruction* instruction) { |
| 3106 return instruction->Append( | 3105 return instruction->Append( |
| 3107 HConstant::New(isolate, zone, context, value, representation)); | 3106 HConstant::New(isolate, zone, context, value, representation)); |
| 3108 } | 3107 } |
| 3109 | 3108 |
| (...skipping 3778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6888 bool IsDeletable() const override { return true; } | 6887 bool IsDeletable() const override { return true; } |
| 6889 }; | 6888 }; |
| 6890 | 6889 |
| 6891 #undef DECLARE_INSTRUCTION | 6890 #undef DECLARE_INSTRUCTION |
| 6892 #undef DECLARE_CONCRETE_INSTRUCTION | 6891 #undef DECLARE_CONCRETE_INSTRUCTION |
| 6893 | 6892 |
| 6894 } // namespace internal | 6893 } // namespace internal |
| 6895 } // namespace v8 | 6894 } // namespace v8 |
| 6896 | 6895 |
| 6897 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ | 6896 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ |
| OLD | NEW |