OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 V8_COMPILER_FFI_COMPILER_H_ |
| 6 #define V8_COMPILER_FFI_COMPILER_H_ |
| 7 |
| 8 #include "src/machine-type.h" |
| 9 |
| 10 namespace v8 { |
| 11 namespace internal { |
| 12 namespace ffi { |
| 13 |
| 14 typedef Signature<MachineType> FFISignature; |
| 15 |
| 16 struct NativeFunction { |
| 17 FFISignature* sig; |
| 18 uint8_t* start; |
| 19 }; |
| 20 } // namespace ffi |
| 21 |
| 22 namespace compiler { |
| 23 |
| 24 Handle<JSFunction> CompileJSToNativeWrapper(Isolate* isolate, |
| 25 Handle<String> name, |
| 26 ffi::NativeFunction func); |
| 27 } // namespace compiler |
| 28 } // namespace internal |
| 29 } // namespace v8 |
| 30 |
| 31 #endif // V8_COMPILER_FFI_COMPILER_H_ |
OLD | NEW |