c0367102a3
The biggest chunk of this CL is related to the CodeBuilder now returning a Code object instead of an InstructionStream. Most codegen-related parts of the codebase had to be updated, including compiler.cc, pipeline.cc, and many tests. The good news is, we now have 400 fewer references to InstructionStream. Smaller changes: - Remove ToAbstractCode - Remove dead code - Update comments - Update method and variable names Bug: v8:13654 Change-Id: Ieb12bc698af576e07016e4c5c8c9d494e5addb0e Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4174091 Reviewed-by: Dominik Inführ <dinfuehr@chromium.org> Auto-Submit: Jakob Linke <jgruber@chromium.org> Commit-Queue: Adam Klein <adamk@chromium.org> Reviewed-by: Leszek Swirski <leszeks@chromium.org> Reviewed-by: Adam Klein <adamk@chromium.org> Cr-Commit-Position: refs/heads/main@{#85372}
38 lines
1.3 KiB
C++
38 lines
1.3 KiB
C++
// Copyright 2017 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.
|
|
|
|
#ifndef V8_CCTEST_ASSEMBLER_HELPER_ARM_H_
|
|
#define V8_CCTEST_ASSEMBLER_HELPER_ARM_H_
|
|
|
|
#include <functional>
|
|
|
|
#include "src/execution/simulator.h"
|
|
#include "src/handles/handles.h"
|
|
|
|
namespace v8 {
|
|
namespace internal {
|
|
|
|
// TODO(arm): Refine these signatures per test case, they can have arbitrary
|
|
// return and argument types and arbitrary number of arguments.
|
|
using F_iiiii = void*(int x, int p1, int p2, int p3, int p4);
|
|
using F_piiii = void*(void* p0, int p1, int p2, int p3, int p4);
|
|
using F_ppiii = void*(void* p0, void* p1, int p2, int p3, int p4);
|
|
using F_pppii = void*(void* p0, void* p1, void* p2, int p3, int p4);
|
|
using F_ippii = void*(int p0, void* p1, void* p2, int p3, int p4);
|
|
|
|
Handle<Code> AssembleCodeImpl(Isolate* isolate,
|
|
std::function<void(MacroAssembler&)> assemble);
|
|
|
|
template <typename Signature>
|
|
GeneratedCode<Signature> AssembleCode(
|
|
Isolate* isolate, std::function<void(MacroAssembler&)> assemble) {
|
|
return GeneratedCode<Signature>::FromCode(
|
|
*AssembleCodeImpl(isolate, assemble));
|
|
}
|
|
|
|
} // namespace internal
|
|
} // namespace v8
|
|
|
|
#endif // V8_CCTEST_ASSEMBLER_HELPER_ARM_H_
|