Index: src/runtime/runtime-typedarray.cc |
diff --git a/src/runtime/runtime-typedarray.cc b/src/runtime/runtime-typedarray.cc |
index e7e0f34f88fa3a37e32d9a3c962a89f55478467f..e5f6f4d07c421fe4b6714b46c6c36914ad923647 100644 |
--- a/src/runtime/runtime-typedarray.cc |
+++ b/src/runtime/runtime-typedarray.cc |
@@ -56,6 +56,12 @@ BUFFER_VIEW_GETTER(TypedArray, Length, length) |
#undef BUFFER_VIEW_GETTER |
+RUNTIME_FUNCTION(Runtime_ArrayBufferViewWasNeutered) { |
+ HandleScope scope(isolate); |
+ DCHECK_EQ(1, args.length()); |
+ return isolate->heap()->ToBoolean(JSTypedArray::cast(args[0])->WasNeutered()); |
+} |
+ |
RUNTIME_FUNCTION(Runtime_TypedArrayGetBuffer) { |
HandleScope scope(isolate); |
DCHECK_EQ(1, args.length()); |
@@ -214,7 +220,6 @@ RUNTIME_FUNCTION(Runtime_IsTypedArray) { |
return isolate->heap()->ToBoolean(args[0]->IsJSTypedArray()); |
} |
- |
RUNTIME_FUNCTION(Runtime_IsSharedTypedArray) { |
HandleScope scope(isolate); |
DCHECK_EQ(1, args.length()); |