| OLD | NEW |
| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 intptr_t old_space_capacity; | 222 intptr_t old_space_capacity; |
| 223 heap_stats.old_space_capacity = &old_space_capacity; | 223 heap_stats.old_space_capacity = &old_space_capacity; |
| 224 intptr_t code_space_size; | 224 intptr_t code_space_size; |
| 225 heap_stats.code_space_size = &code_space_size; | 225 heap_stats.code_space_size = &code_space_size; |
| 226 intptr_t code_space_capacity; | 226 intptr_t code_space_capacity; |
| 227 heap_stats.code_space_capacity = &code_space_capacity; | 227 heap_stats.code_space_capacity = &code_space_capacity; |
| 228 intptr_t map_space_size; | 228 intptr_t map_space_size; |
| 229 heap_stats.map_space_size = &map_space_size; | 229 heap_stats.map_space_size = &map_space_size; |
| 230 intptr_t map_space_capacity; | 230 intptr_t map_space_capacity; |
| 231 heap_stats.map_space_capacity = &map_space_capacity; | 231 heap_stats.map_space_capacity = &map_space_capacity; |
| 232 intptr_t cell_space_size; | |
| 233 heap_stats.cell_space_size = &cell_space_size; | |
| 234 intptr_t cell_space_capacity; | |
| 235 heap_stats.cell_space_capacity = &cell_space_capacity; | |
| 236 intptr_t lo_space_size; | 232 intptr_t lo_space_size; |
| 237 heap_stats.lo_space_size = &lo_space_size; | 233 heap_stats.lo_space_size = &lo_space_size; |
| 238 int global_handle_count; | 234 int global_handle_count; |
| 239 heap_stats.global_handle_count = &global_handle_count; | 235 heap_stats.global_handle_count = &global_handle_count; |
| 240 int weak_global_handle_count; | 236 int weak_global_handle_count; |
| 241 heap_stats.weak_global_handle_count = &weak_global_handle_count; | 237 heap_stats.weak_global_handle_count = &weak_global_handle_count; |
| 242 int pending_global_handle_count; | 238 int pending_global_handle_count; |
| 243 heap_stats.pending_global_handle_count = &pending_global_handle_count; | 239 heap_stats.pending_global_handle_count = &pending_global_handle_count; |
| 244 int near_death_global_handle_count; | 240 int near_death_global_handle_count; |
| 245 heap_stats.near_death_global_handle_count = &near_death_global_handle_count; | 241 heap_stats.near_death_global_handle_count = &near_death_global_handle_count; |
| (...skipping 7837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8083 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); | 8079 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); |
| 8084 Address callback_address = | 8080 Address callback_address = |
| 8085 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 8081 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
| 8086 VMState<EXTERNAL> state(isolate); | 8082 VMState<EXTERNAL> state(isolate); |
| 8087 ExternalCallbackScope call_scope(isolate, callback_address); | 8083 ExternalCallbackScope call_scope(isolate, callback_address); |
| 8088 callback(info); | 8084 callback(info); |
| 8089 } | 8085 } |
| 8090 | 8086 |
| 8091 | 8087 |
| 8092 } } // namespace v8::internal | 8088 } } // namespace v8::internal |
| OLD | NEW |