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_HYDROGEN_INSTRUCTIONS_H_ | 5 #ifndef V8_HYDROGEN_INSTRUCTIONS_H_ |
6 #define V8_HYDROGEN_INSTRUCTIONS_H_ | 6 #define V8_HYDROGEN_INSTRUCTIONS_H_ |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 GVNFlagSet changes_flags_; | 920 GVNFlagSet changes_flags_; |
921 GVNFlagSet depends_on_flags_; | 921 GVNFlagSet depends_on_flags_; |
922 | 922 |
923 private: | 923 private: |
924 virtual bool IsDeletable() const { return false; } | 924 virtual bool IsDeletable() const { return false; } |
925 | 925 |
926 DISALLOW_COPY_AND_ASSIGN(HValue); | 926 DISALLOW_COPY_AND_ASSIGN(HValue); |
927 }; | 927 }; |
928 | 928 |
929 | 929 |
| 930 OStream& operator<<(OStream& os, const HValue& v); |
| 931 |
| 932 |
930 #define DECLARE_INSTRUCTION_FACTORY_P0(I) \ | 933 #define DECLARE_INSTRUCTION_FACTORY_P0(I) \ |
931 static I* New(Zone* zone, HValue* context) { \ | 934 static I* New(Zone* zone, HValue* context) { \ |
932 return new(zone) I(); \ | 935 return new(zone) I(); \ |
933 } | 936 } |
934 | 937 |
935 #define DECLARE_INSTRUCTION_FACTORY_P1(I, P1) \ | 938 #define DECLARE_INSTRUCTION_FACTORY_P1(I, P1) \ |
936 static I* New(Zone* zone, HValue* context, P1 p1) { \ | 939 static I* New(Zone* zone, HValue* context, P1 p1) { \ |
937 return new(zone) I(p1); \ | 940 return new(zone) I(p1); \ |
938 } | 941 } |
939 | 942 |
(...skipping 6847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7787 }; | 7790 }; |
7788 | 7791 |
7789 | 7792 |
7790 | 7793 |
7791 #undef DECLARE_INSTRUCTION | 7794 #undef DECLARE_INSTRUCTION |
7792 #undef DECLARE_CONCRETE_INSTRUCTION | 7795 #undef DECLARE_CONCRETE_INSTRUCTION |
7793 | 7796 |
7794 } } // namespace v8::internal | 7797 } } // namespace v8::internal |
7795 | 7798 |
7796 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ | 7799 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ |
OLD | NEW |