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

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

Issue 7015043: Fix the GC branch so it compiles and runs on 64 bit. (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 | « src/incremental-marking.h ('k') | src/store-buffer.cc » ('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 2525 matching lines...) Expand 10 before | Expand all | Expand 10 after
2536 2536
2537 p->ClearFlag(MemoryChunk::WAS_SWEPT_CONSERVATIVELY); 2537 p->ClearFlag(MemoryChunk::WAS_SWEPT_CONSERVATIVELY);
2538 2538
2539 int last_cell_index = 2539 int last_cell_index =
2540 Page::MarkbitsBitmap::IndexToCell( 2540 Page::MarkbitsBitmap::IndexToCell(
2541 Page::MarkbitsBitmap::CellAlignIndex( 2541 Page::MarkbitsBitmap::CellAlignIndex(
2542 p->AddressToMarkbitIndex(p->ObjectAreaEnd()))); 2542 p->AddressToMarkbitIndex(p->ObjectAreaEnd())));
2543 2543
2544 int cell_index = Page::kFirstUsedCell; 2544 int cell_index = Page::kFirstUsedCell;
2545 Address free_start = p->ObjectAreaStart(); 2545 Address free_start = p->ObjectAreaStart();
2546 ASSERT(reinterpret_cast<uint32_t>(free_start) % (32 * kPointerSize) == 0); 2546 ASSERT(reinterpret_cast<intptr_t>(free_start) % (32 * kPointerSize) == 0);
2547 Address object_address = p->ObjectAreaStart(); 2547 Address object_address = p->ObjectAreaStart();
2548 int offsets[16]; 2548 int offsets[16];
2549 2549
2550 for (cell_index = Page::kFirstUsedCell; 2550 for (cell_index = Page::kFirstUsedCell;
2551 cell_index < last_cell_index; 2551 cell_index < last_cell_index;
2552 cell_index++, object_address += 32 * kPointerSize) { 2552 cell_index++, object_address += 32 * kPointerSize) {
2553 ASSERT((unsigned)cell_index == 2553 ASSERT((unsigned)cell_index ==
2554 Page::MarkbitsBitmap::IndexToCell( 2554 Page::MarkbitsBitmap::IndexToCell(
2555 Page::MarkbitsBitmap::CellAlignIndex( 2555 Page::MarkbitsBitmap::CellAlignIndex(
2556 p->AddressToMarkbitIndex(object_address)))); 2556 p->AddressToMarkbitIndex(object_address))));
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
2726 } 2726 }
2727 2727
2728 2728
2729 void MarkCompactCollector::Initialize() { 2729 void MarkCompactCollector::Initialize() {
2730 StaticPointersToNewGenUpdatingVisitor::Initialize(); 2730 StaticPointersToNewGenUpdatingVisitor::Initialize();
2731 StaticMarkingVisitor::Initialize(); 2731 StaticMarkingVisitor::Initialize();
2732 } 2732 }
2733 2733
2734 2734
2735 } } // namespace v8::internal 2735 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/incremental-marking.h ('k') | src/store-buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698