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

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

Issue 54823002: Make snapshots reproducible. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments only. Created 7 years, 1 month 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/objects.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 5304 matching lines...) Expand 10 before | Expand all | Expand 10 after
5315 } 5315 }
5316 5316
5317 5317
5318 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset) 5318 INT_ACCESSORS(Code, instruction_size, kInstructionSizeOffset)
5319 INT_ACCESSORS(Code, prologue_offset, kPrologueOffset) 5319 INT_ACCESSORS(Code, prologue_offset, kPrologueOffset)
5320 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset) 5320 ACCESSORS(Code, relocation_info, ByteArray, kRelocationInfoOffset)
5321 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset) 5321 ACCESSORS(Code, handler_table, FixedArray, kHandlerTableOffset)
5322 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset) 5322 ACCESSORS(Code, deoptimization_data, FixedArray, kDeoptimizationDataOffset)
5323 5323
5324 5324
5325 void Code::WipeOutHeader() {
5326 WRITE_FIELD(this, kRelocationInfoOffset, NULL);
5327 WRITE_FIELD(this, kHandlerTableOffset, NULL);
5328 WRITE_FIELD(this, kDeoptimizationDataOffset, NULL);
5329 // Do not wipe out e.g. a minor key.
5330 if (!READ_FIELD(this, kTypeFeedbackInfoOffset)->IsSmi()) {
5331 WRITE_FIELD(this, kTypeFeedbackInfoOffset, NULL);
5332 }
5333 }
5334
5335
5325 // Type feedback slot: type_feedback_info for FUNCTIONs, stub_info for STUBs. 5336 // Type feedback slot: type_feedback_info for FUNCTIONs, stub_info for STUBs.
5326 void Code::InitializeTypeFeedbackInfoNoWriteBarrier(Object* value) { 5337 void Code::InitializeTypeFeedbackInfoNoWriteBarrier(Object* value) {
5327 WRITE_FIELD(this, kTypeFeedbackInfoOffset, value); 5338 WRITE_FIELD(this, kTypeFeedbackInfoOffset, value);
5328 } 5339 }
5329 5340
5330 5341
5331 Object* Code::type_feedback_info() { 5342 Object* Code::type_feedback_info() {
5332 ASSERT(kind() == FUNCTION); 5343 ASSERT(kind() == FUNCTION);
5333 return Object::cast(READ_FIELD(this, kTypeFeedbackInfoOffset)); 5344 return Object::cast(READ_FIELD(this, kTypeFeedbackInfoOffset));
5334 } 5345 }
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
6400 #undef WRITE_UINT32_FIELD 6411 #undef WRITE_UINT32_FIELD
6401 #undef READ_SHORT_FIELD 6412 #undef READ_SHORT_FIELD
6402 #undef WRITE_SHORT_FIELD 6413 #undef WRITE_SHORT_FIELD
6403 #undef READ_BYTE_FIELD 6414 #undef READ_BYTE_FIELD
6404 #undef WRITE_BYTE_FIELD 6415 #undef WRITE_BYTE_FIELD
6405 6416
6406 6417
6407 } } // namespace v8::internal 6418 } } // namespace v8::internal
6408 6419
6409 #endif // V8_OBJECTS_INL_H_ 6420 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698