| 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 2710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2721 public: | 2721 public: |
| 2722 enum Type { | 2722 enum Type { |
| 2723 UNDEFINED, | 2723 UNDEFINED, |
| 2724 BOOLEAN, | 2724 BOOLEAN, |
| 2725 NULL_TYPE, | 2725 NULL_TYPE, |
| 2726 SMI, | 2726 SMI, |
| 2727 SPEC_OBJECT, | 2727 SPEC_OBJECT, |
| 2728 STRING, | 2728 STRING, |
| 2729 SYMBOL, | 2729 SYMBOL, |
| 2730 HEAP_NUMBER, | 2730 HEAP_NUMBER, |
| 2731 SIMD_TYPE, |
| 2731 NUMBER_OF_TYPES | 2732 NUMBER_OF_TYPES |
| 2732 }; | 2733 }; |
| 2733 | 2734 |
| 2734 enum ResultMode { | 2735 enum ResultMode { |
| 2735 RESULT_AS_SMI, // For Smi(1) on truthy value, Smi(0) otherwise. | 2736 RESULT_AS_SMI, // For Smi(1) on truthy value, Smi(0) otherwise. |
| 2736 RESULT_AS_ODDBALL, // For {true} on truthy value, {false} otherwise. | 2737 RESULT_AS_ODDBALL, // For {true} on truthy value, {false} otherwise. |
| 2737 RESULT_AS_INVERSE_ODDBALL // For {false} on truthy value, {true} otherwise. | 2738 RESULT_AS_INVERSE_ODDBALL // For {false} on truthy value, {true} otherwise. |
| 2738 }; | 2739 }; |
| 2739 | 2740 |
| 2740 // At most 16 different types can be distinguished, because the Code object | 2741 // 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... |
| 2961 #undef DEFINE_PLATFORM_CODE_STUB | 2962 #undef DEFINE_PLATFORM_CODE_STUB |
| 2962 #undef DEFINE_HANDLER_CODE_STUB | 2963 #undef DEFINE_HANDLER_CODE_STUB |
| 2963 #undef DEFINE_HYDROGEN_CODE_STUB | 2964 #undef DEFINE_HYDROGEN_CODE_STUB |
| 2964 #undef DEFINE_CODE_STUB | 2965 #undef DEFINE_CODE_STUB |
| 2965 #undef DEFINE_CODE_STUB_BASE | 2966 #undef DEFINE_CODE_STUB_BASE |
| 2966 | 2967 |
| 2967 extern Representation RepresentationFromType(Type* type); | 2968 extern Representation RepresentationFromType(Type* type); |
| 2968 } } // namespace v8::internal | 2969 } } // namespace v8::internal |
| 2969 | 2970 |
| 2970 #endif // V8_CODE_STUBS_H_ | 2971 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |