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

Side by Side Diff: src/heap.cc

Issue 507025: Force mark sweep if size of map space is to big to allow forward pointers enc... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years 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.h ('k') | src/mark-compact.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 3415 matching lines...) Expand 10 before | Expand all | Expand 10 after
3426 return false; 3426 return false;
3427 } 3427 }
3428 } 3428 }
3429 3429
3430 code_space_ = 3430 code_space_ =
3431 new OldSpace(max_old_generation_size_, CODE_SPACE, EXECUTABLE); 3431 new OldSpace(max_old_generation_size_, CODE_SPACE, EXECUTABLE);
3432 if (code_space_ == NULL) return false; 3432 if (code_space_ == NULL) return false;
3433 if (!code_space_->Setup(NULL, 0)) return false; 3433 if (!code_space_->Setup(NULL, 0)) return false;
3434 3434
3435 // Initialize map space. 3435 // Initialize map space.
3436 map_space_ = new MapSpace(kMaxMapSpaceSize, MAP_SPACE); 3436 map_space_ = new MapSpace(FLAG_use_big_map_space
3437 ? max_old_generation_size_
3438 : (MapSpace::kMaxMapPageIndex + 1) * Page::kPageSize,
3439 MAP_SPACE);
3437 if (map_space_ == NULL) return false; 3440 if (map_space_ == NULL) return false;
3438 if (!map_space_->Setup(NULL, 0)) return false; 3441 if (!map_space_->Setup(NULL, 0)) return false;
3439 3442
3440 // Initialize global property cell space. 3443 // Initialize global property cell space.
3441 cell_space_ = new CellSpace(max_old_generation_size_, CELL_SPACE); 3444 cell_space_ = new CellSpace(max_old_generation_size_, CELL_SPACE);
3442 if (cell_space_ == NULL) return false; 3445 if (cell_space_ == NULL) return false;
3443 if (!cell_space_->Setup(NULL, 0)) return false; 3446 if (!cell_space_->Setup(NULL, 0)) return false;
3444 3447
3445 // The large object code space may contain code or data. We set the memory 3448 // The large object code space may contain code or data. We set the memory
3446 // to be non-executable here for safety, but this means we need to enable it 3449 // to be non-executable here for safety, but this means we need to enable it
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
4082 void ExternalStringTable::TearDown() { 4085 void ExternalStringTable::TearDown() {
4083 new_space_strings_.Free(); 4086 new_space_strings_.Free();
4084 old_space_strings_.Free(); 4087 old_space_strings_.Free();
4085 } 4088 }
4086 4089
4087 4090
4088 List<Object*> ExternalStringTable::new_space_strings_; 4091 List<Object*> ExternalStringTable::new_space_strings_;
4089 List<Object*> ExternalStringTable::old_space_strings_; 4092 List<Object*> ExternalStringTable::old_space_strings_;
4090 4093
4091 } } // namespace v8::internal 4094 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698