Index: src/code-stub-assembler.cc |
diff --git a/src/code-stub-assembler.cc b/src/code-stub-assembler.cc |
index 6c9c8de8f409a1fe39643bf671cb4045ffb1219f..183a044953131492b29a62b2b859be6c34236eca 100644 |
--- a/src/code-stub-assembler.cc |
+++ b/src/code-stub-assembler.cc |
@@ -8080,6 +8080,16 @@ Node* CodeStubAssembler::AllocateJSArrayIterator(Node* array, Node* array_map, |
return iterator; |
} |
+Node* CodeStubAssembler::ArraySpeciesCreate(Node* context, Node* originalArray, |
+ Node* len) { |
+ // TODO(mvstanton): Install a fast path as well, which avoids the runtime |
+ // call. |
+ Node* constructor = |
+ CallRuntime(Runtime::kArraySpeciesConstructor, context, originalArray); |
+ return ConstructJS(CodeFactory::Construct(isolate()), context, constructor, |
+ len); |
+} |
+ |
Node* CodeStubAssembler::IsDetachedBuffer(Node* buffer) { |
CSA_ASSERT(this, HasInstanceType(buffer, JS_ARRAY_BUFFER_TYPE)); |