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

Side by Side Diff: src/heap.cc

Issue 548136: Merge r3643 and r3659 from bleeding_edge to trunk to... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: '' Created 10 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 | « src/flag-definitions.h ('k') | src/ia32/ic-ia32.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 3526 matching lines...) Expand 10 before | Expand all | Expand 10 after
3537 } 3537 }
3538 3538
3539 code_space_ = 3539 code_space_ =
3540 new OldSpace(max_old_generation_size_, CODE_SPACE, EXECUTABLE); 3540 new OldSpace(max_old_generation_size_, CODE_SPACE, EXECUTABLE);
3541 if (code_space_ == NULL) return false; 3541 if (code_space_ == NULL) return false;
3542 if (!code_space_->Setup(NULL, 0)) return false; 3542 if (!code_space_->Setup(NULL, 0)) return false;
3543 3543
3544 // Initialize map space. 3544 // Initialize map space.
3545 map_space_ = new MapSpace(FLAG_use_big_map_space 3545 map_space_ = new MapSpace(FLAG_use_big_map_space
3546 ? max_old_generation_size_ 3546 ? max_old_generation_size_
3547 : (MapSpace::kMaxMapPageIndex + 1) * Page::kPageSize, 3547 : MapSpace::kMaxMapPageIndex * Page::kPageSize,
3548 FLAG_max_map_space_pages,
3548 MAP_SPACE); 3549 MAP_SPACE);
3549 if (map_space_ == NULL) return false; 3550 if (map_space_ == NULL) return false;
3550 if (!map_space_->Setup(NULL, 0)) return false; 3551 if (!map_space_->Setup(NULL, 0)) return false;
3551 3552
3552 // Initialize global property cell space. 3553 // Initialize global property cell space.
3553 cell_space_ = new CellSpace(max_old_generation_size_, CELL_SPACE); 3554 cell_space_ = new CellSpace(max_old_generation_size_, CELL_SPACE);
3554 if (cell_space_ == NULL) return false; 3555 if (cell_space_ == NULL) return false;
3555 if (!cell_space_->Setup(NULL, 0)) return false; 3556 if (!cell_space_->Setup(NULL, 0)) return false;
3556 3557
3557 // The large object code space may contain code or data. We set the memory 3558 // The large object code space may contain code or data. We set the memory
(...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
4194 void ExternalStringTable::TearDown() { 4195 void ExternalStringTable::TearDown() {
4195 new_space_strings_.Free(); 4196 new_space_strings_.Free();
4196 old_space_strings_.Free(); 4197 old_space_strings_.Free();
4197 } 4198 }
4198 4199
4199 4200
4200 List<Object*> ExternalStringTable::new_space_strings_; 4201 List<Object*> ExternalStringTable::new_space_strings_;
4201 List<Object*> ExternalStringTable::old_space_strings_; 4202 List<Object*> ExternalStringTable::old_space_strings_;
4202 4203
4203 } } // namespace v8::internal 4204 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/ia32/ic-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698