-
大小: 19.29MB文件類型: .zip金幣: 1下載: 0 次發布日期: 2023-07-16
- 語言: 其他
- 標簽: v8??javascript??
資源簡介
已經編譯好的dll,頭文件,pdb,并附有demo,vs2015測試通過
代碼片段和文件信息
/**
?*??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?
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::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?source?=?String::NewFromUtf8(isolate?“‘Hello‘?+?‘?World!‘“);
??
??//?Compile?the?source?code.
??Handleript>?script?=?script::Compile(source);
??
??//?Run?the?script?to?get?the?result.
??Handle?result?=?script->Run();
??
??//?Convert?the?result?to?an?UTF8?string?and?print?it.
??String::Utf8Value?utf8(result);
??printf(“%s\n“?*utf8);
??return?0;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-07-10?13:56??V8\
?????文件????????1241??2018-07-10?13:56??V8\helloWorld.cpp
?????目錄???????????0??2018-07-10?13:54??V8\include\
?????文件???????12715??2018-07-10?13:54??V8\include\v8-debug.h
?????文件????????3164??2018-07-10?13:54??V8\include\v8-platform.h
?????文件???????20472??2018-07-10?13:54??V8\include\v8-profiler.h
?????文件????????2463??2018-07-10?13:54??V8\include\v8-testing.h
?????文件???????16029??2018-07-10?13:54??V8\include\v8-util.h
?????文件??????208587??2018-07-10?13:54??V8\include\v8.h
?????文件???????17369??2018-07-10?13:54??V8\include\v8config.h
?????文件????????2159??2018-07-10?13:54??V8\include\v8stdint.h
?????目錄???????????0??2018-07-10?13:55??V8\x64\
?????文件?????1548800??2018-07-10?13:55??V8\x64\icui18n.dll
?????文件?????5647360??2018-07-10?13:55??V8\x64\icui18n.pdb
?????文件?????1293824??2018-07-10?13:55??V8\x64\icuuc.dll
?????文件?????3689472??2018-07-10?13:55??V8\x64\icuuc.pdb
?????文件??????660128??2018-07-10?13:55??V8\x64\msvcp120.dll
?????文件??????963232??2018-07-10?13:55??V8\x64\msvcr120.dll
?????文件?????5079040??2018-07-10?13:55??V8\x64\v8.dll
?????文件??????302840??2018-07-10?13:55??V8\x64\v8.lib
?????文件????15100928??2018-07-10?13:55??V8\x64\v8.pdb
?????目錄???????????0??2018-07-10?13:56??V8\x86\
?????文件?????1283584??2018-07-10?13:56??V8\x86\icui18n.dll
?????文件?????5499904??2018-07-10?13:56??V8\x86\icui18n.pdb
?????文件??????967168??2018-07-10?13:56??V8\x86\icuuc.dll
?????文件?????3673088??2018-07-10?13:56??V8\x86\icuuc.pdb
?????文件??????455328??2018-07-10?13:56??V8\x86\msvcp120.dll
?????文件??????970912??2018-07-10?13:56??V8\x86\msvcr120.dll
?????文件?????4094464??2018-07-10?13:56??V8\x86\v8.dll
?????文件??????297406??2018-07-10?13:56??V8\x86\v8.lib
?????文件????16575488??2018-07-10?13:56??V8\x86\v8.pdb
............此處省略0個文件信息
評論
共有 條評論