summaryrefslogtreecommitdiff
path: root/deps/v8/src/builtins/builtins-arguments-gen.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/builtins/builtins-arguments-gen.h')
-rw-r--r--deps/v8/src/builtins/builtins-arguments-gen.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/deps/v8/src/builtins/builtins-arguments-gen.h b/deps/v8/src/builtins/builtins-arguments-gen.h
index 438d10ab59..0f921c1ca6 100644
--- a/deps/v8/src/builtins/builtins-arguments-gen.h
+++ b/deps/v8/src/builtins/builtins-arguments-gen.h
@@ -6,6 +6,7 @@
#define V8_BUILTINS_BUILTINS_ARGUMENTS_GEN_H_
#include "src/code-stub-assembler.h"
+#include "torque-generated/builtins-arguments-from-dsl-gen.h"
namespace v8 {
namespace internal {
@@ -14,23 +15,17 @@ typedef compiler::Node Node;
typedef compiler::CodeAssemblerState CodeAssemblerState;
typedef compiler::CodeAssemblerLabel CodeAssemblerLabel;
-class ArgumentsBuiltinsAssembler : public CodeStubAssembler {
+class ArgumentsBuiltinsAssembler : public CodeStubAssembler,
+ public ArgumentsBuiltinsFromDSLAssembler {
public:
explicit ArgumentsBuiltinsAssembler(CodeAssemblerState* state)
- : CodeStubAssembler(state) {}
+ : CodeStubAssembler(state), ArgumentsBuiltinsFromDSLAssembler(state) {}
Node* EmitFastNewStrictArguments(Node* context, Node* function);
Node* EmitFastNewSloppyArguments(Node* context, Node* function);
Node* EmitFastNewRestParameter(Node* context, Node* function);
private:
- // Calculates and returns the the frame pointer, argument count and formal
- // parameter count to be used to access a function's parameters, taking
- // argument adapter frames into account. The tuple is of the form:
- // <frame_ptr, # parameters actually passed, formal parameter count>
- std::tuple<Node*, Node*, Node*> GetArgumentsFrameAndCount(Node* function,
- ParameterMode mode);
-
// Allocates an an arguments (either rest, strict or sloppy) together with the
// FixedArray elements for the arguments and a parameter map (for sloppy
// arguments only). A tuple is returned with pointers to the arguments object,