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

Side by Side Diff: src/heap.cc

Issue 9362014: Remove 6 unused flags. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 10 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
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 5822 matching lines...) Expand 10 before | Expand all | Expand 10 after
5833 return false; 5833 return false;
5834 } 5834 }
5835 } 5835 }
5836 5836
5837 code_space_ = 5837 code_space_ =
5838 new OldSpace(this, max_old_generation_size_, CODE_SPACE, EXECUTABLE); 5838 new OldSpace(this, max_old_generation_size_, CODE_SPACE, EXECUTABLE);
5839 if (code_space_ == NULL) return false; 5839 if (code_space_ == NULL) return false;
5840 if (!code_space_->SetUp()) return false; 5840 if (!code_space_->SetUp()) return false;
5841 5841
5842 // Initialize map space. 5842 // Initialize map space.
5843 map_space_ = new MapSpace(this, 5843 map_space_ = new MapSpace(this, max_old_generation_size_, MAP_SPACE);
5844 max_old_generation_size_,
5845 FLAG_max_map_space_pages,
5846 MAP_SPACE);
5847 if (map_space_ == NULL) return false; 5844 if (map_space_ == NULL) return false;
5848 if (!map_space_->SetUp()) return false; 5845 if (!map_space_->SetUp()) return false;
5849 5846
5850 // Initialize global property cell space. 5847 // Initialize global property cell space.
5851 cell_space_ = new CellSpace(this, max_old_generation_size_, CELL_SPACE); 5848 cell_space_ = new CellSpace(this, max_old_generation_size_, CELL_SPACE);
5852 if (cell_space_ == NULL) return false; 5849 if (cell_space_ == NULL) return false;
5853 if (!cell_space_->SetUp()) return false; 5850 if (!cell_space_->SetUp()) return false;
5854 5851
5855 // The large object code space may contain code or data. We set the memory 5852 // The large object code space may contain code or data. We set the memory
5856 // to be non-executable here for safety, but this means we need to enable it 5853 // to be non-executable here for safety, but this means we need to enable it
(...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after
6881 isolate_->heap()->store_buffer()->Compact(); 6878 isolate_->heap()->store_buffer()->Compact();
6882 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); 6879 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED);
6883 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { 6880 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) {
6884 next = chunk->next_chunk(); 6881 next = chunk->next_chunk();
6885 isolate_->memory_allocator()->Free(chunk); 6882 isolate_->memory_allocator()->Free(chunk);
6886 } 6883 }
6887 chunks_queued_for_free_ = NULL; 6884 chunks_queued_for_free_ = NULL;
6888 } 6885 }
6889 6886
6890 } } // namespace v8::internal 6887 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/hydrogen.cc » ('j') | src/hydrogen.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698