chromium/v8/test/unittests/compiler/run-tail-calls-unittest.cc

// Copyright 2022 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "src/base/utils/random-number-generator.h"
#include "src/codegen/assembler-inl.h"
#include "src/codegen/code-stub-assembler-inl.h"
#include "src/codegen/macro-assembler.h"
#include "src/objects/code-inl.h"
#include "test/common/code-assembler-tester.h"
#include "test/unittests/compiler/function-tester.h"
#include "test/unittests/test-utils.h"

namespace v8 {
namespace internal {
namespace compiler {

#define __

namespace {

// Function that takes a number of pointer-sized integer arguments, calculates a
// weighted sum of them and returns it.
Handle<Code> BuildCallee(Isolate* isolate, CallDescriptor* call_descriptor) {}

// Function that tail-calls another function with a number of pointer-sized
// integer arguments.
Handle<Code> BuildCaller(Isolate* isolate, CallDescriptor* call_descriptor,
                         CallDescriptor* callee_descriptor) {}

// Setup function, which calls "caller".
Handle<Code> BuildSetupFunction(Isolate* isolate,
                                CallDescriptor* caller_descriptor,
                                CallDescriptor* callee_descriptor) {}

CallDescriptor* CreateDescriptorForStackArguments(Zone* zone, int param_slots) {}

}  // namespace

class RunTailCallsTest : public TestWithContextAndZone {};

#undef __

TEST_F(RunTailCallsTest, CallerOddCalleeEven) {}

TEST_F(RunTailCallsTest, CallerOddCalleeOdd) {}

TEST_F(RunTailCallsTest, CallerEvenCalleeEven) {}

TEST_F(RunTailCallsTest, CallerEvenCalleeOdd) {}

TEST_F(RunTailCallsTest, FuzzStackParamCount) {}

}  // namespace compiler
}  // namespace internal
}  // namespace v8