| 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 6408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6419 | 6419 |
| 6420 void Code::WipeOutHeader() { | 6420 void Code::WipeOutHeader() { |
| 6421 WRITE_FIELD(this, kRelocationInfoOffset, NULL); | 6421 WRITE_FIELD(this, kRelocationInfoOffset, NULL); |
| 6422 WRITE_FIELD(this, kHandlerTableOffset, NULL); | 6422 WRITE_FIELD(this, kHandlerTableOffset, NULL); |
| 6423 WRITE_FIELD(this, kDeoptimizationDataOffset, NULL); | 6423 WRITE_FIELD(this, kDeoptimizationDataOffset, NULL); |
| 6424 // Do not wipe out major/minor keys on a code stub or IC | 6424 // Do not wipe out major/minor keys on a code stub or IC |
| 6425 if (!READ_FIELD(this, kTypeFeedbackInfoOffset)->IsSmi()) { | 6425 if (!READ_FIELD(this, kTypeFeedbackInfoOffset)->IsSmi()) { |
| 6426 WRITE_FIELD(this, kTypeFeedbackInfoOffset, NULL); | 6426 WRITE_FIELD(this, kTypeFeedbackInfoOffset, NULL); |
| 6427 } | 6427 } |
| 6428 WRITE_FIELD(this, kNextCodeLinkOffset, NULL); | 6428 WRITE_FIELD(this, kNextCodeLinkOffset, NULL); |
| 6429 WRITE_FIELD(this, kGCMetadataOffset, NULL); |
| 6429 } | 6430 } |
| 6430 | 6431 |
| 6431 | 6432 |
| 6432 Object* Code::type_feedback_info() { | 6433 Object* Code::type_feedback_info() { |
| 6433 DCHECK(kind() == FUNCTION); | 6434 DCHECK(kind() == FUNCTION); |
| 6434 return raw_type_feedback_info(); | 6435 return raw_type_feedback_info(); |
| 6435 } | 6436 } |
| 6436 | 6437 |
| 6437 | 6438 |
| 6438 void Code::set_type_feedback_info(Object* value, WriteBarrierMode mode) { | 6439 void Code::set_type_feedback_info(Object* value, WriteBarrierMode mode) { |
| (...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7899 #undef READ_INT64_FIELD | 7900 #undef READ_INT64_FIELD |
| 7900 #undef WRITE_INT64_FIELD | 7901 #undef WRITE_INT64_FIELD |
| 7901 #undef READ_BYTE_FIELD | 7902 #undef READ_BYTE_FIELD |
| 7902 #undef WRITE_BYTE_FIELD | 7903 #undef WRITE_BYTE_FIELD |
| 7903 #undef NOBARRIER_READ_BYTE_FIELD | 7904 #undef NOBARRIER_READ_BYTE_FIELD |
| 7904 #undef NOBARRIER_WRITE_BYTE_FIELD | 7905 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7905 | 7906 |
| 7906 } } // namespace v8::internal | 7907 } } // namespace v8::internal |
| 7907 | 7908 |
| 7908 #endif // V8_OBJECTS_INL_H_ | 7909 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |