diff options
Diffstat (limited to 'deps/v8/test/cctest/assembler-helper-arm.h')
-rw-r--r-- | deps/v8/test/cctest/assembler-helper-arm.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/deps/v8/test/cctest/assembler-helper-arm.h b/deps/v8/test/cctest/assembler-helper-arm.h new file mode 100644 index 0000000000..dd24087bda --- /dev/null +++ b/deps/v8/test/cctest/assembler-helper-arm.h @@ -0,0 +1,28 @@ +// 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/macro-assembler.h" + +namespace v8 { +namespace internal { + +// These function prototypes have 5 arguments since they are used with the +// CALL_GENERATED_CODE macro. +typedef Object* (*F_iiiii)(int x, int p1, int p2, int p3, int p4); +typedef Object* (*F_piiii)(void* p0, int p1, int p2, int p3, int p4); +typedef Object* (*F_ppiii)(void* p0, void* p1, int p2, int p3, int p4); +typedef Object* (*F_pppii)(void* p0, void* p1, void* p2, int p3, int p4); +typedef Object* (*F_ippii)(int p0, void* p1, void* p2, int p3, int p4); + +Address AssembleCode(std::function<void(Assembler&)> assemble); + +} // namespace internal +} // namespace v8 + +#endif // V8_CCTEST_ASSEMBLER_HELPER_ARM_H_ |