openharmony 鸿蒙 capi-jsvm-jsvm-initoptions

2026-08-25 浏览 (1)

JSVM_InitOptions

typedef struct {...} JSVM_InitOptions

Overview

Defines options for initializing a JavaScript VM.

Since: 11

Related module: JSVM

Header file: jsvm_types.h

Summary

Member Variables

NameDescription
const intptr_t* externalReferences(Optional) A raw address array with a nullptr at the end in the embedder, which can be matched with the VM during serialization and can be used for deserialization. This array and its contents must remain valid throughout the lifecycle of the VM instance.
int* argcVM flag. If removeFlags is true, the identified flags are removed from (argc, argv). Note that these flags are now only available to V8 VMs. They are mainly used for development. Do not use these flags in the production environment, as they may not take effect if the VM's configuration differs from the development environment.
char** argvPointer to the string array of command parameters, which is used together with argc to transfer VM configurations.
bool removeFlagsWhether to remove flags. If this parameter is set to true, the identified flags are removed from (argc, argv). If this parameter is set to false, the identified flags are not removed from (argc, argv).

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-jsvm-jsvm-vminfo

openharmony 鸿蒙 capi-memory

openharmony 鸿蒙 js-apis-syscap

openharmony 鸿蒙 capi-memory-purgmem

openharmony 鸿蒙 capi-jsvm-jsvm-callbackstruct8h

openharmony 鸿蒙 capi-jsvm-jsvm-propertydescriptor

openharmony 鸿蒙 js-apis-common-load-native-module

openharmony 鸿蒙 capi-jsvm-jsvm-cpuprofiler--8h

openharmony 鸿蒙 capi-jsvm-jsvm-codecache

openharmony 鸿蒙 capi-jsvm-jsvm-data--8h

  • 所属分类: 后端技术
  • 本文标签: 鸿蒙 软件
  • 版权声明: 本文链接 https://seaxiang.com/blog/GIYZMjK6