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

Unified Diff: src/runtime/runtime.h

Issue 2250863002: WIP: prototype ffi support (from 2084663004) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years 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
« no previous file with comments | « src/objects.h ('k') | src/runtime/runtime-ffi.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime.h
diff --git a/src/runtime/runtime.h b/src/runtime/runtime.h
index 78cff340893a291d7fd27e3f4afdfb5f586c88bd..d9a4a9dd6de67596ceade6e920004a567f26524e 100644
--- a/src/runtime/runtime.h
+++ b/src/runtime/runtime.h
@@ -947,6 +947,17 @@ namespace internal {
F(ThrowWasmTrapFuncInvalid, 0, 1) \
F(ThrowWasmTrapFuncSigMismatch, 0, 1)
+#define FOR_EACH_INTRINSIC_FFI(F) \
+ F(JSStringToCharPtr, 1, 1) \
+ F(TypedArrayToUint8Ptr, 1, 1) \
+ F(BufferToPtrNoCopy, 1, 1) \
+ F(CharPtrToJSString, 1, 1) \
+ F(JSFunctionToFnPtr, 2, 1) \
+ F(JSObjectToStructPtr, 2, 1) \
+ F(PointerToForeign, 1, 1) \
+ F(ForeignToPointer, 1, 1) \
+ F(ReleaseFFIMemPool, 0, 1)
+
#define FOR_EACH_INTRINSIC_RETURN_PAIR(F) \
F(LoadLookupSlotForCall, 1, 2)
@@ -987,6 +998,7 @@ namespace internal {
FOR_EACH_INTRINSIC_DATE(F) \
FOR_EACH_INTRINSIC_DEBUG(F) \
FOR_EACH_INTRINSIC_ERROR(F) \
+ FOR_EACH_INTRINSIC_FFI(F) \
FOR_EACH_INTRINSIC_FORIN(F) \
FOR_EACH_INTRINSIC_INTERPRETER(F) \
FOR_EACH_INTRINSIC_FUNCTION(F) \
« no previous file with comments | « src/objects.h ('k') | src/runtime/runtime-ffi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698