| Index: src/compiler/ffi-compiler.h
|
| diff --git a/src/compiler/ffi-compiler.h b/src/compiler/ffi-compiler.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..8d208bc13448cc23d5ed90ef3020819e8686c50c
|
| --- /dev/null
|
| +++ b/src/compiler/ffi-compiler.h
|
| @@ -0,0 +1,31 @@
|
| +// Copyright 2016 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_COMPILER_FFI_COMPILER_H_
|
| +#define V8_COMPILER_FFI_COMPILER_H_
|
| +
|
| +#include "src/machine-type.h"
|
| +
|
| +namespace v8 {
|
| +namespace internal {
|
| +namespace ffi {
|
| +
|
| +typedef Signature<MachineType> FFISignature;
|
| +
|
| +struct NativeFunction {
|
| + FFISignature* sig;
|
| + uint8_t* start;
|
| +};
|
| +} // namespace ffi
|
| +
|
| +namespace compiler {
|
| +
|
| +Handle<JSFunction> CompileJSToNativeWrapper(Isolate* isolate,
|
| + Handle<String> name,
|
| + ffi::NativeFunction func);
|
| +} // namespace compiler
|
| +} // namespace internal
|
| +} // namespace v8
|
| +
|
| +#endif // V8_COMPILER_FFI_COMPILER_H_
|
|
|