summaryrefslogtreecommitdiff
path: root/deps/v8/src/factory.cc
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-04-29 22:35:21 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2013-04-29 22:35:21 +0200
commit2f75785c015fecc33565fe5ee3a483b0d4e5cc6d (patch)
treead66b4eaba8cedfeb7cfb40b0871307ae08d25e8 /deps/v8/src/factory.cc
parent5ddf7f4200894a7304d7c07bbbd8773fac3509d1 (diff)
downloadnode-2f75785c015fecc33565fe5ee3a483b0d4e5cc6d.tar.gz
deps: upgrade v8 to 3.18.4
Diffstat (limited to 'deps/v8/src/factory.cc')
-rw-r--r--deps/v8/src/factory.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/deps/v8/src/factory.cc b/deps/v8/src/factory.cc
index 77d22006a..f36006c11 100644
--- a/deps/v8/src/factory.cc
+++ b/deps/v8/src/factory.cc
@@ -476,6 +476,8 @@ Handle<ExternalArray> Factory::NewExternalArray(int length,
Handle<JSGlobalPropertyCell> Factory::NewJSGlobalPropertyCell(
Handle<Object> value) {
+ ALLOW_HANDLE_DEREF(isolate(),
+ "converting a handle into a global property cell");
CALL_HEAP_FUNCTION(
isolate(),
isolate()->heap()->AllocateJSGlobalPropertyCell(*value),
@@ -1044,6 +1046,16 @@ void Factory::EnsureCanContainElements(Handle<JSArray> array,
}
+Handle<JSArrayBuffer> Factory::NewJSArrayBuffer() {
+ JSFunction* array_buffer_fun =
+ isolate()->context()->native_context()->array_buffer_fun();
+ CALL_HEAP_FUNCTION(
+ isolate(),
+ isolate()->heap()->AllocateJSObject(array_buffer_fun),
+ JSArrayBuffer);
+}
+
+
Handle<JSProxy> Factory::NewJSProxy(Handle<Object> handler,
Handle<Object> prototype) {
CALL_HEAP_FUNCTION(