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 6790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6801 SMI_ACCESSORS(JSMessageObject, end_position, kEndPositionOffset) | 6801 SMI_ACCESSORS(JSMessageObject, end_position, kEndPositionOffset) |
6802 | 6802 |
6803 | 6803 |
6804 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset) | 6804 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset) |
6805 INT_ACCESSORS(Code, prologue_offset, kPrologueOffset) | 6805 INT_ACCESSORS(Code, prologue_offset, kPrologueOffset) |
6806 INT_ACCESSORS(Code, constant_pool_offset, kConstantPoolOffset) | 6806 INT_ACCESSORS(Code, constant_pool_offset, kConstantPoolOffset) |
6807 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) | 6807 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) |
6808 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) | 6808 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) |
6809 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) | 6809 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) |
6810 ACCESSORS(Code, source_position_table, ByteArray, kSourcePositionTableOffset) | 6810 ACCESSORS(Code, source_position_table, ByteArray, kSourcePositionTableOffset) |
| 6811 ACCESSORS(Code, protected_instructions, FixedArray, kProtectedInstructionOffset) |
6811 ACCESSORS(Code, raw_type_feedback_info, Object, kTypeFeedbackInfoOffset) | 6812 ACCESSORS(Code, raw_type_feedback_info, Object, kTypeFeedbackInfoOffset) |
6812 ACCESSORS(Code, next_code_link, Object, kNextCodeLinkOffset) | 6813 ACCESSORS(Code, next_code_link, Object, kNextCodeLinkOffset) |
6813 | 6814 |
6814 void Code::WipeOutHeader() { | 6815 void Code::WipeOutHeader() { |
6815 WRITE_FIELD(this, kRelocationInfoOffset, NULL); | 6816 WRITE_FIELD(this, kRelocationInfoOffset, NULL); |
6816 WRITE_FIELD(this, kHandlerTableOffset, NULL); | 6817 WRITE_FIELD(this, kHandlerTableOffset, NULL); |
6817 WRITE_FIELD(this, kDeoptimizationDataOffset, NULL); | 6818 WRITE_FIELD(this, kDeoptimizationDataOffset, NULL); |
6818 WRITE_FIELD(this, kSourcePositionTableOffset, NULL); | 6819 WRITE_FIELD(this, kSourcePositionTableOffset, NULL); |
6819 // Do not wipe out major/minor keys on a code stub or IC | 6820 // Do not wipe out major/minor keys on a code stub or IC |
6820 if (!READ_FIELD(this, kTypeFeedbackInfoOffset)->IsSmi()) { | 6821 if (!READ_FIELD(this, kTypeFeedbackInfoOffset)->IsSmi()) { |
(...skipping 1628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8449 #undef WRITE_INT64_FIELD | 8450 #undef WRITE_INT64_FIELD |
8450 #undef READ_BYTE_FIELD | 8451 #undef READ_BYTE_FIELD |
8451 #undef WRITE_BYTE_FIELD | 8452 #undef WRITE_BYTE_FIELD |
8452 #undef NOBARRIER_READ_BYTE_FIELD | 8453 #undef NOBARRIER_READ_BYTE_FIELD |
8453 #undef NOBARRIER_WRITE_BYTE_FIELD | 8454 #undef NOBARRIER_WRITE_BYTE_FIELD |
8454 | 8455 |
8455 } // namespace internal | 8456 } // namespace internal |
8456 } // namespace v8 | 8457 } // namespace v8 |
8457 | 8458 |
8458 #endif // V8_OBJECTS_INL_H_ | 8459 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |