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 6399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6410 | 6410 |
6411 | 6411 |
6412 void Code::WipeOutHeader() { | 6412 void Code::WipeOutHeader() { |
6413 WRITE_FIELD(this, kRelocationInfoOffset, NULL); | 6413 WRITE_FIELD(this, kRelocationInfoOffset, NULL); |
6414 WRITE_FIELD(this, kHandlerTableOffset, NULL); | 6414 WRITE_FIELD(this, kHandlerTableOffset, NULL); |
6415 WRITE_FIELD(this, kDeoptimizationDataOffset, NULL); | 6415 WRITE_FIELD(this, kDeoptimizationDataOffset, NULL); |
6416 // Do not wipe out major/minor keys on a code stub or IC | 6416 // Do not wipe out major/minor keys on a code stub or IC |
6417 if (!READ_FIELD(this, kTypeFeedbackInfoOffset)->IsSmi()) { | 6417 if (!READ_FIELD(this, kTypeFeedbackInfoOffset)->IsSmi()) { |
6418 WRITE_FIELD(this, kTypeFeedbackInfoOffset, NULL); | 6418 WRITE_FIELD(this, kTypeFeedbackInfoOffset, NULL); |
6419 } | 6419 } |
6420 WRITE_FIELD(this, kNextCodeLinkOffset, NULL); | |
rmcilroy
2015/09/02 12:33:52
+hpayer
Should we also wipeout kGCMetadataOffset
| |
6420 } | 6421 } |
6421 | 6422 |
6422 | 6423 |
6423 Object* Code::type_feedback_info() { | 6424 Object* Code::type_feedback_info() { |
6424 DCHECK(kind() == FUNCTION); | 6425 DCHECK(kind() == FUNCTION); |
6425 return raw_type_feedback_info(); | 6426 return raw_type_feedback_info(); |
6426 } | 6427 } |
6427 | 6428 |
6428 | 6429 |
6429 void Code::set_type_feedback_info(Object* value, WriteBarrierMode mode) { | 6430 void Code::set_type_feedback_info(Object* value, WriteBarrierMode mode) { |
(...skipping 1456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
7886 #undef READ_INT64_FIELD | 7887 #undef READ_INT64_FIELD |
7887 #undef WRITE_INT64_FIELD | 7888 #undef WRITE_INT64_FIELD |
7888 #undef READ_BYTE_FIELD | 7889 #undef READ_BYTE_FIELD |
7889 #undef WRITE_BYTE_FIELD | 7890 #undef WRITE_BYTE_FIELD |
7890 #undef NOBARRIER_READ_BYTE_FIELD | 7891 #undef NOBARRIER_READ_BYTE_FIELD |
7891 #undef NOBARRIER_WRITE_BYTE_FIELD | 7892 #undef NOBARRIER_WRITE_BYTE_FIELD |
7892 | 7893 |
7893 } } // namespace v8::internal | 7894 } } // namespace v8::internal |
7894 | 7895 |
7895 #endif // V8_OBJECTS_INL_H_ | 7896 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |