OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 3709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3720 inline void set_binary_op_result_type(byte value); | 3720 inline void set_binary_op_result_type(byte value); |
3721 | 3721 |
3722 // [compare state]: For kind COMPARE_IC, tells what state the stub is in. | 3722 // [compare state]: For kind COMPARE_IC, tells what state the stub is in. |
3723 inline byte compare_state(); | 3723 inline byte compare_state(); |
3724 inline void set_compare_state(byte value); | 3724 inline void set_compare_state(byte value); |
3725 | 3725 |
3726 // [to_boolean_foo]: For kind TO_BOOLEAN_IC tells what state the stub is in. | 3726 // [to_boolean_foo]: For kind TO_BOOLEAN_IC tells what state the stub is in. |
3727 inline byte to_boolean_state(); | 3727 inline byte to_boolean_state(); |
3728 inline void set_to_boolean_state(byte value); | 3728 inline void set_to_boolean_state(byte value); |
3729 | 3729 |
| 3730 // For kind STUB, major_key == CallFunction, tells whether there is |
| 3731 // a function cache in the instruction stream. |
| 3732 inline bool has_function_cache(); |
| 3733 inline void set_has_function_cache(bool flag); |
| 3734 |
3730 // Get the safepoint entry for the given pc. | 3735 // Get the safepoint entry for the given pc. |
3731 SafepointEntry GetSafepointEntry(Address pc); | 3736 SafepointEntry GetSafepointEntry(Address pc); |
3732 | 3737 |
3733 // Mark this code object as not having a stack check table. Assumes kind | 3738 // Mark this code object as not having a stack check table. Assumes kind |
3734 // is FUNCTION. | 3739 // is FUNCTION. |
3735 void SetNoStackCheckTable(); | 3740 void SetNoStackCheckTable(); |
3736 | 3741 |
3737 // Find the first map in an IC stub. | 3742 // Find the first map in an IC stub. |
3738 Map* FindFirstMap(); | 3743 Map* FindFirstMap(); |
3739 | 3744 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3859 // Byte offsets within kKindSpecificFlagsOffset. | 3864 // Byte offsets within kKindSpecificFlagsOffset. |
3860 static const int kStubMajorKeyOffset = kKindSpecificFlagsOffset; | 3865 static const int kStubMajorKeyOffset = kKindSpecificFlagsOffset; |
3861 static const int kOptimizableOffset = kKindSpecificFlagsOffset; | 3866 static const int kOptimizableOffset = kKindSpecificFlagsOffset; |
3862 static const int kStackSlotsOffset = kKindSpecificFlagsOffset; | 3867 static const int kStackSlotsOffset = kKindSpecificFlagsOffset; |
3863 static const int kCheckTypeOffset = kKindSpecificFlagsOffset; | 3868 static const int kCheckTypeOffset = kKindSpecificFlagsOffset; |
3864 | 3869 |
3865 static const int kUnaryOpTypeOffset = kStubMajorKeyOffset + 1; | 3870 static const int kUnaryOpTypeOffset = kStubMajorKeyOffset + 1; |
3866 static const int kBinaryOpTypeOffset = kStubMajorKeyOffset + 1; | 3871 static const int kBinaryOpTypeOffset = kStubMajorKeyOffset + 1; |
3867 static const int kCompareStateOffset = kStubMajorKeyOffset + 1; | 3872 static const int kCompareStateOffset = kStubMajorKeyOffset + 1; |
3868 static const int kToBooleanTypeOffset = kStubMajorKeyOffset + 1; | 3873 static const int kToBooleanTypeOffset = kStubMajorKeyOffset + 1; |
| 3874 static const int kHasFunctionCacheOffset = kStubMajorKeyOffset + 1; |
3869 | 3875 |
3870 static const int kFullCodeFlags = kOptimizableOffset + 1; | 3876 static const int kFullCodeFlags = kOptimizableOffset + 1; |
3871 class FullCodeFlagsHasDeoptimizationSupportField: | 3877 class FullCodeFlagsHasDeoptimizationSupportField: |
3872 public BitField<bool, 0, 1> {}; // NOLINT | 3878 public BitField<bool, 0, 1> {}; // NOLINT |
3873 class FullCodeFlagsHasDebugBreakSlotsField: public BitField<bool, 1, 1> {}; | 3879 class FullCodeFlagsHasDebugBreakSlotsField: public BitField<bool, 1, 1> {}; |
3874 | 3880 |
3875 static const int kBinaryOpReturnTypeOffset = kBinaryOpTypeOffset + 1; | 3881 static const int kBinaryOpReturnTypeOffset = kBinaryOpTypeOffset + 1; |
3876 | 3882 |
3877 static const int kAllowOSRAtLoopNestingLevelOffset = kFullCodeFlags + 1; | 3883 static const int kAllowOSRAtLoopNestingLevelOffset = kFullCodeFlags + 1; |
3878 | 3884 |
(...skipping 3615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7494 } else { | 7500 } else { |
7495 value &= ~(1 << bit_position); | 7501 value &= ~(1 << bit_position); |
7496 } | 7502 } |
7497 return value; | 7503 return value; |
7498 } | 7504 } |
7499 }; | 7505 }; |
7500 | 7506 |
7501 } } // namespace v8::internal | 7507 } } // namespace v8::internal |
7502 | 7508 |
7503 #endif // V8_OBJECTS_H_ | 7509 #endif // V8_OBJECTS_H_ |
OLD | NEW |