/**
* Google v8 shared library for Windows x86 & x64 under Microsoft Visual Studio 2013
*
* Compiled by march511@gmail.com
* 2014-04-08 01:29
*
* To compile helloWorld.cpp :
* e.g. cl.exe helloWorld.cpp -I.\Include .\x86\v8.lib
*
*/
/**
* Code from https://developers.google.com/v8/get_started
*/
#include <v8.h>
using namespace v8;
int main(int argc, char* argv[]) {
// Get the default Isolate created at startup.
Isolate* isolate = Isolate::GetCurrent();
// Create a stack-allocated handle scope.
HandleScope handle_scope(isolate);
// Create a new context.
Handle<Context> context = Context::New(isolate);
// Enter the context for compiling and running the hello world script.
Context::Scope context_scope(context);
// Create a string containing the JavaScript source code.
Handle<String> source = String::NewFromUtf8(isolate, "'Hello' + ', World!'");
// Compile the source code.
Handle<Script> script = Script::Compile(source);
// Run the script to get the result.
Handle<Value> result = script->Run();
// Convert the result to an UTF8 string and print it.
String::Utf8Value utf8(result);
printf("%s\n", *utf8);
return 0;
}
没有合适的资源?快使用搜索试试~ 我知道了~
Windows 下预编译动态链接的 google v8 lib dll 库
共27个文件
dll:10个
h:8个
pdb:6个
2星 需积分: 44 11 下载量 98 浏览量
2017-10-17
13:40:01
上传
评论
收藏 19.05MB ZIP 举报
温馨提示
Windows 下预编译的 Google v8 动态链接库(VS2013) x86 和 x64 Svn Date 编译日期 2014-04-08 01:29
资源推荐
资源详情
资源评论
收起资源包目录
googleV8.zip (27个子文件)
googleV8
x64
icuuc.pdb 3.52MB
msvcp120.dll 645KB
icui18n.dll 1.48MB
icui18n.pdb 5.39MB
v8.lib 296KB
msvcr120.dll 941KB
v8.dll 4.84MB
v8.pdb 14.4MB
icuuc.dll 1.23MB
x86
icuuc.pdb 3.5MB
msvcp120.dll 445KB
icui18n.dll 1.22MB
icui18n.pdb 5.25MB
v8.lib 290KB
msvcr120.dll 948KB
v8.dll 3.9MB
v8.pdb 15.81MB
icuuc.dll 945KB
helloWorld.cpp 1KB
include
v8-debug.h 12KB
v8-platform.h 3KB
v8.h 204KB
v8-profiler.h 20KB
v8-testing.h 2KB
v8stdint.h 2KB
v8-util.h 16KB
v8config.h 17KB
共 27 条
- 1
资源评论
- qq_349842282018-04-19编译HelloWorld时,x86版可通过,但运行时出错,x64版不能通过
- qq_262967492018-04-09persistent不能new了
用户昵称
- 粉丝: 2225
- 资源: 31
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功