Lines Matching +full:pre +full:- +full:optimization
7 * http://www.apache.org/licenses/LICENSE-2.0
46 #include <stdbool.h> // NOLINT(modernize-deprecated-headers)
47 #include <stddef.h> // NOLINT(modernize-deprecated-headers)
49 // Use INT_MAX, this should only be consumed by the pre-processor anyway.
55 // The baseline version for JSVM-API.
58 // functions available in a new version of JSVM-API that is not yet ported in all
98 // clang-format off
171 * @brief This API returns the Symbol.asyncIterator of Well-Known Symbols.
174 * @param result The Symbol.asyncIterator of Well-Known Symbols.
184 * @brief This API returns the Symbol.hasInstance of Well-Known Symbols.
187 * @param result The Symbol.hasInstance of Well-Known Symbols.
197 * @brief This API returns the Symbol.isConcatSpreadable of Well-Known Symbols
200 * @param result The Symbol.isConcatSpreadable of Well-Known Symbols.
210 * @brief This API returns the Symbol.match of Well-Known Symbols
213 * @param result The Symbol.match of Well-Known Symbols.
223 * @brief This API returns the Symbol.replace of Well-Known Symbols
226 * @param result The Symbol.replace of Well-Known Symbols.
236 * @brief This API returns the Symbol.search of Well-Known Symbols
239 * @param result The Symbol.search of Well-Known Symbols.
249 * @brief This API returns the Symbol.split of Well-Known Symbols
252 * @param result The Symbol.split of Well-Known Symbols.
262 * @brief This API returns the Symbol.toPrimitive of Well-Known Symbols
265 * @param result The Symbol.toPrimitive of Well-Known Symbols.
275 * @brief This API returns the Symbol.unscopables of Well-Known Symbols
278 * @param result The Symbol.unscopables of Well-Known Symbols.
288 * @brief This API returns the Symbol.toStringTag of Well-Known Symbols
291 * @param result The Symbol.toStringTag of Well-Known Symbols.
301 * @brief This API returns the Symbol.iterator of Well-Known Symbols
304 * @param result The Symbol.iterator of Well-Known Symbols.
458 * @param env: The environment that the JSVM-API call is invoked under.
468 * @param env: The environment that the JSVM-API call is invoked under.
478 * @param env: The environment that the JSVM-API call is invoked under.
488 * @param env: The environment that the JSVM-API call is invoked under.
510 * @param env: The environment that the JSVM-API call is invoked under.
534 * @param env: The environment that the JSVM-API call is invoked under.
551 * @param env: The environment that the JSVM-API call is invoked under.
563 …* does not allow to access the module scope, meaning that pseudo-globals such as require will not …
579 * @param env: The environment that the JSVM-API call is invoked under.
593 * @param env: The environment that the JSVM-API call is invoked under.
605 * @param env: The environment that the JSVM-API call is invoked under.
899 * @brief This API returns a JSVM-API value corresponding to a JavaScript Array type.
909 …* @brief This API returns a JSVM-API value corresponding to a JavaScript Array type. The Array's l…
910 …* is set to the passed-in length parameter. However, the underlying buffer is not guaranteed to be…
922 …* @brief This API returns a JSVM-API value corresponding to a JavaScript ArrayBuffer. ArrayBuffers…
923 …* represent fixed-length binary data buffers. They are normally used as a backing-buffer for Typed…
1034 * @brief This API creates a JavaScript symbol value from a UTF8-encoded C string.
1050 …* @param utf8description: UTF-8 C string representing the text to be used as the description for t…
1051 …* @param length: The length of the description string in bytes, or JSVM_AUTO_LENGTH if it is null-…
1125 * objects provide an array-like view over an underlying data buffer where each element has the
1147 * objects provide an array-like view over an underlying data buffer, but one which allows items
1203 * @param value: Double-precision value to be represented in JavaScript.
1233 * @brief This API converts an array of unsigned 64-bit words into a single BigInt value.
1239 * @param words: An array of uint64_t little-endian 64-bit words.
1251 * @brief This API creates a JavaScript string value from an ISO-8859-1-encoded C
1255 * @param str: Character buffer representing an ISO-8859-1-encoded string.
1256 * @param length: The length of the string in bytes, or JSVM_AUTO_LENGTH if it is null-terminated.
1264 * @brief This API creates a JavaScript string value from a UTF16-LE-encoded C
1268 * @param str: Character buffer representing a UTF16-LE-encoded string.
1269 * @param length: The length of the string in two-byte code units, or JSVM_AUTO_LENGTH
1270 * if it is null-terminated.
1278 * @brief This API creates a JavaScript string value from a UTF8-encoded C
1282 * @param str: Character buffer representing a UTF8-encoded string.
1283 * @param length: The length of the string in bytes, or JSVM_AUTO_LENGTH if it is null-terminated.
1290 * @brief This API creates an external JavaScript string value from an ISO-8859-1-encoded C
1294 * @param str Character buffer representing an ISO-8859-1-encoded string.
1295 * @param length The length of the string in bytes, or JSVM_AUTO_LENGTH if it is null-terminated.
1301 * true for faild to create external ones and fall back to non-external strings, false for success.
1316 * @brief This API creates an external JavaScript string value from an UTF16-LE-encoded C
1320 * @param str Character buffer representing an UTF16-LE-encoded string.
1321 * @param length The length of the string in bytes, or JSVM_AUTO_LENGTH if it is null-terminated.
1327 * true for faild to create external ones and fall back to non-external strings, false for success.
1394 …element in the array. Therefore, the first byte of the native array would be at data - byte_offset.
1428 * @brief Returns JSVM_OK if the API succeeded. If a non-date JSVM_Value is
1448 * If a non-boolean JSVM_Value is passed in it returns JSVM_BOOLEAN_EXPECTED.
1460 * If a non-number JSVM_Value is passed in it returns JSVM_NUMBER_EXPECTED.
1473 …* @return Returns JSVM_OK if the API succeeded. If a non-BigInt is passed in it returns JSVM_BIGIN…
1486 …* @return Returns JSVM_OK if the API succeeded. If a non-BigInt is passed in it returns JSVM_BIGIN…
1492 …* @brief This API converts a single BigInt value into a sign bit, 64-bit little-endian array, and …
1500 * @param words: Pointer to a pre-allocated 64-bit word array.
1516 …* @return Returns JSVM_OK if the API succeeded. If a non-external JSVM_Value is passed in it retur…
1527 …* @return Returns JSVM_OK if the API succeeded. If a non-number JSVM_Value is passed in JSVM_NUMBE…
1538 …* @return Returns JSVM_OK if the API succeeded. If a non-number JSVM_Value is passed in JSVM_NUMBE…
1544 * @brief This API returns the ISO-8859-1-encoded string corresponding the value passed in.
1548 * @param buf: Buffer to write the ISO-8859-1-encoded string into. If NULL is passed in, the
1551 * is truncated and null-terminated.
1553 …* @return Returns JSVM_OK if the API succeeded. If a non-number JSVM_Value is passed in JSVM_NUMBE…
1563 * @brief This API returns the UTF8-encoded string corresponding the value passed in.
1567 * @param buf: Buffer to write the UTF8-encoded string into. If NULL is passed in, the length
1570 * string is truncated and null-terminated.
1572 …* @return Returns JSVM_OK if the API succeeded. If a non-number JSVM_Value is passed in JSVM_NUMBE…
1582 * @brief This API returns the UTF16-encoded string corresponding the value passed in.
1586 * @param buf: Buffer to write the UTF16-LE-encoded string into. If NULL is passed in,
1587 * the length of the string in 2-byte code units and excluding the null terminator is returned.
1589 * the returned string is truncated and null-terminated.
1590 * @param result: Number of 2-byte code units copied into the buffer, excluding the null terminator.
1591 …* @return Returns JSVM_OK if the API succeeded. If a non-number JSVM_Value is passed in JSVM_NUMBE…
1607 * If a non-number JSVM_Value is passed in it returns JSVM_NUMBER_EXPECTED.
1666 * function potentially runs JS code if the passed-in value is an object.
1689 * function potentially runs JS code if the passed-in value is an object.
1908 * @return Returns JSVM_OK if the API succeeded.If a non-detachable ArrayBuffer
2012 * key must be a string or a symbol, or an error will be thrown. JSVM-API will
2153 * from being added to it, as well as marking all existing properties as non-configurable.
2164 * a native add-on. This is the primary mechanism of calling back from the
2165 * add-on's native code into JavaScript.
2184 * @brief This API allows an add-on author to create a function object in native
2185 * code. This is the primary mechanism to allow calling into the add-on's native
2195 * is null-terminated.
2277 * is null-terminated.
2306 * when the JavaScript object has been garbage-collected.
2337 * it will no longer be called when the JavaScript object becomes garbage-collected.
2386 * JavaScript object has been garbage-collected. JSVM_Finalize provides more details.
2400 * @brief This API returns the highest JSVM-API version supported by the JSVM runtime.
2402 * JSVM-API is planned to be additive such that newer releases of JSVM may support additional
2407 * @param result: The highest version of JSVM-API supported.
2647 * is null-terminated.
2885 * @brief This API returns a JSVM-API value corresponding to a JavaScript Map type.
2906 * @brief This API returns a JSVM-API value corresponding to a JavaScript Set type.
2977 * is null-terminated.
3063 * into the specified optimization level.
3068 * @param optLevel: Optimization level the function will be compiled with.
3130 * @brief Trace start with specified categories for all JSVM VM.(Non-thread-safe)
3134 * @param tag User-defined tag of trace data.
3148 * @brief Trace stop for specified categories for all JSVM VM.(Non-thread-safe)
3170 * is null-terminated.
3179 * @param parentClass The parent-class of the currently defined class.
3200 // clang-format on