| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 7c29a344f1faa45140d865afe047c905fb742590..a1c024c8d1c172f9959032ffd09e5a5626649c66 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -2741,6 +2741,11 @@ bool Value::IsDataView() const {
|
| }
|
|
|
|
|
| +bool Value::IsFloat32x4() const {
|
| + return Utils::OpenHandle(this)->IsFloat32x4();
|
| +}
|
| +
|
| +
|
| bool Value::IsSharedArrayBuffer() const {
|
| i::Handle<i::Object> obj = Utils::OpenHandle(this);
|
| return obj->IsJSArrayBuffer() && i::JSArrayBuffer::cast(*obj)->is_shared();
|
| @@ -3099,6 +3104,13 @@ void v8::Uint32::CheckCast(v8::Value* that) {
|
| }
|
|
|
|
|
| +void v8::Float32x4::CheckCast(v8::Value* that) {
|
| + i::Handle<i::Object> obj = Utils::OpenHandle(that);
|
| + Utils::ApiCheck(obj->IsFloat32x4(), "v8::Float32x4::Cast()",
|
| + "Could not convert to float32x4");
|
| +}
|
| +
|
| +
|
| void v8::Array::CheckCast(Value* that) {
|
| i::Handle<i::Object> obj = Utils::OpenHandle(that);
|
| Utils::ApiCheck(obj->IsJSArray(),
|
| @@ -6782,6 +6794,17 @@ Local<SharedArrayBuffer> v8::SharedArrayBuffer::New(Isolate* isolate,
|
| }
|
|
|
|
|
| +Local<Float32x4> v8::Float32x4::New(Isolate* isolate, float w, float x, float y,
|
| + float z) {
|
| + i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
|
| + LOG_API(i_isolate, "Float32x4::New()");
|
| + ENTER_V8(i_isolate);
|
| + i::Handle<i::Float32x4> result =
|
| + i_isolate->factory()->NewFloat32x4(w, x, y, z);
|
| + return Utils::ToLocal(result);
|
| +}
|
| +
|
| +
|
| Local<SharedArrayBuffer> v8::SharedArrayBuffer::New(
|
| Isolate* isolate, void* data, size_t byte_length,
|
| ArrayBufferCreationMode mode) {
|
|
|