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

Side by Side Diff: src/serialize.cc

Issue 6542047: Basic implementation of incremental marking. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
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
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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 320
321 // Runtime entries 321 // Runtime entries
322 Add(ExternalReference::perform_gc_function().address(), 322 Add(ExternalReference::perform_gc_function().address(),
323 RUNTIME_ENTRY, 323 RUNTIME_ENTRY,
324 1, 324 1,
325 "Runtime::PerformGC"); 325 "Runtime::PerformGC");
326 Add(ExternalReference::fill_heap_number_with_random_function().address(), 326 Add(ExternalReference::fill_heap_number_with_random_function().address(),
327 RUNTIME_ENTRY, 327 RUNTIME_ENTRY,
328 2, 328 2,
329 "V8::FillHeapNumberWithRandom"); 329 "V8::FillHeapNumberWithRandom");
330
331 Add(ExternalReference::random_uint32_function().address(), 330 Add(ExternalReference::random_uint32_function().address(),
332 RUNTIME_ENTRY, 331 RUNTIME_ENTRY,
333 3, 332 3,
334 "V8::Random"); 333 "V8::Random");
335
336 Add(ExternalReference::delete_handle_scope_extensions().address(), 334 Add(ExternalReference::delete_handle_scope_extensions().address(),
337 RUNTIME_ENTRY, 335 RUNTIME_ENTRY,
338 4, 336 4,
339 "HandleScope::DeleteExtensions"); 337 "HandleScope::DeleteExtensions");
338 Add(ExternalReference::incremental_marking_record_write_function().address(),
339 RUNTIME_ENTRY,
340 5,
341 "IncrementalMarking::RecordWrite");
342
340 343
341 // Miscellaneous 344 // Miscellaneous
342 Add(ExternalReference::the_hole_value_location().address(), 345 Add(ExternalReference::the_hole_value_location().address(),
343 UNCLASSIFIED, 346 UNCLASSIFIED,
344 2, 347 2,
345 "Factory::the_hole_value().location()"); 348 "Factory::the_hole_value().location()");
346 Add(ExternalReference::roots_address().address(), 349 Add(ExternalReference::roots_address().address(),
347 UNCLASSIFIED, 350 UNCLASSIFIED,
348 3, 351 3,
349 "Heap::roots_address()"); 352 "Heap::roots_address()");
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1540 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); 1543 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize);
1541 } 1544 }
1542 } 1545 }
1543 int allocation_address = fullness_[space]; 1546 int allocation_address = fullness_[space];
1544 fullness_[space] = allocation_address + size; 1547 fullness_[space] = allocation_address + size;
1545 return allocation_address; 1548 return allocation_address;
1546 } 1549 }
1547 1550
1548 1551
1549 } } // namespace v8::internal 1552 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698