Index: src/factory.h |
diff --git a/src/factory.h b/src/factory.h |
index 87ec2e6e701b9e7bc4125e170d5f556eaab71ca5..72991d9bf0ca7ef405c170a6f19029a5a2f3305f 100644 |
--- a/src/factory.h |
+++ b/src/factory.h |
@@ -448,11 +448,17 @@ class Factory final { |
Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type); |
+ Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind); |
+ |
// Creates a new JSTypedArray with the specified buffer. |
Handle<JSTypedArray> NewJSTypedArray(ExternalArrayType type, |
Handle<JSArrayBuffer> buffer, |
size_t byte_offset, size_t length); |
+ // Creates a new on-heap JSTypedArray. |
+ Handle<JSTypedArray> NewJSTypedArray(ElementsKind elements_kind, |
+ size_t number_of_elements); |
+ |
Handle<JSDataView> NewJSDataView(); |
Handle<JSDataView> NewJSDataView(Handle<JSArrayBuffer> buffer, |
size_t byte_offset, size_t byte_length); |