Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: src/compiler/ffi-compiler.h

Issue 2607993003: FFI Compiler based on code stub assembler (Closed)
Patch Set: Add implementation todos Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698