Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 8b842a733928f7425f73870b8c61523bc03ac84c..73be62ddc55daf63a0621b786063791b4f074da7 100644 |
--- a/src/factory.cc |
+++ b/src/factory.cc |
@@ -1080,6 +1080,16 @@ Handle<JSArrayBuffer> Factory::NewJSArrayBuffer() { |
} |
+Handle<JSDataView> Factory::NewJSDataView() { |
+ JSFunction* data_view_fun = |
+ isolate()->context()->native_context()->data_view_fun(); |
+ CALL_HEAP_FUNCTION( |
+ isolate(), |
+ isolate()->heap()->AllocateJSObject(data_view_fun), |
+ JSDataView); |
+} |
+ |
+ |
Handle<JSTypedArray> Factory::NewJSTypedArray(ExternalArrayType type) { |
JSFunction* typed_array_fun; |
Context* native_context = isolate()->context()->native_context(); |