V8::Isolate定义在哪里?
Where is the V8::Isolate definition?
这些都是关于JavaScript V8引擎的。V8::Isolate类在哪里定义?在代码(api.cc)中:
i::Isolate* isolate = new i::Isolate(false);
隔离是从v8::internal::isolate类创建的。下面是对v8::isolate对象的强制转换。
Isolate* Isolate::New(const Isolate::CreateParams& params) {
i::Isolate* isolate = new i::Isolate(false);
Isolate* v8_isolate = reinterpret_cast<Isolate*>(isolate);
...
}
有人知道这个类是在哪里定义的吗?
有两个Isolate
类。v8::Isolate
类是公共接口的一部分,在include/v8.h
中声明。v8::internal::Isolate
类是实际的隔离,在src/isolate.h
中声明。
相关文章:
- C++我需要了解在哪里使用指针和双指针
- 未定义的引用在哪里
- 谷歌测试中的期望值存储在哪里
- 尽管遵循了规则,内存泄漏在哪里
- 静态数据成员模板专用化的实例化点在哪里
- 在哪里放置我的函数?进入我的母语 Gui 还是进入我的演示者?
- 在哪里声明结构运算符重载
- C++ 中的自定义异常:在哪里定义它们?
- 常量参数存储在哪里 (C++)?
- 如何在 c++ 中确定一条指令(以字节为单位)在哪里结束,另一条指令从哪里开始?
- 此递归函数的每次迭代的值存储在哪里?
- 如何告诉本机节点模块所需的dll存储在哪里?
- 在哪里存储跨平台C++应用存储?
- C++泛型类错误,问题出在哪里?
- 在标准中,模板参数的语法在哪里定义,例如,'std::function<int(char)>'?
- 将类作为主要参数的语法在哪里需要?
- 模板参数在 C++ 中存储在哪里?
- 我的重复检查代码中的错误究竟在哪里?
- 在哪里可以找到 std::bitset 的数据成员?
- V8::Isolate定义在哪里?