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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 int destroyed_global_handle_count; | 167 int destroyed_global_handle_count; |
168 heap_stats.destroyed_global_handle_count = &destroyed_global_handle_count; | 168 heap_stats.destroyed_global_handle_count = &destroyed_global_handle_count; |
169 int memory_allocator_size; | 169 int memory_allocator_size; |
170 heap_stats.memory_allocator_size = &memory_allocator_size; | 170 heap_stats.memory_allocator_size = &memory_allocator_size; |
171 int memory_allocator_capacity; | 171 int memory_allocator_capacity; |
172 heap_stats.memory_allocator_capacity = &memory_allocator_capacity; | 172 heap_stats.memory_allocator_capacity = &memory_allocator_capacity; |
173 int objects_per_type[LAST_TYPE + 1] = {0}; | 173 int objects_per_type[LAST_TYPE + 1] = {0}; |
174 heap_stats.objects_per_type = objects_per_type; | 174 heap_stats.objects_per_type = objects_per_type; |
175 int size_per_type[LAST_TYPE + 1] = {0}; | 175 int size_per_type[LAST_TYPE + 1] = {0}; |
176 heap_stats.size_per_type = size_per_type; | 176 heap_stats.size_per_type = size_per_type; |
| 177 int os_error; |
| 178 heap_stats.os_error = &os_error; |
177 int end_marker; | 179 int end_marker; |
178 heap_stats.end_marker = &end_marker; | 180 heap_stats.end_marker = &end_marker; |
179 i::Heap::RecordStats(&heap_stats, take_snapshot); | 181 i::Heap::RecordStats(&heap_stats, take_snapshot); |
180 i::V8::SetFatalError(); | 182 i::V8::SetFatalError(); |
181 FatalErrorCallback callback = GetFatalErrorHandler(); | 183 FatalErrorCallback callback = GetFatalErrorHandler(); |
182 { | 184 { |
183 LEAVE_V8; | 185 LEAVE_V8; |
184 callback(location, "Allocation failed - process out of memory"); | 186 callback(location, "Allocation failed - process out of memory"); |
185 } | 187 } |
186 // If the callback returns, we stop execution. | 188 // If the callback returns, we stop execution. |
(...skipping 4620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4807 | 4809 |
4808 | 4810 |
4809 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 4811 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
4810 HandleScopeImplementer* thread_local = | 4812 HandleScopeImplementer* thread_local = |
4811 reinterpret_cast<HandleScopeImplementer*>(storage); | 4813 reinterpret_cast<HandleScopeImplementer*>(storage); |
4812 thread_local->IterateThis(v); | 4814 thread_local->IterateThis(v); |
4813 return storage + ArchiveSpacePerThread(); | 4815 return storage + ArchiveSpacePerThread(); |
4814 } | 4816 } |
4815 | 4817 |
4816 } } // namespace v8::internal | 4818 } } // namespace v8::internal |
OLD | NEW |