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

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

Issue 144263002: Fix x64 breakage. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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 | 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 3060 matching lines...) Expand 10 before | Expand all | Expand 10 after
3071 3071
3072 void MarkCompactCollector::EvacuatePages() { 3072 void MarkCompactCollector::EvacuatePages() {
3073 int npages = evacuation_candidates_.length(); 3073 int npages = evacuation_candidates_.length();
3074 for (int i = 0; i < npages; i++) { 3074 for (int i = 0; i < npages; i++) {
3075 Page* p = evacuation_candidates_[i]; 3075 Page* p = evacuation_candidates_[i];
3076 // TODO(hpayer): This check is just used for debugging purpose and 3076 // TODO(hpayer): This check is just used for debugging purpose and
3077 // should be removed or turned into an assert after investigating the 3077 // should be removed or turned into an assert after investigating the
3078 // crash in concurrent sweeping. 3078 // crash in concurrent sweeping.
3079 CHECK(p->IsEvacuationCandidate() || 3079 CHECK(p->IsEvacuationCandidate() ||
3080 p->IsFlagSet(Page::RESCAN_ON_EVACUATION)); 3080 p->IsFlagSet(Page::RESCAN_ON_EVACUATION));
3081 CHECK_EQ(p->parallel_sweeping(), 0); 3081 CHECK_EQ(static_cast<int>(p->parallel_sweeping()), 0);
3082 if (p->IsEvacuationCandidate()) { 3082 if (p->IsEvacuationCandidate()) {
3083 // During compaction we might have to request a new page. 3083 // During compaction we might have to request a new page.
3084 // Check that space still have room for that. 3084 // Check that space still have room for that.
3085 if (static_cast<PagedSpace*>(p->owner())->CanExpand()) { 3085 if (static_cast<PagedSpace*>(p->owner())->CanExpand()) {
3086 EvacuateLiveObjectsFromPage(p); 3086 EvacuateLiveObjectsFromPage(p);
3087 } else { 3087 } else {
3088 // Without room for expansion evacuation is not guaranteed to succeed. 3088 // Without room for expansion evacuation is not guaranteed to succeed.
3089 // Pessimistically abandon unevacuated pages. 3089 // Pessimistically abandon unevacuated pages.
3090 for (int j = i; j < npages; j++) { 3090 for (int j = i; j < npages; j++) {
3091 Page* page = evacuation_candidates_[j]; 3091 Page* page = evacuation_candidates_[j];
(...skipping 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after
4396 while (buffer != NULL) { 4396 while (buffer != NULL) {
4397 SlotsBuffer* next_buffer = buffer->next(); 4397 SlotsBuffer* next_buffer = buffer->next();
4398 DeallocateBuffer(buffer); 4398 DeallocateBuffer(buffer);
4399 buffer = next_buffer; 4399 buffer = next_buffer;
4400 } 4400 }
4401 *buffer_address = NULL; 4401 *buffer_address = NULL;
4402 } 4402 }
4403 4403
4404 4404
4405 } } // namespace v8::internal 4405 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698