summaryrefslogtreecommitdiff
path: root/ext/ffi/prelude.h
diff options
context:
space:
mode:
authorArnau Orriols <arnauorriolsmiro@gmail.com>2022-09-07 08:53:56 +0200
committerGitHub <noreply@github.com>2022-09-07 12:23:56 +0530
commit8bdc3c2bafa9bdfcd6bfaf94b97b960843908ae9 (patch)
treea0019bf3f8432200583dc74093157374605bba7d /ext/ffi/prelude.h
parent5819fef2d53b4e2db6060edb8501a5af73235098 (diff)
feat(ext/ffi): Implement FFI fast-call trampoline with Dynasmrt (#15305)
Diffstat (limited to 'ext/ffi/prelude.h')
-rw-r--r--ext/ffi/prelude.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/ext/ffi/prelude.h b/ext/ffi/prelude.h
deleted file mode 100644
index 2da1e6523..000000000
--- a/ext/ffi/prelude.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
-
-/* Boolean type */
-
-#ifndef _STDBOOL_H
-#define _STDBOOL_H
-
-#define bool _Bool
-#define true 1
-#define false 0
-
-#endif
-
-/* Exact integral types. */
-
-/* Signed. */
-typedef signed char int8_t;
-typedef short int int16_t;
-typedef int int32_t;
-typedef long int int64_t;
-
-/* Unsigned. */
-typedef unsigned char uint8_t;
-typedef unsigned short int uint16_t;
-typedef unsigned int uint32_t;
-typedef unsigned long int uint64_t;
-
-/* Types for `void *' pointers. */
-typedef long int intptr_t;
-typedef unsigned long int uintptr_t;
-
-// https://source.chromium.org/chromium/chromium/src/+/main:v8/include/v8-fast-api-calls.h;l=336
-struct FastApiTypedArray {
- uintptr_t length_;
- void* data;
-};