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

Side by Side Diff: src/serialize.cc

Issue 7032005: Unify markbits for old and new spaces. (Closed) Base URL: https://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 | « src/mark-compact-inl.h ('k') | src/spaces.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 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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 "OffsetsVector::static_offsets_vector"); 390 "OffsetsVector::static_offsets_vector");
391 #endif // V8_INTERPRETED_REGEXP 391 #endif // V8_INTERPRETED_REGEXP
392 Add(ExternalReference::new_space_start(isolate).address(), 392 Add(ExternalReference::new_space_start(isolate).address(),
393 UNCLASSIFIED, 393 UNCLASSIFIED,
394 10, 394 10,
395 "Heap::NewSpaceStart()"); 395 "Heap::NewSpaceStart()");
396 Add(ExternalReference::new_space_mask(isolate).address(), 396 Add(ExternalReference::new_space_mask(isolate).address(),
397 UNCLASSIFIED, 397 UNCLASSIFIED,
398 11, 398 11,
399 "Heap::NewSpaceMask()"); 399 "Heap::NewSpaceMask()");
400 Add(ExternalReference::new_space_mark_bits(isolate).address(), 400 Add(ExternalReference::heap_always_allocate_scope_depth(isolate).address(),
401 UNCLASSIFIED, 401 UNCLASSIFIED,
402 12, 402 12,
403 "Marking::new_space_bitmap()");
404 Add(ExternalReference::heap_always_allocate_scope_depth(isolate).address(),
405 UNCLASSIFIED,
406 13,
407 "Heap::always_allocate_scope_depth()"); 403 "Heap::always_allocate_scope_depth()");
408 Add(ExternalReference::new_space_allocation_limit_address(isolate).address(), 404 Add(ExternalReference::new_space_allocation_limit_address(isolate).address(),
409 UNCLASSIFIED, 405 UNCLASSIFIED,
410 14, 406 13,
411 "Heap::NewSpaceAllocationLimitAddress()"); 407 "Heap::NewSpaceAllocationLimitAddress()");
412 Add(ExternalReference::new_space_allocation_top_address(isolate).address(), 408 Add(ExternalReference::new_space_allocation_top_address(isolate).address(),
413 UNCLASSIFIED, 409 UNCLASSIFIED,
414 15, 410 15,
Erik Corry 2011/05/16 18:44:49 Don't we need a 14 any more?
Vyacheslav Egorov (Chromium) 2011/05/17 11:18:32 Reverted.
415 "Heap::NewSpaceAllocationTopAddress()"); 411 "Heap::NewSpaceAllocationTopAddress()");
416 #ifdef ENABLE_DEBUGGER_SUPPORT 412 #ifdef ENABLE_DEBUGGER_SUPPORT
417 Add(ExternalReference::debug_break(isolate).address(), 413 Add(ExternalReference::debug_break(isolate).address(),
418 UNCLASSIFIED, 414 UNCLASSIFIED,
419 16, 415 16,
420 "Debug::Break()"); 416 "Debug::Break()");
421 Add(ExternalReference::debug_step_in_fp_address(isolate).address(), 417 Add(ExternalReference::debug_step_in_fp_address(isolate).address(),
422 UNCLASSIFIED, 418 UNCLASSIFIED,
423 17, 419 17,
424 "Debug::step_in_fp_addr()"); 420 "Debug::step_in_fp_addr()");
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1598 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize); 1594 fullness_[space] = RoundUp(fullness_[space], Page::kPageSize);
1599 } 1595 }
1600 } 1596 }
1601 int allocation_address = fullness_[space]; 1597 int allocation_address = fullness_[space];
1602 fullness_[space] = allocation_address + size; 1598 fullness_[space] = allocation_address + size;
1603 return allocation_address; 1599 return allocation_address;
1604 } 1600 }
1605 1601
1606 1602
1607 } } // namespace v8::internal 1603 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mark-compact-inl.h ('k') | src/spaces.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698