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

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

Issue 19971002: Rip out infrastructure for deferred stack trace formatting. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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/heap-inl.h ('k') | no next file » | 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 2378 matching lines...) Expand 10 before | Expand all | Expand 10 after
2389 2389
2390 // Prune the string table removing all strings only pointed to by the 2390 // Prune the string table removing all strings only pointed to by the
2391 // string table. Cannot use string_table() here because the string 2391 // string table. Cannot use string_table() here because the string
2392 // table is marked. 2392 // table is marked.
2393 StringTable* string_table = heap()->string_table(); 2393 StringTable* string_table = heap()->string_table();
2394 StringTableCleaner v(heap()); 2394 StringTableCleaner v(heap());
2395 string_table->IterateElements(&v); 2395 string_table->IterateElements(&v);
2396 string_table->ElementsRemoved(v.PointersRemoved()); 2396 string_table->ElementsRemoved(v.PointersRemoved());
2397 heap()->external_string_table_.Iterate(&v); 2397 heap()->external_string_table_.Iterate(&v);
2398 heap()->external_string_table_.CleanUp(); 2398 heap()->external_string_table_.CleanUp();
2399 heap()->error_object_list_.RemoveUnmarked(heap());
2400 2399
2401 // Process the weak references. 2400 // Process the weak references.
2402 MarkCompactWeakObjectRetainer mark_compact_object_retainer; 2401 MarkCompactWeakObjectRetainer mark_compact_object_retainer;
2403 heap()->ProcessWeakReferences(&mark_compact_object_retainer); 2402 heap()->ProcessWeakReferences(&mark_compact_object_retainer);
2404 2403
2405 // Remove object groups after marking phase. 2404 // Remove object groups after marking phase.
2406 heap()->isolate()->global_handles()->RemoveObjectGroups(); 2405 heap()->isolate()->global_handles()->RemoveObjectGroups();
2407 heap()->isolate()->global_handles()->RemoveImplicitRefGroups(); 2406 heap()->isolate()->global_handles()->RemoveImplicitRefGroups();
2408 2407
2409 // Flush code from collected candidates. 2408 // Flush code from collected candidates.
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
3456 3455
3457 // Update pointer from the native contexts list. 3456 // Update pointer from the native contexts list.
3458 updating_visitor.VisitPointer(heap_->native_contexts_list_address()); 3457 updating_visitor.VisitPointer(heap_->native_contexts_list_address());
3459 3458
3460 heap_->string_table()->Iterate(&updating_visitor); 3459 heap_->string_table()->Iterate(&updating_visitor);
3461 3460
3462 // Update pointers from external string table. 3461 // Update pointers from external string table.
3463 heap_->UpdateReferencesInExternalStringTable( 3462 heap_->UpdateReferencesInExternalStringTable(
3464 &UpdateReferenceInExternalStringTableEntry); 3463 &UpdateReferenceInExternalStringTableEntry);
3465 3464
3466 // Update pointers in the new error object list.
3467 heap_->error_object_list()->UpdateReferences();
3468
3469 if (!FLAG_watch_ic_patching) { 3465 if (!FLAG_watch_ic_patching) {
3470 // Update JSFunction pointers from the runtime profiler. 3466 // Update JSFunction pointers from the runtime profiler.
3471 heap()->isolate()->runtime_profiler()->UpdateSamplesAfterCompact( 3467 heap()->isolate()->runtime_profiler()->UpdateSamplesAfterCompact(
3472 &updating_visitor); 3468 &updating_visitor);
3473 } 3469 }
3474 3470
3475 EvacuationWeakObjectRetainer evacuation_object_retainer; 3471 EvacuationWeakObjectRetainer evacuation_object_retainer;
3476 heap()->ProcessWeakReferences(&evacuation_object_retainer); 3472 heap()->ProcessWeakReferences(&evacuation_object_retainer);
3477 3473
3478 // Visit invalidated code (we ignored all slots on it) and clear mark-bits 3474 // Visit invalidated code (we ignored all slots on it) and clear mark-bits
(...skipping 836 matching lines...) Expand 10 before | Expand all | Expand 10 after
4315 while (buffer != NULL) { 4311 while (buffer != NULL) {
4316 SlotsBuffer* next_buffer = buffer->next(); 4312 SlotsBuffer* next_buffer = buffer->next();
4317 DeallocateBuffer(buffer); 4313 DeallocateBuffer(buffer);
4318 buffer = next_buffer; 4314 buffer = next_buffer;
4319 } 4315 }
4320 *buffer_address = NULL; 4316 *buffer_address = NULL;
4321 } 4317 }
4322 4318
4323 4319
4324 } } // namespace v8::internal 4320 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap-inl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698