| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |