| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // a multiple of Page::kPageSize. | 75 // a multiple of Page::kPageSize. |
| 76 #if defined(ANDROID) | 76 #if defined(ANDROID) |
| 77 int Heap::semispace_size_ = 512*KB; | 77 int Heap::semispace_size_ = 512*KB; |
| 78 int Heap::old_generation_size_ = 128*MB; | 78 int Heap::old_generation_size_ = 128*MB; |
| 79 int Heap::initial_semispace_size_ = 128*KB; | 79 int Heap::initial_semispace_size_ = 128*KB; |
| 80 size_t Heap::code_range_size_ = 0; | 80 size_t Heap::code_range_size_ = 0; |
| 81 #elif defined(V8_TARGET_ARCH_X64) | 81 #elif defined(V8_TARGET_ARCH_X64) |
| 82 int Heap::semispace_size_ = 16*MB; | 82 int Heap::semispace_size_ = 16*MB; |
| 83 int Heap::old_generation_size_ = 1*GB; | 83 int Heap::old_generation_size_ = 1*GB; |
| 84 int Heap::initial_semispace_size_ = 1*MB; | 84 int Heap::initial_semispace_size_ = 1*MB; |
| 85 size_t Heap::code_range_size_ = 256*MB; | 85 size_t Heap::code_range_size_ = 512*MB; |
| 86 #else | 86 #else |
| 87 int Heap::semispace_size_ = 8*MB; | 87 int Heap::semispace_size_ = 8*MB; |
| 88 int Heap::old_generation_size_ = 512*MB; | 88 int Heap::old_generation_size_ = 512*MB; |
| 89 int Heap::initial_semispace_size_ = 512*KB; | 89 int Heap::initial_semispace_size_ = 512*KB; |
| 90 size_t Heap::code_range_size_ = 0; | 90 size_t Heap::code_range_size_ = 0; |
| 91 #endif | 91 #endif |
| 92 | 92 |
| 93 GCCallback Heap::global_gc_prologue_callback_ = NULL; | 93 GCCallback Heap::global_gc_prologue_callback_ = NULL; |
| 94 GCCallback Heap::global_gc_epilogue_callback_ = NULL; | 94 GCCallback Heap::global_gc_epilogue_callback_ = NULL; |
| 95 | 95 |
| (...skipping 3791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3887 for (int i = 0; i < kNumberOfCaches; i++) { | 3887 for (int i = 0; i < kNumberOfCaches; i++) { |
| 3888 if (caches_[i] != NULL) { | 3888 if (caches_[i] != NULL) { |
| 3889 delete caches_[i]; | 3889 delete caches_[i]; |
| 3890 caches_[i] = NULL; | 3890 caches_[i] = NULL; |
| 3891 } | 3891 } |
| 3892 } | 3892 } |
| 3893 } | 3893 } |
| 3894 | 3894 |
| 3895 | 3895 |
| 3896 } } // namespace v8::internal | 3896 } } // namespace v8::internal |
| OLD | NEW |