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

Side by Side Diff: src/ffi/ffi-compiler.h

Issue 2639163004: [ffi] Translation + test for int32 (Closed)
Patch Set: Arm fixes 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/ffi/ffi-compiler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 the V8 project authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SRC_FFI_FFI_COMPILER_H_ 5 #ifndef SRC_FFI_FFI_COMPILER_H_
6 #define SRC_FFI_FFI_COMPILER_H_ 6 #define SRC_FFI_FFI_COMPILER_H_
7 7
8 #include "src/code-stub-assembler.h" 8 #include "src/code-stub-assembler.h"
9 #include "src/machine-type.h" 9 #include "src/machine-type.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 13
14 typedef compiler::Node Node; 14 typedef compiler::Node Node;
15 typedef compiler::CodeAssemblerState CodeAssemblerState; 15 typedef compiler::CodeAssemblerState CodeAssemblerState;
16 16
17 void InstallFFIMap(Isolate* isolate); 17 void InstallFFIMap(Isolate* isolate);
18 18
19 namespace ffi { 19 namespace ffi {
20 20
21 typedef Signature<MachineType> FFISignature; 21 enum class FFIType : uint8_t { kInt32 };
22
23 typedef Signature<FFIType> FFISignature;
22 24
23 struct NativeFunction { 25 struct NativeFunction {
24 FFISignature* sig; 26 FFISignature* sig;
25 uint8_t* start; 27 uint8_t* start;
26 }; 28 };
27 29
28 Handle<JSFunction> CompileJSToNativeWrapper(Isolate* isolate, 30 Handle<JSFunction> CompileJSToNativeWrapper(Isolate* isolate,
29 Handle<String> name, 31 Handle<String> name,
30 NativeFunction func); 32 NativeFunction func);
31 } // namespace ffi 33 } // namespace ffi
32 } // namespace internal 34 } // namespace internal
33 } // namespace v8 35 } // namespace v8
34 36
35 #endif // SRC_FFI_FFI_COMPILER_H_ 37 #endif // SRC_FFI_FFI_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/ffi/ffi-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698