Lines Matching refs:args
94 Args&& ... args) { in CreateClosureStaticVariables()
96 const size_t static_size = GetArgsSize(args ...) + header_size; in CreateClosureStaticVariables()
105 CopyArgs(closure_ptr->captured_[0].static_variables_, args ...); in CreateClosureStaticVariables()
113 static void CopyArgs(uint8_t destination[], T&& arg, Args&& ... args) { in CopyArgs() argument
115 CopyArgs(destination + sizeof(arg), args ...); in CopyArgs()
129 Args&& ... args) { in CreateClosureStaticVariablesFromBuilder()
134 CaptureVariableFromArgsList(/*out*/closure_builder, args ...); in CreateClosureStaticVariablesFromBuilder()
136 EXPECT_EQ(sizeof...(args), closure_builder.GetCaptureCount()); in CreateClosureStaticVariablesFromBuilder()
139 const size_t static_size = GetArgsSize(args ...) + header_size; in CreateClosureStaticVariablesFromBuilder()
159 static void CaptureVariableFromArgsList(/*out*/ClosureBuilder& closure_builder, Args ... args) { in CaptureVariableFromArgsList() argument
161 … (CaptureVariableFromArgs(/*out*/closure_builder, args),0)... // NOLINT [whitespace/comma] [3] in CaptureVariableFromArgsList()
184 static constexpr size_t GetArgsSize(T&& arg, Args&& ... args) { in GetArgsSize() argument
185 return sizeof(arg) + GetArgsSize(args ...); in GetArgsSize()
226 void TestPrimitive(const char *descriptor, Args ... args) { in TestPrimitive() argument
231 ASSERT_EQ(strlen(shorty), sizeof...(args)) in TestPrimitive()
249 std::unique_ptr<Closure> closure_raw = CreateClosureStaticVariables(&lambda_method, args ...); in TestPrimitive()
254 TestPrimitiveWithClosure(closure_raw.get(), descriptor, shorty, args ...); in TestPrimitive()
263 CreateClosureStaticVariablesFromBuilder(&lambda_method, args ...); in TestPrimitive()
267 TestPrimitiveWithClosure(closure_built.get(), descriptor, shorty, args ...); in TestPrimitive()
282 Args ... args) { in TestPrimitiveWithClosure()
283 EXPECT_EQ(sizeof(ArtLambdaMethod*) + GetArgsSize(args...), closure->GetSize()); in TestPrimitiveWithClosure()
284 EXPECT_EQ(sizeof...(args), closure->GetNumberOfCapturedVariables()); in TestPrimitiveWithClosure()
286 TestPrimitiveExpects(closure, shorty, /*index*/0, args ...); in TestPrimitiveWithClosure()
292 const Closure* closure, const char* shorty, size_t index, T arg, Args ... args) { in TestPrimitiveExpects()
297 TestPrimitiveExpects(closure, shorty, index + 1, args ...); in TestPrimitiveExpects()