Index: src/builtins/builtins.cc |
diff --git a/src/builtins/builtins.cc b/src/builtins/builtins.cc |
index ac8419798efc2cb62e826b913f29d49486e88126..538c36d38c8a27efaea750b9f0006068c2d7d795 100644 |
--- a/src/builtins/builtins.cc |
+++ b/src/builtins/builtins.cc |
@@ -4733,6 +4733,18 @@ Handle<Code> Builtins::InterpreterPushArgsAndCall(TailCallMode tail_call_mode, |
return Handle<Code>::null(); |
} |
+Handle<Code> Builtins::InterpreterPushArgsAndConstruct( |
+ CallableType function_type) { |
+ switch (function_type) { |
+ case CallableType::kJSFunction: |
+ return InterpreterPushArgsAndConstructFunction(); |
+ case CallableType::kAny: |
+ return InterpreterPushArgsAndConstruct(); |
+ } |
+ UNREACHABLE(); |
+ return Handle<Code>::null(); |
+} |
+ |
namespace { |
class RelocatableArguments : public BuiltinArguments, public Relocatable { |
@@ -5838,6 +5850,16 @@ void Builtins::Generate_InterpreterPushArgsAndTailCallFunction( |
CallableType::kJSFunction); |
} |
+void Builtins::Generate_InterpreterPushArgsAndConstruct(MacroAssembler* masm) { |
+ return Generate_InterpreterPushArgsAndConstructImpl(masm, CallableType::kAny); |
+} |
+ |
+void Builtins::Generate_InterpreterPushArgsAndConstructFunction( |
+ MacroAssembler* masm) { |
+ return Generate_InterpreterPushArgsAndConstructImpl( |
+ masm, CallableType::kJSFunction); |
+} |
+ |
void Builtins::Generate_MathMax(MacroAssembler* masm) { |
Generate_MathMaxMin(masm, MathMaxMinKind::kMax); |
} |