Index: src/code-factory.cc |
diff --git a/src/code-factory.cc b/src/code-factory.cc |
index 7c6a3363197f9adf2dbcc4d8cea0e13f3ed09b82..fdc303ff4c71897250f28c801cbf18b783c14c6b 100644 |
--- a/src/code-factory.cc |
+++ b/src/code-factory.cc |
@@ -465,6 +465,12 @@ Callable CodeFactory::Construct(Isolate* isolate) { |
} |
// static |
+Callable CodeFactory::ConstructWithSpread(Isolate* isolate) { |
+ return Callable(isolate->builtins()->ConstructWithSpread(), |
+ ConstructTrampolineDescriptor(isolate)); |
+} |
+ |
+// static |
Callable CodeFactory::ConstructFunction(Isolate* isolate) { |
return Callable(isolate->builtins()->ConstructFunction(), |
ConstructTrampolineDescriptor(isolate)); |
@@ -494,6 +500,14 @@ Callable CodeFactory::InterpreterPushArgsAndConstructArray(Isolate* isolate) { |
} |
// static |
+Callable CodeFactory::InterpreterPushArgsAndConstructWithSpread( |
+ Isolate* isolate) { |
+ return Callable( |
+ isolate->builtins()->InterpreterPushArgsAndConstructWithSpread(), |
+ InterpreterPushArgsAndConstructDescriptor(isolate)); |
+} |
+ |
+// static |
Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { |
// Note: If we ever use fpregs in the interpreter then we will need to |
// save fpregs too. |