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

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: MIPS support. 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') | src/serialize.cc » ('J')
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 5310 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Type feedback slot: type_feedback_info for FUNCTIONs, stub_info for STUBs. 5325 // Type feedback slot: type_feedback_info for FUNCTIONs, stub_info for STUBs.
5326 void Code::InitializeTypeFeedbackInfoNoWriteBarrier(Object* value) { 5326 void Code::InitializeTypeFeedbackInfoNoWriteBarrier(Object* value) {
5327 WRITE_FIELD(this, kTypeFeedbackInfoOffset, value); 5327 WRITE_FIELD(this, kTypeFeedbackInfoOffset, value);
5328 } 5328 }
5329 5329
5330 5330
5331 Object* Code::raw_type_feedback_info() {
5332 return Object::cast(READ_FIELD(this, kTypeFeedbackInfoOffset));
5333 }
5334
5335
5331 Object* Code::type_feedback_info() { 5336 Object* Code::type_feedback_info() {
5332 ASSERT(kind() == FUNCTION); 5337 ASSERT(kind() == FUNCTION);
5333 return Object::cast(READ_FIELD(this, kTypeFeedbackInfoOffset)); 5338 return raw_type_feedback_info();
5334 } 5339 }
5335 5340
5336 5341
5337 void Code::set_type_feedback_info(Object* value, WriteBarrierMode mode) { 5342 void Code::set_type_feedback_info(Object* value, WriteBarrierMode mode) {
5338 ASSERT(kind() == FUNCTION); 5343 ASSERT(kind() == FUNCTION);
5339 WRITE_FIELD(this, kTypeFeedbackInfoOffset, value); 5344 WRITE_FIELD(this, kTypeFeedbackInfoOffset, value);
5340 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kTypeFeedbackInfoOffset, 5345 CONDITIONAL_WRITE_BARRIER(GetHeap(), this, kTypeFeedbackInfoOffset,
5341 value, mode); 5346 value, mode);
5342 } 5347 }
5343 5348
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
6400 #undef WRITE_UINT32_FIELD 6405 #undef WRITE_UINT32_FIELD
6401 #undef READ_SHORT_FIELD 6406 #undef READ_SHORT_FIELD
6402 #undef WRITE_SHORT_FIELD 6407 #undef WRITE_SHORT_FIELD
6403 #undef READ_BYTE_FIELD 6408 #undef READ_BYTE_FIELD
6404 #undef WRITE_BYTE_FIELD 6409 #undef WRITE_BYTE_FIELD
6405 6410
6406 6411
6407 } } // namespace v8::internal 6412 } } // namespace v8::internal
6408 6413
6409 #endif // V8_OBJECTS_INL_H_ 6414 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/serialize.cc » ('j') | src/serialize.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698