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 3748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3759 // [has_deoptimization_support]: For FUNCTION kind, tells if it has | 3759 // [has_deoptimization_support]: For FUNCTION kind, tells if it has |
3760 // deoptimization support. | 3760 // deoptimization support. |
3761 inline bool has_deoptimization_support(); | 3761 inline bool has_deoptimization_support(); |
3762 inline void set_has_deoptimization_support(bool value); | 3762 inline void set_has_deoptimization_support(bool value); |
3763 | 3763 |
3764 // [has_debug_break_slots]: For FUNCTION kind, tells if it has | 3764 // [has_debug_break_slots]: For FUNCTION kind, tells if it has |
3765 // been compiled with debug break slots. | 3765 // been compiled with debug break slots. |
3766 inline bool has_debug_break_slots(); | 3766 inline bool has_debug_break_slots(); |
3767 inline void set_has_debug_break_slots(bool value); | 3767 inline void set_has_debug_break_slots(bool value); |
3768 | 3768 |
| 3769 // [compiled_with_optimizing]: For FUNCTION kind, tells if it has |
| 3770 // been compiled with IsOptimizing set to true. |
| 3771 inline bool is_compiled_optimizable(); |
| 3772 inline void set_compiled_optimizable(bool value); |
| 3773 |
3769 // [allow_osr_at_loop_nesting_level]: For FUNCTION kind, tells for | 3774 // [allow_osr_at_loop_nesting_level]: For FUNCTION kind, tells for |
3770 // how long the function has been marked for OSR and therefore which | 3775 // how long the function has been marked for OSR and therefore which |
3771 // level of loop nesting we are willing to do on-stack replacement | 3776 // level of loop nesting we are willing to do on-stack replacement |
3772 // for. | 3777 // for. |
3773 inline void set_allow_osr_at_loop_nesting_level(int level); | 3778 inline void set_allow_osr_at_loop_nesting_level(int level); |
3774 inline int allow_osr_at_loop_nesting_level(); | 3779 inline int allow_osr_at_loop_nesting_level(); |
3775 | 3780 |
3776 // [stack_slots]: For kind OPTIMIZED_FUNCTION, the number of stack slots | 3781 // [stack_slots]: For kind OPTIMIZED_FUNCTION, the number of stack slots |
3777 // reserved in the code prologue. | 3782 // reserved in the code prologue. |
3778 inline unsigned stack_slots(); | 3783 inline unsigned stack_slots(); |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3954 static const int kUnaryOpTypeOffset = kStubMajorKeyOffset + 1; | 3959 static const int kUnaryOpTypeOffset = kStubMajorKeyOffset + 1; |
3955 static const int kBinaryOpTypeOffset = kStubMajorKeyOffset + 1; | 3960 static const int kBinaryOpTypeOffset = kStubMajorKeyOffset + 1; |
3956 static const int kCompareStateOffset = kStubMajorKeyOffset + 1; | 3961 static const int kCompareStateOffset = kStubMajorKeyOffset + 1; |
3957 static const int kToBooleanTypeOffset = kStubMajorKeyOffset + 1; | 3962 static const int kToBooleanTypeOffset = kStubMajorKeyOffset + 1; |
3958 static const int kHasFunctionCacheOffset = kStubMajorKeyOffset + 1; | 3963 static const int kHasFunctionCacheOffset = kStubMajorKeyOffset + 1; |
3959 | 3964 |
3960 static const int kFullCodeFlags = kOptimizableOffset + 1; | 3965 static const int kFullCodeFlags = kOptimizableOffset + 1; |
3961 class FullCodeFlagsHasDeoptimizationSupportField: | 3966 class FullCodeFlagsHasDeoptimizationSupportField: |
3962 public BitField<bool, 0, 1> {}; // NOLINT | 3967 public BitField<bool, 0, 1> {}; // NOLINT |
3963 class FullCodeFlagsHasDebugBreakSlotsField: public BitField<bool, 1, 1> {}; | 3968 class FullCodeFlagsHasDebugBreakSlotsField: public BitField<bool, 1, 1> {}; |
| 3969 class FullCodeFlagsIsCompiledOptimizable: public BitField<bool, 2, 1> {}; |
3964 | 3970 |
3965 static const int kBinaryOpReturnTypeOffset = kBinaryOpTypeOffset + 1; | 3971 static const int kBinaryOpReturnTypeOffset = kBinaryOpTypeOffset + 1; |
3966 | 3972 |
3967 static const int kAllowOSRAtLoopNestingLevelOffset = kFullCodeFlags + 1; | 3973 static const int kAllowOSRAtLoopNestingLevelOffset = kFullCodeFlags + 1; |
3968 | 3974 |
3969 static const int kSafepointTableOffsetOffset = kStackSlotsOffset + kIntSize; | 3975 static const int kSafepointTableOffsetOffset = kStackSlotsOffset + kIntSize; |
3970 static const int kStackCheckTableOffsetOffset = kStackSlotsOffset + kIntSize; | 3976 static const int kStackCheckTableOffsetOffset = kStackSlotsOffset + kIntSize; |
3971 | 3977 |
3972 // Flags layout. BitField<type, shift, size>. | 3978 // Flags layout. BitField<type, shift, size>. |
3973 class ICStateField: public BitField<InlineCacheState, 0, 3> {}; | 3979 class ICStateField: public BitField<InlineCacheState, 0, 3> {}; |
(...skipping 3652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7626 } else { | 7632 } else { |
7627 value &= ~(1 << bit_position); | 7633 value &= ~(1 << bit_position); |
7628 } | 7634 } |
7629 return value; | 7635 return value; |
7630 } | 7636 } |
7631 }; | 7637 }; |
7632 | 7638 |
7633 } } // namespace v8::internal | 7639 } } // namespace v8::internal |
7634 | 7640 |
7635 #endif // V8_OBJECTS_H_ | 7641 #endif // V8_OBJECTS_H_ |
OLD | NEW |