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

Side by Side Diff: src/spaces.cc

Issue 6824078: Move most of the incremental marking write barrier to generated code. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: '' Created 9 years, 8 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
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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 Executability executable, 398 Executability executable,
399 Space* owner) { 399 Space* owner) {
400 MemoryChunk* chunk = FromAddress(base); 400 MemoryChunk* chunk = FromAddress(base);
401 401
402 ASSERT(base == chunk->address()); 402 ASSERT(base == chunk->address());
403 403
404 chunk->size_ = size; 404 chunk->size_ = size;
405 chunk->flags_ = 0; 405 chunk->flags_ = 0;
406 chunk->set_owner(owner); 406 chunk->set_owner(owner);
407 chunk->markbits()->Clear(); 407 chunk->markbits()->Clear();
408 chunk->set_scan_on_scavenge(false); 408 chunk->initialize_scan_on_scavenge(false);
409 ASSERT(OFFSET_OF(MemoryChunk, scan_on_scavenge_) == kScanOnScavengeOffset);
410 ASSERT(OFFSET_OF(MemoryChunk, flags_) == kFlagsOffset);
409 411
410 if (executable == EXECUTABLE) chunk->SetFlag(IS_EXECUTABLE); 412 if (executable == EXECUTABLE) chunk->SetFlag(IS_EXECUTABLE);
411 413
412 if (owner == Heap::old_data_space()) chunk->SetFlag(CONTAINS_ONLY_DATA); 414 if (owner == Heap::old_data_space()) chunk->SetFlag(CONTAINS_ONLY_DATA);
413 415
414 return chunk; 416 return chunk;
415 } 417 }
416 418
417 419
418 void MemoryChunk::InsertAfter(MemoryChunk* other) { 420 void MemoryChunk::InsertAfter(MemoryChunk* other) {
(...skipping 1749 matching lines...) Expand 10 before | Expand all | Expand 10 after
2168 for (HeapObject* obj = obj_it.next(); obj != NULL; obj = obj_it.next()) { 2170 for (HeapObject* obj = obj_it.next(); obj != NULL; obj = obj_it.next()) {
2169 if (obj->IsCode()) { 2171 if (obj->IsCode()) {
2170 Code* code = Code::cast(obj); 2172 Code* code = Code::cast(obj);
2171 code_kind_statistics[code->kind()] += code->Size(); 2173 code_kind_statistics[code->kind()] += code->Size();
2172 } 2174 }
2173 } 2175 }
2174 } 2176 }
2175 #endif // DEBUG 2177 #endif // DEBUG
2176 2178
2177 } } // namespace v8::internal 2179 } } // namespace v8::internal
OLDNEW
« src/mark-compact.h ('K') | « src/spaces.h ('k') | src/spaces-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698