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

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

Issue 8816020: More removal of write barriers and a rename to a less scary name. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years 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.cc ('k') | src/runtime.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 set_map_word(MapWord::FromMap(value)); 1108 set_map_word(MapWord::FromMap(value));
1109 if (value != NULL) { 1109 if (value != NULL) {
1110 // TODO(1600) We are passing NULL as a slot because maps can never be on 1110 // TODO(1600) We are passing NULL as a slot because maps can never be on
1111 // evacuation candidate. 1111 // evacuation candidate.
1112 value->GetHeap()->incremental_marking()->RecordWrite(this, NULL, value); 1112 value->GetHeap()->incremental_marking()->RecordWrite(this, NULL, value);
1113 } 1113 }
1114 } 1114 }
1115 1115
1116 1116
1117 // Unsafe accessor omitting write barrier. 1117 // Unsafe accessor omitting write barrier.
1118 void HeapObject::set_map_unsafe(Map* value) { 1118 void HeapObject::set_map_no_wb(Map* value) {
1119 set_map_word(MapWord::FromMap(value)); 1119 set_map_word(MapWord::FromMap(value));
1120 } 1120 }
1121 1121
1122 1122
1123 MapWord HeapObject::map_word() { 1123 MapWord HeapObject::map_word() {
1124 return MapWord(reinterpret_cast<uintptr_t>(READ_FIELD(this, kMapOffset))); 1124 return MapWord(reinterpret_cast<uintptr_t>(READ_FIELD(this, kMapOffset)));
1125 } 1125 }
1126 1126
1127 1127
1128 void HeapObject::set_map_word(MapWord map_word) { 1128 void HeapObject::set_map_word(MapWord map_word) {
(...skipping 3573 matching lines...) Expand 10 before | Expand all | Expand 10 after
4702 #undef WRITE_INT_FIELD 4702 #undef WRITE_INT_FIELD
4703 #undef READ_SHORT_FIELD 4703 #undef READ_SHORT_FIELD
4704 #undef WRITE_SHORT_FIELD 4704 #undef WRITE_SHORT_FIELD
4705 #undef READ_BYTE_FIELD 4705 #undef READ_BYTE_FIELD
4706 #undef WRITE_BYTE_FIELD 4706 #undef WRITE_BYTE_FIELD
4707 4707
4708 4708
4709 } } // namespace v8::internal 4709 } } // namespace v8::internal
4710 4710
4711 #endif // V8_OBJECTS_INL_H_ 4711 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698