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 2732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2743 public: | 2743 public: |
2744 enum Type { | 2744 enum Type { |
2745 UNDEFINED, | 2745 UNDEFINED, |
2746 BOOLEAN, | 2746 BOOLEAN, |
2747 NULL_TYPE, | 2747 NULL_TYPE, |
2748 SMI, | 2748 SMI, |
2749 SPEC_OBJECT, | 2749 SPEC_OBJECT, |
2750 STRING, | 2750 STRING, |
2751 SYMBOL, | 2751 SYMBOL, |
2752 HEAP_NUMBER, | 2752 HEAP_NUMBER, |
| 2753 SIMD_VALUE, |
2753 NUMBER_OF_TYPES | 2754 NUMBER_OF_TYPES |
2754 }; | 2755 }; |
2755 | 2756 |
2756 enum ResultMode { | 2757 enum ResultMode { |
2757 RESULT_AS_SMI, // For Smi(1) on truthy value, Smi(0) otherwise. | 2758 RESULT_AS_SMI, // For Smi(1) on truthy value, Smi(0) otherwise. |
2758 RESULT_AS_ODDBALL, // For {true} on truthy value, {false} otherwise. | 2759 RESULT_AS_ODDBALL, // For {true} on truthy value, {false} otherwise. |
2759 RESULT_AS_INVERSE_ODDBALL // For {false} on truthy value, {true} otherwise. | 2760 RESULT_AS_INVERSE_ODDBALL // For {false} on truthy value, {true} otherwise. |
2760 }; | 2761 }; |
2761 | 2762 |
2762 // At most 16 different types can be distinguished, because the Code object | 2763 // 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... |
2983 #undef DEFINE_PLATFORM_CODE_STUB | 2984 #undef DEFINE_PLATFORM_CODE_STUB |
2984 #undef DEFINE_HANDLER_CODE_STUB | 2985 #undef DEFINE_HANDLER_CODE_STUB |
2985 #undef DEFINE_HYDROGEN_CODE_STUB | 2986 #undef DEFINE_HYDROGEN_CODE_STUB |
2986 #undef DEFINE_CODE_STUB | 2987 #undef DEFINE_CODE_STUB |
2987 #undef DEFINE_CODE_STUB_BASE | 2988 #undef DEFINE_CODE_STUB_BASE |
2988 | 2989 |
2989 extern Representation RepresentationFromType(Type* type); | 2990 extern Representation RepresentationFromType(Type* type); |
2990 } } // namespace v8::internal | 2991 } } // namespace v8::internal |
2991 | 2992 |
2992 #endif // V8_CODE_STUBS_H_ | 2993 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |