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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |