| 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 5502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5513 object_count_(0), | 5513 object_count_(0), |
| 5514 object_size_(0) {} | 5514 object_size_(0) {} |
| 5515 | 5515 |
| 5516 HeapCodeStatistics::HeapCodeStatistics() | 5516 HeapCodeStatistics::HeapCodeStatistics() |
| 5517 : code_and_metadata_size_(0), bytecode_and_metadata_size_(0) {} | 5517 : code_and_metadata_size_(0), bytecode_and_metadata_size_(0) {} |
| 5518 | 5518 |
| 5519 bool v8::V8::InitializeICU(const char* icu_data_file) { | 5519 bool v8::V8::InitializeICU(const char* icu_data_file) { |
| 5520 return i::InitializeICU(icu_data_file); | 5520 return i::InitializeICU(icu_data_file); |
| 5521 } | 5521 } |
| 5522 | 5522 |
| 5523 bool v8::V8::InitializeICUDefaultLocation(const char* exec_path, |
| 5524 const char* icu_data_file) { |
| 5525 return i::InitializeICUDefaultLocation(exec_path, icu_data_file); |
| 5526 } |
| 5523 | 5527 |
| 5524 void v8::V8::InitializeExternalStartupData(const char* directory_path) { | 5528 void v8::V8::InitializeExternalStartupData(const char* directory_path) { |
| 5525 i::InitializeExternalStartupData(directory_path); | 5529 i::InitializeExternalStartupData(directory_path); |
| 5526 } | 5530 } |
| 5527 | 5531 |
| 5528 | 5532 |
| 5529 void v8::V8::InitializeExternalStartupData(const char* natives_blob, | 5533 void v8::V8::InitializeExternalStartupData(const char* natives_blob, |
| 5530 const char* snapshot_blob) { | 5534 const char* snapshot_blob) { |
| 5531 i::InitializeExternalStartupData(natives_blob, snapshot_blob); | 5535 i::InitializeExternalStartupData(natives_blob, snapshot_blob); |
| 5532 } | 5536 } |
| (...skipping 3291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8824 Address callback_address = | 8828 Address callback_address = |
| 8825 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 8829 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
| 8826 VMState<EXTERNAL> state(isolate); | 8830 VMState<EXTERNAL> state(isolate); |
| 8827 ExternalCallbackScope call_scope(isolate, callback_address); | 8831 ExternalCallbackScope call_scope(isolate, callback_address); |
| 8828 callback(info); | 8832 callback(info); |
| 8829 } | 8833 } |
| 8830 | 8834 |
| 8831 | 8835 |
| 8832 } // namespace internal | 8836 } // namespace internal |
| 8833 } // namespace v8 | 8837 } // namespace v8 |
| OLD | NEW |