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

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

Issue 190883002: Update serializer to be able to deal with ool constant pool. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/globals.h ('k') | src/serialize.cc » ('j') | 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 // 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 5665 matching lines...) Expand 10 before | Expand all | Expand 10 after
5676 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) 5676 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset)
5677 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) 5677 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset)
5678 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) 5678 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset)
5679 ACCESSORS(Code, raw_type_feedback_info, Object, kTypeFeedbackInfoOffset) 5679 ACCESSORS(Code, raw_type_feedback_info, Object, kTypeFeedbackInfoOffset)
5680 5680
5681 5681
5682 void Code::WipeOutHeader() { 5682 void Code::WipeOutHeader() {
5683 WRITE_FIELD(this, kRelocationInfoOffset, NULL); 5683 WRITE_FIELD(this, kRelocationInfoOffset, NULL);
5684 WRITE_FIELD(this, kHandlerTableOffset, NULL); 5684 WRITE_FIELD(this, kHandlerTableOffset, NULL);
5685 WRITE_FIELD(this, kDeoptimizationDataOffset, NULL); 5685 WRITE_FIELD(this, kDeoptimizationDataOffset, NULL);
5686 WRITE_FIELD(this, kConstantPoolOffset, NULL);
5686 // Do not wipe out e.g. a minor key. 5687 // Do not wipe out e.g. a minor key.
5687 if (!READ_FIELD(this, kTypeFeedbackInfoOffset)->IsSmi()) { 5688 if (!READ_FIELD(this, kTypeFeedbackInfoOffset)->IsSmi()) {
5688 WRITE_FIELD(this, kTypeFeedbackInfoOffset, NULL); 5689 WRITE_FIELD(this, kTypeFeedbackInfoOffset, NULL);
5689 } 5690 }
5690 } 5691 }
5691 5692
5692 5693
5693 Object* Code::type_feedback_info() { 5694 Object* Code::type_feedback_info() {
5694 ASSERT(kind() == FUNCTION); 5695 ASSERT(kind() == FUNCTION);
5695 return raw_type_feedback_info(); 5696 return raw_type_feedback_info();
(...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after
6748 #undef READ_UINT32_FIELD 6749 #undef READ_UINT32_FIELD
6749 #undef WRITE_UINT32_FIELD 6750 #undef WRITE_UINT32_FIELD
6750 #undef READ_SHORT_FIELD 6751 #undef READ_SHORT_FIELD
6751 #undef WRITE_SHORT_FIELD 6752 #undef WRITE_SHORT_FIELD
6752 #undef READ_BYTE_FIELD 6753 #undef READ_BYTE_FIELD
6753 #undef WRITE_BYTE_FIELD 6754 #undef WRITE_BYTE_FIELD
6754 6755
6755 } } // namespace v8::internal 6756 } } // namespace v8::internal
6756 6757
6757 #endif // V8_OBJECTS_INL_H_ 6758 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698