OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 5673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5684 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) | 5684 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) |
5685 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) | 5685 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) |
5686 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) | 5686 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) |
5687 ACCESSORS(Code, raw_type_feedback_info, Object, kTypeFeedbackInfoOffset) | 5687 ACCESSORS(Code, raw_type_feedback_info, Object, kTypeFeedbackInfoOffset) |
5688 | 5688 |
5689 | 5689 |
5690 void Code::WipeOutHeader() { | 5690 void Code::WipeOutHeader() { |
5691 WRITE_FIELD(this, kRelocationInfoOffset, NULL); | 5691 WRITE_FIELD(this, kRelocationInfoOffset, NULL); |
5692 WRITE_FIELD(this, kHandlerTableOffset, NULL); | 5692 WRITE_FIELD(this, kHandlerTableOffset, NULL); |
5693 WRITE_FIELD(this, kDeoptimizationDataOffset, NULL); | 5693 WRITE_FIELD(this, kDeoptimizationDataOffset, NULL); |
| 5694 WRITE_FIELD(this, kConstantPoolOffset, NULL); |
5694 // Do not wipe out e.g. a minor key. | 5695 // Do not wipe out e.g. a minor key. |
5695 if (!READ_FIELD(this, kTypeFeedbackInfoOffset)->IsSmi()) { | 5696 if (!READ_FIELD(this, kTypeFeedbackInfoOffset)->IsSmi()) { |
5696 WRITE_FIELD(this, kTypeFeedbackInfoOffset, NULL); | 5697 WRITE_FIELD(this, kTypeFeedbackInfoOffset, NULL); |
5697 } | 5698 } |
5698 } | 5699 } |
5699 | 5700 |
5700 | 5701 |
5701 Object* Code::type_feedback_info() { | 5702 Object* Code::type_feedback_info() { |
5702 ASSERT(kind() == FUNCTION); | 5703 ASSERT(kind() == FUNCTION); |
5703 return raw_type_feedback_info(); | 5704 return raw_type_feedback_info(); |
(...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6752 #undef READ_UINT32_FIELD | 6753 #undef READ_UINT32_FIELD |
6753 #undef WRITE_UINT32_FIELD | 6754 #undef WRITE_UINT32_FIELD |
6754 #undef READ_SHORT_FIELD | 6755 #undef READ_SHORT_FIELD |
6755 #undef WRITE_SHORT_FIELD | 6756 #undef WRITE_SHORT_FIELD |
6756 #undef READ_BYTE_FIELD | 6757 #undef READ_BYTE_FIELD |
6757 #undef WRITE_BYTE_FIELD | 6758 #undef WRITE_BYTE_FIELD |
6758 | 6759 |
6759 } } // namespace v8::internal | 6760 } } // namespace v8::internal |
6760 | 6761 |
6761 #endif // V8_OBJECTS_INL_H_ | 6762 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |