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 2784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2795 public: | 2795 public: |
2796 enum Type { | 2796 enum Type { |
2797 UNDEFINED, | 2797 UNDEFINED, |
2798 BOOLEAN, | 2798 BOOLEAN, |
2799 NULL_TYPE, | 2799 NULL_TYPE, |
2800 SMI, | 2800 SMI, |
2801 SPEC_OBJECT, | 2801 SPEC_OBJECT, |
2802 STRING, | 2802 STRING, |
2803 SYMBOL, | 2803 SYMBOL, |
2804 HEAP_NUMBER, | 2804 HEAP_NUMBER, |
| 2805 SIMD_VALUE, |
2805 NUMBER_OF_TYPES | 2806 NUMBER_OF_TYPES |
2806 }; | 2807 }; |
2807 | 2808 |
2808 enum ResultMode { | 2809 enum ResultMode { |
2809 RESULT_AS_SMI, // For Smi(1) on truthy value, Smi(0) otherwise. | 2810 RESULT_AS_SMI, // For Smi(1) on truthy value, Smi(0) otherwise. |
2810 RESULT_AS_ODDBALL, // For {true} on truthy value, {false} otherwise. | 2811 RESULT_AS_ODDBALL, // For {true} on truthy value, {false} otherwise. |
2811 RESULT_AS_INVERSE_ODDBALL // For {false} on truthy value, {true} otherwise. | 2812 RESULT_AS_INVERSE_ODDBALL // For {false} on truthy value, {true} otherwise. |
2812 }; | 2813 }; |
2813 | 2814 |
2814 // At most 16 different types can be distinguished, because the Code object | 2815 // 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... |
3035 #undef DEFINE_PLATFORM_CODE_STUB | 3036 #undef DEFINE_PLATFORM_CODE_STUB |
3036 #undef DEFINE_HANDLER_CODE_STUB | 3037 #undef DEFINE_HANDLER_CODE_STUB |
3037 #undef DEFINE_HYDROGEN_CODE_STUB | 3038 #undef DEFINE_HYDROGEN_CODE_STUB |
3038 #undef DEFINE_CODE_STUB | 3039 #undef DEFINE_CODE_STUB |
3039 #undef DEFINE_CODE_STUB_BASE | 3040 #undef DEFINE_CODE_STUB_BASE |
3040 | 3041 |
3041 extern Representation RepresentationFromType(Type* type); | 3042 extern Representation RepresentationFromType(Type* type); |
3042 } } // namespace v8::internal | 3043 } } // namespace v8::internal |
3043 | 3044 |
3044 #endif // V8_CODE_STUBS_H_ | 3045 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |