| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 intptr_t code_space_capacity; | 246 intptr_t code_space_capacity; |
| 247 heap_stats.code_space_capacity = &code_space_capacity; | 247 heap_stats.code_space_capacity = &code_space_capacity; |
| 248 intptr_t map_space_size; | 248 intptr_t map_space_size; |
| 249 heap_stats.map_space_size = &map_space_size; | 249 heap_stats.map_space_size = &map_space_size; |
| 250 intptr_t map_space_capacity; | 250 intptr_t map_space_capacity; |
| 251 heap_stats.map_space_capacity = &map_space_capacity; | 251 heap_stats.map_space_capacity = &map_space_capacity; |
| 252 intptr_t cell_space_size; | 252 intptr_t cell_space_size; |
| 253 heap_stats.cell_space_size = &cell_space_size; | 253 heap_stats.cell_space_size = &cell_space_size; |
| 254 intptr_t cell_space_capacity; | 254 intptr_t cell_space_capacity; |
| 255 heap_stats.cell_space_capacity = &cell_space_capacity; | 255 heap_stats.cell_space_capacity = &cell_space_capacity; |
| 256 intptr_t property_cell_space_size; | |
| 257 heap_stats.property_cell_space_size = &property_cell_space_size; | |
| 258 intptr_t property_cell_space_capacity; | |
| 259 heap_stats.property_cell_space_capacity = &property_cell_space_capacity; | |
| 260 intptr_t lo_space_size; | 256 intptr_t lo_space_size; |
| 261 heap_stats.lo_space_size = &lo_space_size; | 257 heap_stats.lo_space_size = &lo_space_size; |
| 262 int global_handle_count; | 258 int global_handle_count; |
| 263 heap_stats.global_handle_count = &global_handle_count; | 259 heap_stats.global_handle_count = &global_handle_count; |
| 264 int weak_global_handle_count; | 260 int weak_global_handle_count; |
| 265 heap_stats.weak_global_handle_count = &weak_global_handle_count; | 261 heap_stats.weak_global_handle_count = &weak_global_handle_count; |
| 266 int pending_global_handle_count; | 262 int pending_global_handle_count; |
| 267 heap_stats.pending_global_handle_count = &pending_global_handle_count; | 263 heap_stats.pending_global_handle_count = &pending_global_handle_count; |
| 268 int near_death_global_handle_count; | 264 int near_death_global_handle_count; |
| 269 heap_stats.near_death_global_handle_count = &near_death_global_handle_count; | 265 heap_stats.near_death_global_handle_count = &near_death_global_handle_count; |
| (...skipping 7747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8017 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); | 8013 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); |
| 8018 Address callback_address = | 8014 Address callback_address = |
| 8019 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 8015 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
| 8020 VMState<EXTERNAL> state(isolate); | 8016 VMState<EXTERNAL> state(isolate); |
| 8021 ExternalCallbackScope call_scope(isolate, callback_address); | 8017 ExternalCallbackScope call_scope(isolate, callback_address); |
| 8022 callback(info); | 8018 callback(info); |
| 8023 } | 8019 } |
| 8024 | 8020 |
| 8025 | 8021 |
| 8026 } } // namespace v8::internal | 8022 } } // namespace v8::internal |
| OLD | NEW |