Index: src/ffi/ffi-compiler.h |
diff --git a/src/ffi/ffi-compiler.h b/src/ffi/ffi-compiler.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5d744d817fec80ff288c0f73e311187130b36f6f |
--- /dev/null |
+++ b/src/ffi/ffi-compiler.h |
@@ -0,0 +1,31 @@ |
+// Copyright 2016 the V8 project authors. All rights reserved. |
Michael Starzinger
2017/01/18 10:47:24
nit: 2017
mattloring
2017/01/18 17:48:18
Done.
|
+// 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/machine-type.h" |
+ |
+namespace v8 { |
+namespace internal { |
+ |
+void InstallFFIMap(Isolate* isolate); |
+ |
+namespace ffi { |
+ |
+typedef Signature<MachineType> FFISignature; |
+ |
+struct NativeFunction { |
+ FFISignature* sig; |
+ uint8_t* start; |
+}; |
+ |
+Handle<JSFunction> CompileJSToNativeWrapper(Isolate* isolate, |
+ Handle<String> name, |
+ ffi::NativeFunction func); |
+} // namespace ffi |
+} // namespace internal |
+} // namespace v8 |
+ |
+#endif // SRC_FFI_FFI_COMPILER_H_ |