OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SRC_FFI_FFI_COMPILER_H_ |
| 6 #define SRC_FFI_FFI_COMPILER_H_ |
| 7 |
| 8 #include "src/code-stub-assembler.h" |
| 9 #include "src/machine-type.h" |
| 10 |
| 11 namespace v8 { |
| 12 namespace internal { |
| 13 |
| 14 typedef compiler::Node Node; |
| 15 typedef compiler::CodeAssemblerState CodeAssemblerState; |
| 16 |
| 17 void InstallFFIMap(Isolate* isolate); |
| 18 |
| 19 namespace ffi { |
| 20 |
| 21 typedef Signature<MachineType> FFISignature; |
| 22 |
| 23 struct NativeFunction { |
| 24 FFISignature* sig; |
| 25 uint8_t* start; |
| 26 }; |
| 27 |
| 28 Handle<JSFunction> CompileJSToNativeWrapper(Isolate* isolate, |
| 29 Handle<String> name, |
| 30 NativeFunction func); |
| 31 } // namespace ffi |
| 32 } // namespace internal |
| 33 } // namespace v8 |
| 34 |
| 35 #endif // SRC_FFI_FFI_COMPILER_H_ |
OLD | NEW |