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

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

Issue 6580038: [Isolates] Merge from bleeding_edge, revisions 5934-6100. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 9 years, 10 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/macros.py ('k') | src/math.js » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 while (work_to_do) { 1318 while (work_to_do) {
1319 MarkObjectGroups(); 1319 MarkObjectGroups();
1320 work_to_do = !marking_stack_.is_empty(); 1320 work_to_do = !marking_stack_.is_empty();
1321 ProcessMarkingStack(); 1321 ProcessMarkingStack();
1322 } 1322 }
1323 } 1323 }
1324 1324
1325 1325
1326 void MarkCompactCollector::MarkLiveObjects() { 1326 void MarkCompactCollector::MarkLiveObjects() {
1327 GCTracer::Scope gc_scope(tracer_, GCTracer::Scope::MC_MARK); 1327 GCTracer::Scope gc_scope(tracer_, GCTracer::Scope::MC_MARK);
1328 // The recursive GC marker detects when it is nearing stack overflow,
1329 // and switches to a different marking system. JS interrupts interfere
1330 // with the C stack limit check.
1331 PostponeInterruptsScope postpone(heap_->isolate());
1332
1328 #ifdef DEBUG 1333 #ifdef DEBUG
1329 ASSERT(state_ == PREPARE_GC); 1334 ASSERT(state_ == PREPARE_GC);
1330 state_ = MARK_LIVE_OBJECTS; 1335 state_ = MARK_LIVE_OBJECTS;
1331 #endif 1336 #endif
1332 // The to space contains live objects, the from space is used as a marking 1337 // The to space contains live objects, the from space is used as a marking
1333 // stack. 1338 // stack.
1334 marking_stack_.Initialize(heap_->new_space()->FromSpaceLow(), 1339 marking_stack_.Initialize(heap_->new_space()->FromSpaceLow(),
1335 heap_->new_space()->FromSpaceHigh()); 1340 heap_->new_space()->FromSpaceHigh());
1336 1341
1337 ASSERT(!marking_stack_.overflowed()); 1342 ASSERT(!marking_stack_.overflowed());
(...skipping 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after
3003 } 3008 }
3004 3009
3005 3010
3006 void MarkCompactCollector::Initialize() { 3011 void MarkCompactCollector::Initialize() {
3007 StaticPointersToNewGenUpdatingVisitor::Initialize(); 3012 StaticPointersToNewGenUpdatingVisitor::Initialize();
3008 StaticMarkingVisitor::Initialize(); 3013 StaticMarkingVisitor::Initialize();
3009 } 3014 }
3010 3015
3011 3016
3012 } } // namespace v8::internal 3017 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/macros.py ('k') | src/math.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698