Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(275)

Side by Side Diff: src/objects-inl.h

Issue 1313953008: Remove GC metadata of code object before serializing. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698