| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index af3c39e45ed07f5650a0af2859d6dfa67e4f8997..c93dbf79cf71c37ac28f6ec3b2df6d73dcc03af3 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -801,6 +801,16 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ArrayBufferSliceImpl) {
|
| }
|
|
|
|
|
| +RUNTIME_FUNCTION(MaybeObject*, Runtime_ArrayBufferIsView) {
|
| + HandleScope scope(isolate);
|
| + ASSERT(args.length() == 1);
|
| + CONVERT_ARG_CHECKED(Object, object, 0);
|
| + return object->IsJSArrayBufferView()
|
| + ? isolate->heap()->true_value()
|
| + : isolate->heap()->false_value();
|
| +}
|
| +
|
| +
|
| enum TypedArrayId {
|
| // arrayIds below should be synchromized with typedarray.js natives.
|
| ARRAY_ID_UINT8 = 1,
|
|
|