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

Side by Side Diff: src/heap.cc

Issue 6928010: Make the marking stack into a deque (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 7 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 | « no previous file | src/incremental-marking.h » ('j') | src/mark-compact.h » ('J')
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 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after
1059 // Scavenge object reachable from the global contexts list directly. 1059 // Scavenge object reachable from the global contexts list directly.
1060 scavenge_visitor.VisitPointer(BitCast<Object**>(&global_contexts_list_)); 1060 scavenge_visitor.VisitPointer(BitCast<Object**>(&global_contexts_list_));
1061 1061
1062 new_space_front = DoScavenge(&scavenge_visitor, new_space_front); 1062 new_space_front = DoScavenge(&scavenge_visitor, new_space_front);
1063 1063
1064 UpdateNewSpaceReferencesInExternalStringTable( 1064 UpdateNewSpaceReferencesInExternalStringTable(
1065 &UpdateNewSpaceReferenceInExternalStringTableEntry); 1065 &UpdateNewSpaceReferenceInExternalStringTableEntry);
1066 1066
1067 LiveObjectList::UpdateReferencesForScavengeGC(); 1067 LiveObjectList::UpdateReferencesForScavengeGC();
1068 isolate()->runtime_profiler()->UpdateSamplesAfterScavenge(); 1068 isolate()->runtime_profiler()->UpdateSamplesAfterScavenge();
1069 incremental_marking()->UpdateMarkingStackAfterScavenge(); 1069 incremental_marking()->UpdateMarkingDequeAfterScavenge();
1070 1070
1071 ASSERT(new_space_front == new_space_.top()); 1071 ASSERT(new_space_front == new_space_.top());
1072 1072
1073 // Set age mark. 1073 // Set age mark.
1074 new_space_.set_age_mark(new_space_.top()); 1074 new_space_.set_age_mark(new_space_.top());
1075 1075
1076 new_space_.LowerInlineAllocationLimit( 1076 new_space_.LowerInlineAllocationLimit(
1077 new_space_.inline_alloction_limit_step()); 1077 new_space_.inline_alloction_limit_step());
1078 1078
1079 // Update how much has survived scavenge. 1079 // Update how much has survived scavenge.
(...skipping 4814 matching lines...) Expand 10 before | Expand all | Expand 10 after
5894 } 5894 }
5895 5895
5896 5896
5897 void ExternalStringTable::TearDown() { 5897 void ExternalStringTable::TearDown() {
5898 new_space_strings_.Free(); 5898 new_space_strings_.Free();
5899 old_space_strings_.Free(); 5899 old_space_strings_.Free();
5900 } 5900 }
5901 5901
5902 5902
5903 } } // namespace v8::internal 5903 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/incremental-marking.h » ('j') | src/mark-compact.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698