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

Side by Side Diff: src/mark-compact.cc

Issue 10807024: Optimize functions on a second thread. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 5 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/isolate.cc ('k') | src/objects.h » ('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 3291 matching lines...) Expand 10 before | Expand all | Expand 10 after
3302 if (code != NULL) { 3302 if (code != NULL) {
3303 code->Iterate(visitor); 3303 code->Iterate(visitor);
3304 SetMarkBitsUnderInvalidatedCode(code, false); 3304 SetMarkBitsUnderInvalidatedCode(code, false);
3305 } 3305 }
3306 } 3306 }
3307 invalidated_code_.Rewind(0); 3307 invalidated_code_.Rewind(0);
3308 } 3308 }
3309 3309
3310 3310
3311 void MarkCompactCollector::EvacuateNewSpaceAndCandidates() { 3311 void MarkCompactCollector::EvacuateNewSpaceAndCandidates() {
3312 Heap::RelocationLock relocation_lock(heap());
3313
3312 bool code_slots_filtering_required; 3314 bool code_slots_filtering_required;
3313 { GCTracer::Scope gc_scope(tracer_, GCTracer::Scope::MC_SWEEP_NEWSPACE); 3315 { GCTracer::Scope gc_scope(tracer_, GCTracer::Scope::MC_SWEEP_NEWSPACE);
3314 code_slots_filtering_required = MarkInvalidatedCode(); 3316 code_slots_filtering_required = MarkInvalidatedCode();
3315 3317
3316 EvacuateNewSpace(); 3318 EvacuateNewSpace();
3317 } 3319 }
3318 3320
3319 3321
3320 { GCTracer::Scope gc_scope(tracer_, GCTracer::Scope::MC_EVACUATE_PAGES); 3322 { GCTracer::Scope gc_scope(tracer_, GCTracer::Scope::MC_EVACUATE_PAGES);
3321 EvacuatePages(); 3323 EvacuatePages();
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after
4184 while (buffer != NULL) { 4186 while (buffer != NULL) {
4185 SlotsBuffer* next_buffer = buffer->next(); 4187 SlotsBuffer* next_buffer = buffer->next();
4186 DeallocateBuffer(buffer); 4188 DeallocateBuffer(buffer);
4187 buffer = next_buffer; 4189 buffer = next_buffer;
4188 } 4190 }
4189 *buffer_address = NULL; 4191 *buffer_address = NULL;
4190 } 4192 }
4191 4193
4192 4194
4193 } } // namespace v8::internal 4195 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698