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 /** \mainpage V8 API Reference Guide | 5 /** \mainpage V8 API Reference Guide |
6 * | 6 * |
7 * V8 is Google's open source JavaScript engine. | 7 * V8 is Google's open source JavaScript engine. |
8 * | 8 * |
9 * This set of documents provides reference material generated from the | 9 * This set of documents provides reference material generated from the |
10 * V8 header file, include/v8.h. | 10 * V8 header file, include/v8.h. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 class Number; | 87 class Number; |
88 class NumberObject; | 88 class NumberObject; |
89 class Object; | 89 class Object; |
90 class ObjectOperationDescriptor; | 90 class ObjectOperationDescriptor; |
91 class ObjectTemplate; | 91 class ObjectTemplate; |
92 class Platform; | 92 class Platform; |
93 class Primitive; | 93 class Primitive; |
94 class Promise; | 94 class Promise; |
95 class RawOperationDescriptor; | 95 class RawOperationDescriptor; |
96 class Script; | 96 class Script; |
| 97 class SharedArrayBuffer; |
97 class Signature; | 98 class Signature; |
98 class StartupData; | 99 class StartupData; |
99 class StackFrame; | 100 class StackFrame; |
100 class StackTrace; | 101 class StackTrace; |
101 class String; | 102 class String; |
102 class StringObject; | 103 class StringObject; |
103 class Symbol; | 104 class Symbol; |
104 class SymbolObject; | 105 class SymbolObject; |
105 class Uint32; | 106 class Uint32; |
106 class Utils; | 107 class Utils; |
(...skipping 3442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3549 | 3550 |
3550 | 3551 |
3551 /** | 3552 /** |
3552 * An instance of Uint8Array constructor (ES6 draft 15.13.6). | 3553 * An instance of Uint8Array constructor (ES6 draft 15.13.6). |
3553 * This API is experimental and may change significantly. | 3554 * This API is experimental and may change significantly. |
3554 */ | 3555 */ |
3555 class V8_EXPORT Uint8Array : public TypedArray { | 3556 class V8_EXPORT Uint8Array : public TypedArray { |
3556 public: | 3557 public: |
3557 static Local<Uint8Array> New(Handle<ArrayBuffer> array_buffer, | 3558 static Local<Uint8Array> New(Handle<ArrayBuffer> array_buffer, |
3558 size_t byte_offset, size_t length); | 3559 size_t byte_offset, size_t length); |
| 3560 static Local<Uint8Array> New(Handle<SharedArrayBuffer> shared_array_buffer, |
| 3561 size_t byte_offset, size_t length); |
3559 V8_INLINE static Uint8Array* Cast(Value* obj); | 3562 V8_INLINE static Uint8Array* Cast(Value* obj); |
3560 | 3563 |
3561 private: | 3564 private: |
3562 Uint8Array(); | 3565 Uint8Array(); |
3563 static void CheckCast(Value* obj); | 3566 static void CheckCast(Value* obj); |
3564 }; | 3567 }; |
3565 | 3568 |
3566 | 3569 |
3567 /** | 3570 /** |
3568 * An instance of Uint8ClampedArray constructor (ES6 draft 15.13.6). | 3571 * An instance of Uint8ClampedArray constructor (ES6 draft 15.13.6). |
3569 * This API is experimental and may change significantly. | 3572 * This API is experimental and may change significantly. |
3570 */ | 3573 */ |
3571 class V8_EXPORT Uint8ClampedArray : public TypedArray { | 3574 class V8_EXPORT Uint8ClampedArray : public TypedArray { |
3572 public: | 3575 public: |
3573 static Local<Uint8ClampedArray> New(Handle<ArrayBuffer> array_buffer, | 3576 static Local<Uint8ClampedArray> New(Handle<ArrayBuffer> array_buffer, |
3574 size_t byte_offset, size_t length); | 3577 size_t byte_offset, size_t length); |
| 3578 static Local<Uint8ClampedArray> New( |
| 3579 Handle<SharedArrayBuffer> shared_array_buffer, size_t byte_offset, |
| 3580 size_t length); |
3575 V8_INLINE static Uint8ClampedArray* Cast(Value* obj); | 3581 V8_INLINE static Uint8ClampedArray* Cast(Value* obj); |
3576 | 3582 |
3577 private: | 3583 private: |
3578 Uint8ClampedArray(); | 3584 Uint8ClampedArray(); |
3579 static void CheckCast(Value* obj); | 3585 static void CheckCast(Value* obj); |
3580 }; | 3586 }; |
3581 | 3587 |
3582 /** | 3588 /** |
3583 * An instance of Int8Array constructor (ES6 draft 15.13.6). | 3589 * An instance of Int8Array constructor (ES6 draft 15.13.6). |
3584 * This API is experimental and may change significantly. | 3590 * This API is experimental and may change significantly. |
3585 */ | 3591 */ |
3586 class V8_EXPORT Int8Array : public TypedArray { | 3592 class V8_EXPORT Int8Array : public TypedArray { |
3587 public: | 3593 public: |
3588 static Local<Int8Array> New(Handle<ArrayBuffer> array_buffer, | 3594 static Local<Int8Array> New(Handle<ArrayBuffer> array_buffer, |
3589 size_t byte_offset, size_t length); | 3595 size_t byte_offset, size_t length); |
| 3596 static Local<Int8Array> New(Handle<SharedArrayBuffer> shared_array_buffer, |
| 3597 size_t byte_offset, size_t length); |
3590 V8_INLINE static Int8Array* Cast(Value* obj); | 3598 V8_INLINE static Int8Array* Cast(Value* obj); |
3591 | 3599 |
3592 private: | 3600 private: |
3593 Int8Array(); | 3601 Int8Array(); |
3594 static void CheckCast(Value* obj); | 3602 static void CheckCast(Value* obj); |
3595 }; | 3603 }; |
3596 | 3604 |
3597 | 3605 |
3598 /** | 3606 /** |
3599 * An instance of Uint16Array constructor (ES6 draft 15.13.6). | 3607 * An instance of Uint16Array constructor (ES6 draft 15.13.6). |
3600 * This API is experimental and may change significantly. | 3608 * This API is experimental and may change significantly. |
3601 */ | 3609 */ |
3602 class V8_EXPORT Uint16Array : public TypedArray { | 3610 class V8_EXPORT Uint16Array : public TypedArray { |
3603 public: | 3611 public: |
3604 static Local<Uint16Array> New(Handle<ArrayBuffer> array_buffer, | 3612 static Local<Uint16Array> New(Handle<ArrayBuffer> array_buffer, |
3605 size_t byte_offset, size_t length); | 3613 size_t byte_offset, size_t length); |
| 3614 static Local<Uint16Array> New(Handle<SharedArrayBuffer> shared_array_buffer, |
| 3615 size_t byte_offset, size_t length); |
3606 V8_INLINE static Uint16Array* Cast(Value* obj); | 3616 V8_INLINE static Uint16Array* Cast(Value* obj); |
3607 | 3617 |
3608 private: | 3618 private: |
3609 Uint16Array(); | 3619 Uint16Array(); |
3610 static void CheckCast(Value* obj); | 3620 static void CheckCast(Value* obj); |
3611 }; | 3621 }; |
3612 | 3622 |
3613 | 3623 |
3614 /** | 3624 /** |
3615 * An instance of Int16Array constructor (ES6 draft 15.13.6). | 3625 * An instance of Int16Array constructor (ES6 draft 15.13.6). |
3616 * This API is experimental and may change significantly. | 3626 * This API is experimental and may change significantly. |
3617 */ | 3627 */ |
3618 class V8_EXPORT Int16Array : public TypedArray { | 3628 class V8_EXPORT Int16Array : public TypedArray { |
3619 public: | 3629 public: |
3620 static Local<Int16Array> New(Handle<ArrayBuffer> array_buffer, | 3630 static Local<Int16Array> New(Handle<ArrayBuffer> array_buffer, |
3621 size_t byte_offset, size_t length); | 3631 size_t byte_offset, size_t length); |
| 3632 static Local<Int16Array> New(Handle<SharedArrayBuffer> shared_array_buffer, |
| 3633 size_t byte_offset, size_t length); |
3622 V8_INLINE static Int16Array* Cast(Value* obj); | 3634 V8_INLINE static Int16Array* Cast(Value* obj); |
3623 | 3635 |
3624 private: | 3636 private: |
3625 Int16Array(); | 3637 Int16Array(); |
3626 static void CheckCast(Value* obj); | 3638 static void CheckCast(Value* obj); |
3627 }; | 3639 }; |
3628 | 3640 |
3629 | 3641 |
3630 /** | 3642 /** |
3631 * An instance of Uint32Array constructor (ES6 draft 15.13.6). | 3643 * An instance of Uint32Array constructor (ES6 draft 15.13.6). |
3632 * This API is experimental and may change significantly. | 3644 * This API is experimental and may change significantly. |
3633 */ | 3645 */ |
3634 class V8_EXPORT Uint32Array : public TypedArray { | 3646 class V8_EXPORT Uint32Array : public TypedArray { |
3635 public: | 3647 public: |
3636 static Local<Uint32Array> New(Handle<ArrayBuffer> array_buffer, | 3648 static Local<Uint32Array> New(Handle<ArrayBuffer> array_buffer, |
3637 size_t byte_offset, size_t length); | 3649 size_t byte_offset, size_t length); |
| 3650 static Local<Uint32Array> New(Handle<SharedArrayBuffer> shared_array_buffer, |
| 3651 size_t byte_offset, size_t length); |
3638 V8_INLINE static Uint32Array* Cast(Value* obj); | 3652 V8_INLINE static Uint32Array* Cast(Value* obj); |
3639 | 3653 |
3640 private: | 3654 private: |
3641 Uint32Array(); | 3655 Uint32Array(); |
3642 static void CheckCast(Value* obj); | 3656 static void CheckCast(Value* obj); |
3643 }; | 3657 }; |
3644 | 3658 |
3645 | 3659 |
3646 /** | 3660 /** |
3647 * An instance of Int32Array constructor (ES6 draft 15.13.6). | 3661 * An instance of Int32Array constructor (ES6 draft 15.13.6). |
3648 * This API is experimental and may change significantly. | 3662 * This API is experimental and may change significantly. |
3649 */ | 3663 */ |
3650 class V8_EXPORT Int32Array : public TypedArray { | 3664 class V8_EXPORT Int32Array : public TypedArray { |
3651 public: | 3665 public: |
3652 static Local<Int32Array> New(Handle<ArrayBuffer> array_buffer, | 3666 static Local<Int32Array> New(Handle<ArrayBuffer> array_buffer, |
3653 size_t byte_offset, size_t length); | 3667 size_t byte_offset, size_t length); |
| 3668 static Local<Int32Array> New(Handle<SharedArrayBuffer> shared_array_buffer, |
| 3669 size_t byte_offset, size_t length); |
3654 V8_INLINE static Int32Array* Cast(Value* obj); | 3670 V8_INLINE static Int32Array* Cast(Value* obj); |
3655 | 3671 |
3656 private: | 3672 private: |
3657 Int32Array(); | 3673 Int32Array(); |
3658 static void CheckCast(Value* obj); | 3674 static void CheckCast(Value* obj); |
3659 }; | 3675 }; |
3660 | 3676 |
3661 | 3677 |
3662 /** | 3678 /** |
3663 * An instance of Float32Array constructor (ES6 draft 15.13.6). | 3679 * An instance of Float32Array constructor (ES6 draft 15.13.6). |
3664 * This API is experimental and may change significantly. | 3680 * This API is experimental and may change significantly. |
3665 */ | 3681 */ |
3666 class V8_EXPORT Float32Array : public TypedArray { | 3682 class V8_EXPORT Float32Array : public TypedArray { |
3667 public: | 3683 public: |
3668 static Local<Float32Array> New(Handle<ArrayBuffer> array_buffer, | 3684 static Local<Float32Array> New(Handle<ArrayBuffer> array_buffer, |
3669 size_t byte_offset, size_t length); | 3685 size_t byte_offset, size_t length); |
| 3686 static Local<Float32Array> New(Handle<SharedArrayBuffer> shared_array_buffer, |
| 3687 size_t byte_offset, size_t length); |
3670 V8_INLINE static Float32Array* Cast(Value* obj); | 3688 V8_INLINE static Float32Array* Cast(Value* obj); |
3671 | 3689 |
3672 private: | 3690 private: |
3673 Float32Array(); | 3691 Float32Array(); |
3674 static void CheckCast(Value* obj); | 3692 static void CheckCast(Value* obj); |
3675 }; | 3693 }; |
3676 | 3694 |
3677 | 3695 |
3678 /** | 3696 /** |
3679 * An instance of Float64Array constructor (ES6 draft 15.13.6). | 3697 * An instance of Float64Array constructor (ES6 draft 15.13.6). |
3680 * This API is experimental and may change significantly. | 3698 * This API is experimental and may change significantly. |
3681 */ | 3699 */ |
3682 class V8_EXPORT Float64Array : public TypedArray { | 3700 class V8_EXPORT Float64Array : public TypedArray { |
3683 public: | 3701 public: |
3684 static Local<Float64Array> New(Handle<ArrayBuffer> array_buffer, | 3702 static Local<Float64Array> New(Handle<ArrayBuffer> array_buffer, |
3685 size_t byte_offset, size_t length); | 3703 size_t byte_offset, size_t length); |
| 3704 static Local<Float64Array> New(Handle<SharedArrayBuffer> shared_array_buffer, |
| 3705 size_t byte_offset, size_t length); |
3686 V8_INLINE static Float64Array* Cast(Value* obj); | 3706 V8_INLINE static Float64Array* Cast(Value* obj); |
3687 | 3707 |
3688 private: | 3708 private: |
3689 Float64Array(); | 3709 Float64Array(); |
3690 static void CheckCast(Value* obj); | 3710 static void CheckCast(Value* obj); |
3691 }; | 3711 }; |
3692 | 3712 |
3693 | 3713 |
3694 /** | 3714 /** |
3695 * An instance of DataView constructor (ES6 draft 15.13.7). | 3715 * An instance of DataView constructor (ES6 draft 15.13.7). |
3696 * This API is experimental and may change significantly. | 3716 * This API is experimental and may change significantly. |
3697 */ | 3717 */ |
3698 class V8_EXPORT DataView : public ArrayBufferView { | 3718 class V8_EXPORT DataView : public ArrayBufferView { |
3699 public: | 3719 public: |
3700 static Local<DataView> New(Handle<ArrayBuffer> array_buffer, | 3720 static Local<DataView> New(Handle<ArrayBuffer> array_buffer, |
3701 size_t byte_offset, size_t length); | 3721 size_t byte_offset, size_t length); |
| 3722 static Local<DataView> New(Handle<SharedArrayBuffer> shared_array_buffer, |
| 3723 size_t byte_offset, size_t length); |
3702 V8_INLINE static DataView* Cast(Value* obj); | 3724 V8_INLINE static DataView* Cast(Value* obj); |
3703 | 3725 |
3704 private: | 3726 private: |
3705 DataView(); | 3727 DataView(); |
3706 static void CheckCast(Value* obj); | 3728 static void CheckCast(Value* obj); |
3707 }; | 3729 }; |
3708 | 3730 |
3709 | 3731 |
3710 /** | 3732 /** |
3711 * An instance of the built-in SharedArrayBuffer constructor. | 3733 * An instance of the built-in SharedArrayBuffer constructor. |
(...skipping 4613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8325 */ | 8347 */ |
8326 | 8348 |
8327 | 8349 |
8328 } // namespace v8 | 8350 } // namespace v8 |
8329 | 8351 |
8330 | 8352 |
8331 #undef TYPE_CHECK | 8353 #undef TYPE_CHECK |
8332 | 8354 |
8333 | 8355 |
8334 #endif // V8_H_ | 8356 #endif // V8_H_ |
OLD | NEW |