| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 int Heap::max_old_generation_size_ = 512*MB; | 91 int Heap::max_old_generation_size_ = 512*MB; |
| 92 int Heap::initial_semispace_size_ = 512*KB; | 92 int Heap::initial_semispace_size_ = 512*KB; |
| 93 size_t Heap::code_range_size_ = 0; | 93 size_t Heap::code_range_size_ = 0; |
| 94 #endif | 94 #endif |
| 95 | 95 |
| 96 // The snapshot semispace size will be the default semispace size if | 96 // The snapshot semispace size will be the default semispace size if |
| 97 // snapshotting is used and will be the requested semispace size as | 97 // snapshotting is used and will be the requested semispace size as |
| 98 // set up by ConfigureHeap otherwise. | 98 // set up by ConfigureHeap otherwise. |
| 99 int Heap::reserved_semispace_size_ = Heap::max_semispace_size_; | 99 int Heap::reserved_semispace_size_ = Heap::max_semispace_size_; |
| 100 | 100 |
| 101 ExternalStringDiposeCallback Heap::external_string_dispose_callback_ = NULL; |
| 102 |
| 101 List<Heap::GCPrologueCallbackPair> Heap::gc_prologue_callbacks_; | 103 List<Heap::GCPrologueCallbackPair> Heap::gc_prologue_callbacks_; |
| 102 List<Heap::GCEpilogueCallbackPair> Heap::gc_epilogue_callbacks_; | 104 List<Heap::GCEpilogueCallbackPair> Heap::gc_epilogue_callbacks_; |
| 103 | 105 |
| 104 GCCallback Heap::global_gc_prologue_callback_ = NULL; | 106 GCCallback Heap::global_gc_prologue_callback_ = NULL; |
| 105 GCCallback Heap::global_gc_epilogue_callback_ = NULL; | 107 GCCallback Heap::global_gc_epilogue_callback_ = NULL; |
| 106 | 108 |
| 107 // Variables set based on semispace_size_ and old_generation_size_ in | 109 // Variables set based on semispace_size_ and old_generation_size_ in |
| 108 // ConfigureHeap. | 110 // ConfigureHeap. |
| 109 | 111 |
| 110 // Will be 4 * reserved_semispace_size_ to ensure that young | 112 // Will be 4 * reserved_semispace_size_ to ensure that young |
| (...skipping 4542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4653 void ExternalStringTable::TearDown() { | 4655 void ExternalStringTable::TearDown() { |
| 4654 new_space_strings_.Free(); | 4656 new_space_strings_.Free(); |
| 4655 old_space_strings_.Free(); | 4657 old_space_strings_.Free(); |
| 4656 } | 4658 } |
| 4657 | 4659 |
| 4658 | 4660 |
| 4659 List<Object*> ExternalStringTable::new_space_strings_; | 4661 List<Object*> ExternalStringTable::new_space_strings_; |
| 4660 List<Object*> ExternalStringTable::old_space_strings_; | 4662 List<Object*> ExternalStringTable::old_space_strings_; |
| 4661 | 4663 |
| 4662 } } // namespace v8::internal | 4664 } } // namespace v8::internal |
| OLD | NEW |