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_CODE_STUBS_H_ | 5 #ifndef V8_CODE_STUBS_H_ |
6 #define V8_CODE_STUBS_H_ | 6 #define V8_CODE_STUBS_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assembler.h" | 9 #include "src/assembler.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 2831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2842 public: | 2842 public: |
2843 enum Type { | 2843 enum Type { |
2844 UNDEFINED, | 2844 UNDEFINED, |
2845 BOOLEAN, | 2845 BOOLEAN, |
2846 NULL_TYPE, | 2846 NULL_TYPE, |
2847 SMI, | 2847 SMI, |
2848 SPEC_OBJECT, | 2848 SPEC_OBJECT, |
2849 STRING, | 2849 STRING, |
2850 SYMBOL, | 2850 SYMBOL, |
2851 HEAP_NUMBER, | 2851 HEAP_NUMBER, |
| 2852 SIMD_VALUE, |
2852 NUMBER_OF_TYPES | 2853 NUMBER_OF_TYPES |
2853 }; | 2854 }; |
2854 | 2855 |
2855 enum ResultMode { | 2856 enum ResultMode { |
2856 RESULT_AS_SMI, // For Smi(1) on truthy value, Smi(0) otherwise. | 2857 RESULT_AS_SMI, // For Smi(1) on truthy value, Smi(0) otherwise. |
2857 RESULT_AS_ODDBALL, // For {true} on truthy value, {false} otherwise. | 2858 RESULT_AS_ODDBALL, // For {true} on truthy value, {false} otherwise. |
2858 RESULT_AS_INVERSE_ODDBALL // For {false} on truthy value, {true} otherwise. | 2859 RESULT_AS_INVERSE_ODDBALL // For {false} on truthy value, {true} otherwise. |
2859 }; | 2860 }; |
2860 | 2861 |
2861 // At most 16 different types can be distinguished, because the Code object | 2862 // At most 16 different types can be distinguished, because the Code object |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3082 #undef DEFINE_PLATFORM_CODE_STUB | 3083 #undef DEFINE_PLATFORM_CODE_STUB |
3083 #undef DEFINE_HANDLER_CODE_STUB | 3084 #undef DEFINE_HANDLER_CODE_STUB |
3084 #undef DEFINE_HYDROGEN_CODE_STUB | 3085 #undef DEFINE_HYDROGEN_CODE_STUB |
3085 #undef DEFINE_CODE_STUB | 3086 #undef DEFINE_CODE_STUB |
3086 #undef DEFINE_CODE_STUB_BASE | 3087 #undef DEFINE_CODE_STUB_BASE |
3087 | 3088 |
3088 extern Representation RepresentationFromType(Type* type); | 3089 extern Representation RepresentationFromType(Type* type); |
3089 } } // namespace v8::internal | 3090 } } // namespace v8::internal |
3090 | 3091 |
3091 #endif // V8_CODE_STUBS_H_ | 3092 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |