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

Side by Side Diff: src/heap.cc

Issue 556018: Increase young generation size on Android. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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 | « 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 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 int Heap::old_gen_allocation_limit_ = kMinimumAllocationLimit; 69 int Heap::old_gen_allocation_limit_ = kMinimumAllocationLimit;
70 70
71 int Heap::old_gen_exhausted_ = false; 71 int Heap::old_gen_exhausted_ = false;
72 72
73 int Heap::amount_of_external_allocated_memory_ = 0; 73 int Heap::amount_of_external_allocated_memory_ = 0;
74 int Heap::amount_of_external_allocated_memory_at_last_global_gc_ = 0; 74 int Heap::amount_of_external_allocated_memory_at_last_global_gc_ = 0;
75 75
76 // semispace_size_ should be a power of 2 and old_generation_size_ should be 76 // semispace_size_ should be a power of 2 and old_generation_size_ should be
77 // a multiple of Page::kPageSize. 77 // a multiple of Page::kPageSize.
78 #if defined(ANDROID) 78 #if defined(ANDROID)
79 int Heap::max_semispace_size_ = 512*KB; 79 int Heap::max_semispace_size_ = 2*MB;
80 int Heap::max_old_generation_size_ = 128*MB; 80 int Heap::max_old_generation_size_ = 192*MB;
81 int Heap::initial_semispace_size_ = 128*KB; 81 int Heap::initial_semispace_size_ = 128*KB;
82 size_t Heap::code_range_size_ = 0; 82 size_t Heap::code_range_size_ = 0;
83 #elif defined(V8_TARGET_ARCH_X64) 83 #elif defined(V8_TARGET_ARCH_X64)
84 int Heap::max_semispace_size_ = 16*MB; 84 int Heap::max_semispace_size_ = 16*MB;
85 int Heap::max_old_generation_size_ = 1*GB; 85 int Heap::max_old_generation_size_ = 1*GB;
86 int Heap::initial_semispace_size_ = 1*MB; 86 int Heap::initial_semispace_size_ = 1*MB;
87 size_t Heap::code_range_size_ = 512*MB; 87 size_t Heap::code_range_size_ = 512*MB;
88 #else 88 #else
89 int Heap::max_semispace_size_ = 8*MB; 89 int Heap::max_semispace_size_ = 8*MB;
90 int Heap::max_old_generation_size_ = 512*MB; 90 int Heap::max_old_generation_size_ = 512*MB;
(...skipping 4104 matching lines...) Expand 10 before | Expand all | Expand 10 after
4195 void ExternalStringTable::TearDown() { 4195 void ExternalStringTable::TearDown() {
4196 new_space_strings_.Free(); 4196 new_space_strings_.Free();
4197 old_space_strings_.Free(); 4197 old_space_strings_.Free();
4198 } 4198 }
4199 4199
4200 4200
4201 List<Object*> ExternalStringTable::new_space_strings_; 4201 List<Object*> ExternalStringTable::new_space_strings_;
4202 List<Object*> ExternalStringTable::old_space_strings_; 4202 List<Object*> ExternalStringTable::old_space_strings_;
4203 4203
4204 } } // namespace v8::internal 4204 } } // 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