| Index: src/runtime/runtime-typedarray.cc
|
| diff --git a/src/runtime/runtime-typedarray.cc b/src/runtime/runtime-typedarray.cc
|
| index a92a642bbc936cb8129386ef692acf73324060e7..62d87d6ede86f2e204542971efb28b95d5c3558f 100644
|
| --- a/src/runtime/runtime-typedarray.cc
|
| +++ b/src/runtime/runtime-typedarray.cc
|
| @@ -473,6 +473,29 @@ RUNTIME_FUNCTION(Runtime_IsTypedArray) {
|
| }
|
|
|
|
|
| +RUNTIME_FUNCTION(Runtime_IsSharedTypedArray) {
|
| + HandleScope scope(isolate);
|
| + DCHECK(args.length() == 1);
|
| + return isolate->heap()->ToBoolean(
|
| + args[0]->IsJSTypedArray() &&
|
| + JSTypedArray::cast(args[0])->GetBuffer()->is_shared());
|
| +}
|
| +
|
| +
|
| +RUNTIME_FUNCTION(Runtime_IsSharedIntegerTypedArray) {
|
| + HandleScope scope(isolate);
|
| + DCHECK(args.length() == 1);
|
| + if (!args[0]->IsJSTypedArray()) {
|
| + return isolate->heap()->false_value();
|
| + }
|
| +
|
| + Handle<JSTypedArray> obj(JSTypedArray::cast(args[0]));
|
| + return isolate->heap()->ToBoolean(obj->GetBuffer()->is_shared() &&
|
| + obj->type() != kExternalFloat32Array &&
|
| + obj->type() != kExternalFloat64Array);
|
| +}
|
| +
|
| +
|
| RUNTIME_FUNCTION(Runtime_DataViewInitialize) {
|
| HandleScope scope(isolate);
|
| DCHECK(args.length() == 4);
|
|
|