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