blob: 2825f4f0af08dc70bb5ec665aa61a18e3d346d32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// 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 SRC_FFI_FFI_COMPILER_H_
#define SRC_FFI_FFI_COMPILER_H_
#include "src/code-stub-assembler.h"
#include "src/machine-type.h"
namespace v8 {
namespace internal {
typedef compiler::Node Node;
typedef compiler::CodeAssemblerState CodeAssemblerState;
void InstallFFIMap(Isolate* isolate);
namespace ffi {
enum class FFIType : uint8_t { kInt32 };
typedef Signature<FFIType> FFISignature;
struct NativeFunction {
FFISignature* sig;
uint8_t* start;
};
Handle<JSFunction> CompileJSToNativeWrapper(Isolate* isolate,
Handle<String> name,
NativeFunction func);
} // namespace ffi
} // namespace internal
} // namespace v8
#endif // SRC_FFI_FFI_COMPILER_H_
|