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 // Review notes: | 5 // Review notes: |
6 // | 6 // |
7 // - The use of macros in these inline functions may seem superfluous | 7 // - The use of macros in these inline functions may seem superfluous |
8 // but it is absolutely needed to make sure gcc generates optimal | 8 // but it is absolutely needed to make sure gcc generates optimal |
9 // code. gcc is not happy when attempting to inline too deep. | 9 // code. gcc is not happy when attempting to inline too deep. |
10 // | 10 // |
(...skipping 6785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6796 SMI_ACCESSORS(JSMessageObject, end_position, kEndPositionOffset) | 6796 SMI_ACCESSORS(JSMessageObject, end_position, kEndPositionOffset) |
6797 | 6797 |
6798 | 6798 |
6799 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset) | 6799 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset) |
6800 INT_ACCESSORS(Code, prologue_offset, kPrologueOffset) | 6800 INT_ACCESSORS(Code, prologue_offset, kPrologueOffset) |
6801 INT_ACCESSORS(Code, constant_pool_offset, kConstantPoolOffset) | 6801 INT_ACCESSORS(Code, constant_pool_offset, kConstantPoolOffset) |
6802 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) | 6802 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) |
6803 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) | 6803 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) |
6804 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) | 6804 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) |
6805 ACCESSORS(Code, source_position_table, ByteArray, kSourcePositionTableOffset) | 6805 ACCESSORS(Code, source_position_table, ByteArray, kSourcePositionTableOffset) |
| 6806 ACCESSORS(Code, protected_instructions, FixedArray, kProtectedInstructionOffset) |
6806 ACCESSORS(Code, raw_type_feedback_info, Object, kTypeFeedbackInfoOffset) | 6807 ACCESSORS(Code, raw_type_feedback_info, Object, kTypeFeedbackInfoOffset) |
6807 ACCESSORS(Code, next_code_link, Object, kNextCodeLinkOffset) | 6808 ACCESSORS(Code, next_code_link, Object, kNextCodeLinkOffset) |
6808 | 6809 |
6809 void Code::WipeOutHeader() { | 6810 void Code::WipeOutHeader() { |
6810 WRITE_FIELD(this, kRelocationInfoOffset, NULL); | 6811 WRITE_FIELD(this, kRelocationInfoOffset, NULL); |
6811 WRITE_FIELD(this, kHandlerTableOffset, NULL); | 6812 WRITE_FIELD(this, kHandlerTableOffset, NULL); |
6812 WRITE_FIELD(this, kDeoptimizationDataOffset, NULL); | 6813 WRITE_FIELD(this, kDeoptimizationDataOffset, NULL); |
6813 WRITE_FIELD(this, kSourcePositionTableOffset, NULL); | 6814 WRITE_FIELD(this, kSourcePositionTableOffset, NULL); |
6814 // Do not wipe out major/minor keys on a code stub or IC | 6815 // Do not wipe out major/minor keys on a code stub or IC |
6815 if (!READ_FIELD(this, kTypeFeedbackInfoOffset)->IsSmi()) { | 6816 if (!READ_FIELD(this, kTypeFeedbackInfoOffset)->IsSmi()) { |
(...skipping 1628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8444 #undef WRITE_INT64_FIELD | 8445 #undef WRITE_INT64_FIELD |
8445 #undef READ_BYTE_FIELD | 8446 #undef READ_BYTE_FIELD |
8446 #undef WRITE_BYTE_FIELD | 8447 #undef WRITE_BYTE_FIELD |
8447 #undef NOBARRIER_READ_BYTE_FIELD | 8448 #undef NOBARRIER_READ_BYTE_FIELD |
8448 #undef NOBARRIER_WRITE_BYTE_FIELD | 8449 #undef NOBARRIER_WRITE_BYTE_FIELD |
8449 | 8450 |
8450 } // namespace internal | 8451 } // namespace internal |
8451 } // namespace v8 | 8452 } // namespace v8 |
8452 | 8453 |
8453 #endif // V8_OBJECTS_INL_H_ | 8454 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |