| 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 4113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4124 *stats->code_space_capacity = code_space_->Capacity(); | 4124 *stats->code_space_capacity = code_space_->Capacity(); |
| 4125 *stats->map_space_size = map_space_->Size(); | 4125 *stats->map_space_size = map_space_->Size(); |
| 4126 *stats->map_space_capacity = map_space_->Capacity(); | 4126 *stats->map_space_capacity = map_space_->Capacity(); |
| 4127 *stats->cell_space_size = cell_space_->Size(); | 4127 *stats->cell_space_size = cell_space_->Size(); |
| 4128 *stats->cell_space_capacity = cell_space_->Capacity(); | 4128 *stats->cell_space_capacity = cell_space_->Capacity(); |
| 4129 *stats->lo_space_size = lo_space_->Size(); | 4129 *stats->lo_space_size = lo_space_->Size(); |
| 4130 GlobalHandles::RecordStats(stats); | 4130 GlobalHandles::RecordStats(stats); |
| 4131 *stats->memory_allocator_size = MemoryAllocator::Size(); | 4131 *stats->memory_allocator_size = MemoryAllocator::Size(); |
| 4132 *stats->memory_allocator_capacity = | 4132 *stats->memory_allocator_capacity = |
| 4133 MemoryAllocator::Size() + MemoryAllocator::Available(); | 4133 MemoryAllocator::Size() + MemoryAllocator::Available(); |
| 4134 *stats->os_error = OS::GetLastError(); |
| 4134 if (take_snapshot) { | 4135 if (take_snapshot) { |
| 4135 HeapIterator iterator; | 4136 HeapIterator iterator; |
| 4136 for (HeapObject* obj = iterator.next(); | 4137 for (HeapObject* obj = iterator.next(); |
| 4137 obj != NULL; | 4138 obj != NULL; |
| 4138 obj = iterator.next()) { | 4139 obj = iterator.next()) { |
| 4139 // Note: snapshot won't be precise because IsFreeListNode returns true | 4140 // Note: snapshot won't be precise because IsFreeListNode returns true |
| 4140 // for any bytearray. | 4141 // for any bytearray. |
| 4141 if (FreeListNode::IsFreeListNode(obj)) continue; | 4142 if (FreeListNode::IsFreeListNode(obj)) continue; |
| 4142 InstanceType type = obj->map()->instance_type(); | 4143 InstanceType type = obj->map()->instance_type(); |
| 4143 ASSERT(0 <= type && type <= LAST_TYPE); | 4144 ASSERT(0 <= type && type <= LAST_TYPE); |
| (...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5006 void ExternalStringTable::TearDown() { | 5007 void ExternalStringTable::TearDown() { |
| 5007 new_space_strings_.Free(); | 5008 new_space_strings_.Free(); |
| 5008 old_space_strings_.Free(); | 5009 old_space_strings_.Free(); |
| 5009 } | 5010 } |
| 5010 | 5011 |
| 5011 | 5012 |
| 5012 List<Object*> ExternalStringTable::new_space_strings_; | 5013 List<Object*> ExternalStringTable::new_space_strings_; |
| 5013 List<Object*> ExternalStringTable::old_space_strings_; | 5014 List<Object*> ExternalStringTable::old_space_strings_; |
| 5014 | 5015 |
| 5015 } } // namespace v8::internal | 5016 } } // namespace v8::internal |
| OLD | NEW |