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 3811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3822 #endif // ENABLE_DISASSEMBLER | 3822 #endif // ENABLE_DISASSEMBLER |
3823 | 3823 |
3824 // [instruction_size]: Size of the native instructions | 3824 // [instruction_size]: Size of the native instructions |
3825 inline int instruction_size(); | 3825 inline int instruction_size(); |
3826 inline void set_instruction_size(int value); | 3826 inline void set_instruction_size(int value); |
3827 | 3827 |
3828 // [relocation_info]: Code relocation information | 3828 // [relocation_info]: Code relocation information |
3829 DECL_ACCESSORS(relocation_info, ByteArray) | 3829 DECL_ACCESSORS(relocation_info, ByteArray) |
3830 void InvalidateRelocation(); | 3830 void InvalidateRelocation(); |
3831 | 3831 |
3832 // [handler_table]: Fixed array containing offsets of exception handlers. | |
3833 DECL_ACCESSORS(handler_table, FixedArray) | |
3834 | |
3835 // [deoptimization_data]: Array containing data for deopt. | 3832 // [deoptimization_data]: Array containing data for deopt. |
3836 DECL_ACCESSORS(deoptimization_data, FixedArray) | 3833 DECL_ACCESSORS(deoptimization_data, FixedArray) |
3837 | 3834 |
3838 // [code_flushing_candidate]: Field only used during garbage | 3835 // [code_flushing_candidate]: Field only used during garbage |
3839 // collection to hold code flushing candidates. The contents of this | 3836 // collection to hold code flushing candidates. The contents of this |
3840 // field does not have to be traced during garbage collection since | 3837 // field does not have to be traced during garbage collection since |
3841 // it is only used by the garbage collector itself. | 3838 // it is only used by the garbage collector itself. |
3842 DECL_ACCESSORS(next_code_flushing_candidate, Object) | 3839 DECL_ACCESSORS(next_code_flushing_candidate, Object) |
3843 | 3840 |
3844 // Unchecked accessors to be used during GC. | 3841 // Unchecked accessors to be used during GC. |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4053 void CodeVerify(); | 4050 void CodeVerify(); |
4054 #endif | 4051 #endif |
4055 | 4052 |
4056 // Max loop nesting marker used to postpose OSR. We don't take loop | 4053 // Max loop nesting marker used to postpose OSR. We don't take loop |
4057 // nesting that is deeper than 5 levels into account. | 4054 // nesting that is deeper than 5 levels into account. |
4058 static const int kMaxLoopNestingMarker = 6; | 4055 static const int kMaxLoopNestingMarker = 6; |
4059 | 4056 |
4060 // Layout description. | 4057 // Layout description. |
4061 static const int kInstructionSizeOffset = HeapObject::kHeaderSize; | 4058 static const int kInstructionSizeOffset = HeapObject::kHeaderSize; |
4062 static const int kRelocationInfoOffset = kInstructionSizeOffset + kIntSize; | 4059 static const int kRelocationInfoOffset = kInstructionSizeOffset + kIntSize; |
4063 static const int kHandlerTableOffset = kRelocationInfoOffset + kPointerSize; | |
4064 static const int kDeoptimizationDataOffset = | 4060 static const int kDeoptimizationDataOffset = |
4065 kHandlerTableOffset + kPointerSize; | 4061 kRelocationInfoOffset + kPointerSize; |
4066 static const int kNextCodeFlushingCandidateOffset = | 4062 static const int kNextCodeFlushingCandidateOffset = |
4067 kDeoptimizationDataOffset + kPointerSize; | 4063 kDeoptimizationDataOffset + kPointerSize; |
4068 static const int kFlagsOffset = | 4064 static const int kFlagsOffset = |
4069 kNextCodeFlushingCandidateOffset + kPointerSize; | 4065 kNextCodeFlushingCandidateOffset + kPointerSize; |
4070 | 4066 |
4071 static const int kKindSpecificFlagsOffset = kFlagsOffset + kIntSize; | 4067 static const int kKindSpecificFlagsOffset = kFlagsOffset + kIntSize; |
4072 static const int kKindSpecificFlagsSize = 2 * kIntSize; | 4068 static const int kKindSpecificFlagsSize = 2 * kIntSize; |
4073 | 4069 |
4074 static const int kHeaderPaddingStart = kKindSpecificFlagsOffset + | 4070 static const int kHeaderPaddingStart = kKindSpecificFlagsOffset + |
4075 kKindSpecificFlagsSize; | 4071 kKindSpecificFlagsSize; |
(...skipping 3788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7864 } else { | 7860 } else { |
7865 value &= ~(1 << bit_position); | 7861 value &= ~(1 << bit_position); |
7866 } | 7862 } |
7867 return value; | 7863 return value; |
7868 } | 7864 } |
7869 }; | 7865 }; |
7870 | 7866 |
7871 } } // namespace v8::internal | 7867 } } // namespace v8::internal |
7872 | 7868 |
7873 #endif // V8_OBJECTS_H_ | 7869 #endif // V8_OBJECTS_H_ |
OLD | NEW |