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 4046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4057 return true; | 4057 return true; |
4058 } | 4058 } |
4059 | 4059 |
4060 | 4060 |
4061 bool Heap::ConfigureHeapDefault() { | 4061 bool Heap::ConfigureHeapDefault() { |
4062 return ConfigureHeap(FLAG_max_new_space_size / 2, FLAG_max_old_space_size); | 4062 return ConfigureHeap(FLAG_max_new_space_size / 2, FLAG_max_old_space_size); |
4063 } | 4063 } |
4064 | 4064 |
4065 | 4065 |
4066 void Heap::RecordStats(HeapStats* stats, bool take_snapshot) { | 4066 void Heap::RecordStats(HeapStats* stats, bool take_snapshot) { |
4067 *stats->start_marker = 0xDECADE00; | 4067 *stats->start_marker = HeapStats::kStartMarker; |
4068 *stats->end_marker = 0xDECADE01; | 4068 *stats->end_marker = HeapStats::kEndMarker; |
4069 *stats->new_space_size = new_space_.Size(); | 4069 *stats->new_space_size = new_space_.Size(); |
4070 *stats->new_space_capacity = new_space_.Capacity(); | 4070 *stats->new_space_capacity = new_space_.Capacity(); |
4071 *stats->old_pointer_space_size = old_pointer_space_->Size(); | 4071 *stats->old_pointer_space_size = old_pointer_space_->Size(); |
4072 *stats->old_pointer_space_capacity = old_pointer_space_->Capacity(); | 4072 *stats->old_pointer_space_capacity = old_pointer_space_->Capacity(); |
4073 *stats->old_data_space_size = old_data_space_->Size(); | 4073 *stats->old_data_space_size = old_data_space_->Size(); |
4074 *stats->old_data_space_capacity = old_data_space_->Capacity(); | 4074 *stats->old_data_space_capacity = old_data_space_->Capacity(); |
4075 *stats->code_space_size = code_space_->Size(); | 4075 *stats->code_space_size = code_space_->Size(); |
4076 *stats->code_space_capacity = code_space_->Capacity(); | 4076 *stats->code_space_capacity = code_space_->Capacity(); |
4077 *stats->map_space_size = map_space_->Size(); | 4077 *stats->map_space_size = map_space_->Size(); |
4078 *stats->map_space_capacity = map_space_->Capacity(); | 4078 *stats->map_space_capacity = map_space_->Capacity(); |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4965 void ExternalStringTable::TearDown() { | 4965 void ExternalStringTable::TearDown() { |
4966 new_space_strings_.Free(); | 4966 new_space_strings_.Free(); |
4967 old_space_strings_.Free(); | 4967 old_space_strings_.Free(); |
4968 } | 4968 } |
4969 | 4969 |
4970 | 4970 |
4971 List<Object*> ExternalStringTable::new_space_strings_; | 4971 List<Object*> ExternalStringTable::new_space_strings_; |
4972 List<Object*> ExternalStringTable::old_space_strings_; | 4972 List<Object*> ExternalStringTable::old_space_strings_; |
4973 | 4973 |
4974 } } // namespace v8::internal | 4974 } } // namespace v8::internal |
OLD | NEW |