Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Unified Diff: src/code-stub-assembler.cc

Issue 2814683002: [builtins] Implement %TypedArray%.prototype.map in the CSA (Closed)
Patch Set: added spec comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/code-stub-assembler.cc
diff --git a/src/code-stub-assembler.cc b/src/code-stub-assembler.cc
index 7b062b6bf6da73846501d144d80ef97a1bf9bfc5..7ef6502c64269402804dc7839d5de52700693a89 100644
--- a/src/code-stub-assembler.cc
+++ b/src/code-stub-assembler.cc
@@ -8343,6 +8343,15 @@ Node* CodeStubAssembler::ArraySpeciesCreate(Node* context, Node* originalArray,
len);
}
+Node* CodeStubAssembler::TypedArraySpeciesCreateByLength(Node* context,
+ Node* originalArray,
+ Node* len) {
+ // TODO(tebbi): Install a fast path as well, which avoids the runtime
+ // call.
+ return CallRuntime(Runtime::kTypedArraySpeciesCreateByLength, context,
+ UndefinedConstant(), originalArray, len);
+}
+
Node* CodeStubAssembler::IsDetachedBuffer(Node* buffer) {
CSA_ASSERT(this, HasInstanceType(buffer, JS_ARRAY_BUFFER_TYPE));

Powered by Google App Engine
This is Rietveld 408576698