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 2775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2786 public: | 2786 public: |
2787 enum Type { | 2787 enum Type { |
2788 UNDEFINED, | 2788 UNDEFINED, |
2789 BOOLEAN, | 2789 BOOLEAN, |
2790 NULL_TYPE, | 2790 NULL_TYPE, |
2791 SMI, | 2791 SMI, |
2792 SPEC_OBJECT, | 2792 SPEC_OBJECT, |
2793 STRING, | 2793 STRING, |
2794 SYMBOL, | 2794 SYMBOL, |
2795 HEAP_NUMBER, | 2795 HEAP_NUMBER, |
| 2796 SIMD_VALUE, |
2796 NUMBER_OF_TYPES | 2797 NUMBER_OF_TYPES |
2797 }; | 2798 }; |
2798 | 2799 |
2799 enum ResultMode { | 2800 enum ResultMode { |
2800 RESULT_AS_SMI, // For Smi(1) on truthy value, Smi(0) otherwise. | 2801 RESULT_AS_SMI, // For Smi(1) on truthy value, Smi(0) otherwise. |
2801 RESULT_AS_ODDBALL, // For {true} on truthy value, {false} otherwise. | 2802 RESULT_AS_ODDBALL, // For {true} on truthy value, {false} otherwise. |
2802 RESULT_AS_INVERSE_ODDBALL // For {false} on truthy value, {true} otherwise. | 2803 RESULT_AS_INVERSE_ODDBALL // For {false} on truthy value, {true} otherwise. |
2803 }; | 2804 }; |
2804 | 2805 |
2805 // At most 16 different types can be distinguished, because the Code object | 2806 // 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... |
3026 #undef DEFINE_PLATFORM_CODE_STUB | 3027 #undef DEFINE_PLATFORM_CODE_STUB |
3027 #undef DEFINE_HANDLER_CODE_STUB | 3028 #undef DEFINE_HANDLER_CODE_STUB |
3028 #undef DEFINE_HYDROGEN_CODE_STUB | 3029 #undef DEFINE_HYDROGEN_CODE_STUB |
3029 #undef DEFINE_CODE_STUB | 3030 #undef DEFINE_CODE_STUB |
3030 #undef DEFINE_CODE_STUB_BASE | 3031 #undef DEFINE_CODE_STUB_BASE |
3031 | 3032 |
3032 extern Representation RepresentationFromType(Type* type); | 3033 extern Representation RepresentationFromType(Type* type); |
3033 } } // namespace v8::internal | 3034 } } // namespace v8::internal |
3034 | 3035 |
3035 #endif // V8_CODE_STUBS_H_ | 3036 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |