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 6805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6816 SMI_ACCESSORS(JSMessageObject, error_level, kErrorLevelOffset) | 6816 SMI_ACCESSORS(JSMessageObject, error_level, kErrorLevelOffset) |
6817 | 6817 |
6818 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset) | 6818 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset) |
6819 INT_ACCESSORS(Code, prologue_offset, kPrologueOffset) | 6819 INT_ACCESSORS(Code, prologue_offset, kPrologueOffset) |
6820 INT_ACCESSORS(Code, constant_pool_offset, kConstantPoolOffset) | 6820 INT_ACCESSORS(Code, constant_pool_offset, kConstantPoolOffset) |
6821 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) | 6821 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) |
6822 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) | 6822 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) |
6823 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) | 6823 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) |
6824 ACCESSORS(Code, source_position_table, ByteArray, kSourcePositionTableOffset) | 6824 ACCESSORS(Code, source_position_table, ByteArray, kSourcePositionTableOffset) |
6825 ACCESSORS(Code, protected_instructions, FixedArray, kProtectedInstructionOffset) | 6825 ACCESSORS(Code, protected_instructions, FixedArray, kProtectedInstructionOffset) |
| 6826 ACCESSORS(Code, trap_handler_index, Smi, kTrapHandlerIndex) |
6826 ACCESSORS(Code, raw_type_feedback_info, Object, kTypeFeedbackInfoOffset) | 6827 ACCESSORS(Code, raw_type_feedback_info, Object, kTypeFeedbackInfoOffset) |
6827 ACCESSORS(Code, next_code_link, Object, kNextCodeLinkOffset) | 6828 ACCESSORS(Code, next_code_link, Object, kNextCodeLinkOffset) |
6828 | 6829 |
6829 void Code::WipeOutHeader() { | 6830 void Code::WipeOutHeader() { |
6830 WRITE_FIELD(this, kRelocationInfoOffset, NULL); | 6831 WRITE_FIELD(this, kRelocationInfoOffset, NULL); |
6831 WRITE_FIELD(this, kHandlerTableOffset, NULL); | 6832 WRITE_FIELD(this, kHandlerTableOffset, NULL); |
6832 WRITE_FIELD(this, kDeoptimizationDataOffset, NULL); | 6833 WRITE_FIELD(this, kDeoptimizationDataOffset, NULL); |
6833 WRITE_FIELD(this, kSourcePositionTableOffset, NULL); | 6834 WRITE_FIELD(this, kSourcePositionTableOffset, NULL); |
6834 // Do not wipe out major/minor keys on a code stub or IC | 6835 // Do not wipe out major/minor keys on a code stub or IC |
6835 if (!READ_FIELD(this, kTypeFeedbackInfoOffset)->IsSmi()) { | 6836 if (!READ_FIELD(this, kTypeFeedbackInfoOffset)->IsSmi()) { |
(...skipping 1619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8455 #undef WRITE_INT64_FIELD | 8456 #undef WRITE_INT64_FIELD |
8456 #undef READ_BYTE_FIELD | 8457 #undef READ_BYTE_FIELD |
8457 #undef WRITE_BYTE_FIELD | 8458 #undef WRITE_BYTE_FIELD |
8458 #undef NOBARRIER_READ_BYTE_FIELD | 8459 #undef NOBARRIER_READ_BYTE_FIELD |
8459 #undef NOBARRIER_WRITE_BYTE_FIELD | 8460 #undef NOBARRIER_WRITE_BYTE_FIELD |
8460 | 8461 |
8461 } // namespace internal | 8462 } // namespace internal |
8462 } // namespace v8 | 8463 } // namespace v8 |
8463 | 8464 |
8464 #endif // V8_OBJECTS_INL_H_ | 8465 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |