Line data Source code
1 : #ifndef V8_TORQUE_ARGUMENTS_FROM_DSL_BASE_H__
2 : #define V8_TORQUE_ARGUMENTS_FROM_DSL_BASE_H__
3 :
4 : #include "src/compiler/code-assembler.h"
5 : #include "src/code-stub-assembler.h"
6 : #include "src/utils.h"
7 : #include "torque-generated/class-definitions-from-dsl.h"
8 :
9 : namespace v8 {
10 : namespace internal {
11 :
12 168 : class ArgumentsBuiltinsFromDSLAssembler {
13 : public:
14 168 : explicit ArgumentsBuiltinsFromDSLAssembler(compiler::CodeAssemblerState* state) : state_(state), ca_(state) { USE(state_, ca_); }
15 : struct ArgumentsInfo {
16 : compiler::TNode<RawPtrT> frame;
17 : compiler::TNode<BInt> argument_count;
18 : compiler::TNode<BInt> formal_parameter_count;
19 :
20 : std::tuple<compiler::TNode<RawPtrT>, compiler::TNode<BInt>, compiler::TNode<BInt>> Flatten() const {
21 : return std::tuple_cat(std::make_tuple(frame), std::make_tuple(argument_count), std::make_tuple(formal_parameter_count));
22 : }
23 : };
24 : ArgumentsBuiltinsFromDSLAssembler::ArgumentsInfo GetArgumentsFrameAndCount(compiler::TNode<Context> p_context, compiler::TNode<JSFunction> p_f);
25 : private:
26 : compiler::CodeAssemblerState* const state_;
27 : compiler::CodeAssembler ca_;
28 : };
29 :
30 : } // namespace internal
31 : } // namespace v8
32 :
33 : #endif // V8_TORQUE_ARGUMENTS_FROM_DSL_BASE_H__
|