| 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 3653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3664 // [has_deoptimization_support]: For FUNCTION kind, tells if it has | 3664 // [has_deoptimization_support]: For FUNCTION kind, tells if it has |
| 3665 // deoptimization support. | 3665 // deoptimization support. |
| 3666 inline bool has_deoptimization_support(); | 3666 inline bool has_deoptimization_support(); |
| 3667 inline void set_has_deoptimization_support(bool value); | 3667 inline void set_has_deoptimization_support(bool value); |
| 3668 | 3668 |
| 3669 // [has_debug_break_slots]: For FUNCTION kind, tells if it has | 3669 // [has_debug_break_slots]: For FUNCTION kind, tells if it has |
| 3670 // been compiled with debug break slots. | 3670 // been compiled with debug break slots. |
| 3671 inline bool has_debug_break_slots(); | 3671 inline bool has_debug_break_slots(); |
| 3672 inline void set_has_debug_break_slots(bool value); | 3672 inline void set_has_debug_break_slots(bool value); |
| 3673 | 3673 |
| 3674 // [compiled_with_optimizing]: For FUNCTION kind, tells if it has |
| 3675 // been compiled with IsOptimizing set to true. |
| 3676 inline bool is_compiled_optimizable(); |
| 3677 inline void set_compiled_optimizable(bool value); |
| 3678 |
| 3674 // [allow_osr_at_loop_nesting_level]: For FUNCTION kind, tells for | 3679 // [allow_osr_at_loop_nesting_level]: For FUNCTION kind, tells for |
| 3675 // how long the function has been marked for OSR and therefore which | 3680 // how long the function has been marked for OSR and therefore which |
| 3676 // level of loop nesting we are willing to do on-stack replacement | 3681 // level of loop nesting we are willing to do on-stack replacement |
| 3677 // for. | 3682 // for. |
| 3678 inline void set_allow_osr_at_loop_nesting_level(int level); | 3683 inline void set_allow_osr_at_loop_nesting_level(int level); |
| 3679 inline int allow_osr_at_loop_nesting_level(); | 3684 inline int allow_osr_at_loop_nesting_level(); |
| 3680 | 3685 |
| 3681 // [stack_slots]: For kind OPTIMIZED_FUNCTION, the number of stack slots | 3686 // [stack_slots]: For kind OPTIMIZED_FUNCTION, the number of stack slots |
| 3682 // reserved in the code prologue. | 3687 // reserved in the code prologue. |
| 3683 inline unsigned stack_slots(); | 3688 inline unsigned stack_slots(); |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3853 | 3858 |
| 3854 static const int kUnaryOpTypeOffset = kStubMajorKeyOffset + 1; | 3859 static const int kUnaryOpTypeOffset = kStubMajorKeyOffset + 1; |
| 3855 static const int kBinaryOpTypeOffset = kStubMajorKeyOffset + 1; | 3860 static const int kBinaryOpTypeOffset = kStubMajorKeyOffset + 1; |
| 3856 static const int kCompareStateOffset = kStubMajorKeyOffset + 1; | 3861 static const int kCompareStateOffset = kStubMajorKeyOffset + 1; |
| 3857 static const int kToBooleanTypeOffset = kStubMajorKeyOffset + 1; | 3862 static const int kToBooleanTypeOffset = kStubMajorKeyOffset + 1; |
| 3858 | 3863 |
| 3859 static const int kFullCodeFlags = kOptimizableOffset + 1; | 3864 static const int kFullCodeFlags = kOptimizableOffset + 1; |
| 3860 class FullCodeFlagsHasDeoptimizationSupportField: | 3865 class FullCodeFlagsHasDeoptimizationSupportField: |
| 3861 public BitField<bool, 0, 1> {}; // NOLINT | 3866 public BitField<bool, 0, 1> {}; // NOLINT |
| 3862 class FullCodeFlagsHasDebugBreakSlotsField: public BitField<bool, 1, 1> {}; | 3867 class FullCodeFlagsHasDebugBreakSlotsField: public BitField<bool, 1, 1> {}; |
| 3868 class FullCodeFlagsIsCompiledOptimizable: public BitField<bool, 2, 1> {}; |
| 3863 | 3869 |
| 3864 static const int kBinaryOpReturnTypeOffset = kBinaryOpTypeOffset + 1; | 3870 static const int kBinaryOpReturnTypeOffset = kBinaryOpTypeOffset + 1; |
| 3865 | 3871 |
| 3866 static const int kAllowOSRAtLoopNestingLevelOffset = kFullCodeFlags + 1; | 3872 static const int kAllowOSRAtLoopNestingLevelOffset = kFullCodeFlags + 1; |
| 3867 | 3873 |
| 3868 static const int kSafepointTableOffsetOffset = kStackSlotsOffset + kIntSize; | 3874 static const int kSafepointTableOffsetOffset = kStackSlotsOffset + kIntSize; |
| 3869 static const int kStackCheckTableOffsetOffset = kStackSlotsOffset + kIntSize; | 3875 static const int kStackCheckTableOffsetOffset = kStackSlotsOffset + kIntSize; |
| 3870 | 3876 |
| 3871 // Flags layout. BitField<type, shift, size>. | 3877 // Flags layout. BitField<type, shift, size>. |
| 3872 class ICStateField: public BitField<InlineCacheState, 0, 3> {}; | 3878 class ICStateField: public BitField<InlineCacheState, 0, 3> {}; |
| (...skipping 3670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7543 } else { | 7549 } else { |
| 7544 value &= ~(1 << bit_position); | 7550 value &= ~(1 << bit_position); |
| 7545 } | 7551 } |
| 7546 return value; | 7552 return value; |
| 7547 } | 7553 } |
| 7548 }; | 7554 }; |
| 7549 | 7555 |
| 7550 } } // namespace v8::internal | 7556 } } // namespace v8::internal |
| 7551 | 7557 |
| 7552 #endif // V8_OBJECTS_H_ | 7558 #endif // V8_OBJECTS_H_ |
| OLD | NEW |