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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 | 446 |
447 void V8::SetNativesDataBlob(StartupData* natives_blob) { | 447 void V8::SetNativesDataBlob(StartupData* natives_blob) { |
448 i::V8::SetNativesBlob(natives_blob); | 448 i::V8::SetNativesBlob(natives_blob); |
449 } | 449 } |
450 | 450 |
451 | 451 |
452 void V8::SetSnapshotDataBlob(StartupData* snapshot_blob) { | 452 void V8::SetSnapshotDataBlob(StartupData* snapshot_blob) { |
453 i::V8::SetSnapshotBlob(snapshot_blob); | 453 i::V8::SetSnapshotBlob(snapshot_blob); |
454 } | 454 } |
455 | 455 |
456 void* v8::ArrayBuffer::Allocator::Reserve(size_t length) { UNIMPLEMENTED(); } | 456 void* v8::ArrayBuffer::Allocator::Reserve(size_t length) { |
| 457 UNIMPLEMENTED(); |
| 458 return nullptr; |
| 459 } |
457 | 460 |
458 void v8::ArrayBuffer::Allocator::Free(void* data, size_t length, | 461 void v8::ArrayBuffer::Allocator::Free(void* data, size_t length, |
459 AllocationMode mode) { | 462 AllocationMode mode) { |
460 switch (mode) { | 463 switch (mode) { |
461 case AllocationMode::kNormal: { | 464 case AllocationMode::kNormal: { |
462 Free(data, length); | 465 Free(data, length); |
463 return; | 466 return; |
464 } | 467 } |
465 case AllocationMode::kReservation: { | 468 case AllocationMode::kReservation: { |
466 UNIMPLEMENTED(); | 469 UNIMPLEMENTED(); |
(...skipping 10066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10533 Address callback_address = | 10536 Address callback_address = |
10534 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 10537 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
10535 VMState<EXTERNAL> state(isolate); | 10538 VMState<EXTERNAL> state(isolate); |
10536 ExternalCallbackScope call_scope(isolate, callback_address); | 10539 ExternalCallbackScope call_scope(isolate, callback_address); |
10537 callback(info); | 10540 callback(info); |
10538 } | 10541 } |
10539 | 10542 |
10540 | 10543 |
10541 } // namespace internal | 10544 } // namespace internal |
10542 } // namespace v8 | 10545 } // namespace v8 |
OLD | NEW |