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

Unified Diff: src/code-factory.cc

Issue 2949813002: [turbofan] Introduce new JSConstructWithArrayLike operator. (Closed)
Patch Set: Created 3 years, 6 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-factory.cc
diff --git a/src/code-factory.cc b/src/code-factory.cc
index a12763213a7f6743d0523a5917a0e17fb6bfdbb2..6bda980eafa03c3432aef6c15203280f1e913821 100644
--- a/src/code-factory.cc
+++ b/src/code-factory.cc
@@ -330,6 +330,12 @@ Callable CodeFactory::Construct(Isolate* isolate) {
}
// static
+Callable CodeFactory::ConstructWithArrayLike(Isolate* isolate) {
petermarshall 2017/06/21 08:46:19 You should be able to use Builtins::CallableFor(ma
Benedikt Meurer 2017/06/21 12:05:25 Done.
+ return Callable(isolate->builtins()->ConstructWithArrayLike(),
+ ConstructWithArrayLikeDescriptor(isolate));
+}
+
+// static
Callable CodeFactory::ConstructWithSpread(Isolate* isolate) {
return Callable(isolate->builtins()->ConstructWithSpread(),
ConstructWithSpreadDescriptor(isolate));

Powered by Google App Engine
This is Rietveld 408576698