Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(587)

Side by Side Diff: src/api.cc

Issue 1012023002: Merge old data and pointer space. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/v8.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/api.h" 5 #include "src/api.h"
6 6
7 #include <string.h> // For memcpy, strlen. 7 #include <string.h> // For memcpy, strlen.
8 #ifdef V8_USE_ADDRESS_SANITIZER 8 #ifdef V8_USE_ADDRESS_SANITIZER
9 #include <sanitizer/asan_interface.h> 9 #include <sanitizer/asan_interface.h>
10 #endif // V8_USE_ADDRESS_SANITIZER 10 #endif // V8_USE_ADDRESS_SANITIZER
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 // When V8 cannot allocated memory FatalProcessOutOfMemory is called. 226 // When V8 cannot allocated memory FatalProcessOutOfMemory is called.
227 // The default fatal error handler is called and execution is stopped. 227 // The default fatal error handler is called and execution is stopped.
228 void i::V8::FatalProcessOutOfMemory(const char* location, bool take_snapshot) { 228 void i::V8::FatalProcessOutOfMemory(const char* location, bool take_snapshot) {
229 i::HeapStats heap_stats; 229 i::HeapStats heap_stats;
230 int start_marker; 230 int start_marker;
231 heap_stats.start_marker = &start_marker; 231 heap_stats.start_marker = &start_marker;
232 int new_space_size; 232 int new_space_size;
233 heap_stats.new_space_size = &new_space_size; 233 heap_stats.new_space_size = &new_space_size;
234 int new_space_capacity; 234 int new_space_capacity;
235 heap_stats.new_space_capacity = &new_space_capacity; 235 heap_stats.new_space_capacity = &new_space_capacity;
236 intptr_t old_pointer_space_size; 236 intptr_t old_space_size;
237 heap_stats.old_pointer_space_size = &old_pointer_space_size; 237 heap_stats.old_space_size = &old_space_size;
238 intptr_t old_pointer_space_capacity; 238 intptr_t old_space_capacity;
239 heap_stats.old_pointer_space_capacity = &old_pointer_space_capacity; 239 heap_stats.old_space_capacity = &old_space_capacity;
240 intptr_t old_data_space_size;
241 heap_stats.old_data_space_size = &old_data_space_size;
242 intptr_t old_data_space_capacity;
243 heap_stats.old_data_space_capacity = &old_data_space_capacity;
244 intptr_t code_space_size; 240 intptr_t code_space_size;
245 heap_stats.code_space_size = &code_space_size; 241 heap_stats.code_space_size = &code_space_size;
246 intptr_t code_space_capacity; 242 intptr_t code_space_capacity;
247 heap_stats.code_space_capacity = &code_space_capacity; 243 heap_stats.code_space_capacity = &code_space_capacity;
248 intptr_t map_space_size; 244 intptr_t map_space_size;
249 heap_stats.map_space_size = &map_space_size; 245 heap_stats.map_space_size = &map_space_size;
250 intptr_t map_space_capacity; 246 intptr_t map_space_capacity;
251 heap_stats.map_space_capacity = &map_space_capacity; 247 heap_stats.map_space_capacity = &map_space_capacity;
252 intptr_t cell_space_size; 248 intptr_t cell_space_size;
253 heap_stats.cell_space_size = &cell_space_size; 249 heap_stats.cell_space_size = &cell_space_size;
(...skipping 7740 matching lines...) Expand 10 before | Expand all | Expand 10 after
7994 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); 7990 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate());
7995 Address callback_address = 7991 Address callback_address =
7996 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); 7992 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback));
7997 VMState<EXTERNAL> state(isolate); 7993 VMState<EXTERNAL> state(isolate);
7998 ExternalCallbackScope call_scope(isolate, callback_address); 7994 ExternalCallbackScope call_scope(isolate, callback_address);
7999 callback(info); 7995 callback(info);
8000 } 7996 }
8001 7997
8002 7998
8003 } } // namespace v8::internal 7999 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698