Click here to Skip to main content
15,885,278 members
Articles / Containers / Virtual Machine

Using V8 - Google's Chrome JavaScript Virtual Machine

Rate me:
Please Sign up or sign in to vote.
4.90/5 (43 votes)
5 Sep 2008Public Domain6 min read 265.1K   7.1K   125  
Tutorial and sample explaining how to use the V8 virtual machine inside your application.
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
	ProjectType="Visual C++"
	Version="9,00"
	Name="V8xLua_benchmark"
	ProjectGUID="{ED880CF1-62D1-4157-8525-60772C2E3A6E}"
	RootNamespace="V8xLua_benchmark"
	Keyword="Win32Proj"
	TargetFrameworkVersion="196613"
	>
	<Platforms>
		<Platform
			Name="Win32"
		/>
	</Platforms>
	<ToolFiles>
	</ToolFiles>
	<Configurations>
		<Configuration
			Name="Debug|Win32"
			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
			IntermediateDirectory="$(ConfigurationName)"
			ConfigurationType="1"
			CharacterSet="1"
			>
			<Tool
				Name="VCPreBuildEventTool"
			/>
			<Tool
				Name="VCCustomBuildTool"
			/>
			<Tool
				Name="VCXMLDataGeneratorTool"
			/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"
			/>
			<Tool
				Name="VCMIDLTool"
			/>
			<Tool
				Name="VCCLCompilerTool"
				Optimization="0"
				AdditionalIncludeDirectories="C:\boost_1_35_0;&quot;$(InputDir)include&quot;"
				PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
				MinimalRebuild="true"
				BasicRuntimeChecks="0"
				RuntimeLibrary="1"
				EnableFunctionLevelLinking="true"
				UsePrecompiledHeader="0"
				WarningLevel="3"
				DebugInformationFormat="4"
			/>
			<Tool
				Name="VCManagedResourceCompilerTool"
			/>
			<Tool
				Name="VCResourceCompilerTool"
			/>
			<Tool
				Name="VCPreLinkEventTool"
			/>
			<Tool
				Name="VCLinkerTool"
				AdditionalDependencies="v8.lib"
				LinkIncremental="2"
				AdditionalLibraryDirectories="C:\boost_1_35_0\lib;&quot;$(InputDir)lib&quot;"
				GenerateDebugInformation="true"
				SubSystem="1"
				TargetMachine="1"
			/>
			<Tool
				Name="VCALinkTool"
			/>
			<Tool
				Name="VCManifestTool"
			/>
			<Tool
				Name="VCXDCMakeTool"
			/>
			<Tool
				Name="VCBscMakeTool"
			/>
			<Tool
				Name="VCFxCopTool"
			/>
			<Tool
				Name="VCAppVerifierTool"
			/>
			<Tool
				Name="VCPostBuildEventTool"
			/>
		</Configuration>
		<Configuration
			Name="Release|Win32"
			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
			IntermediateDirectory="$(ConfigurationName)"
			ConfigurationType="1"
			CharacterSet="1"
			WholeProgramOptimization="1"
			>
			<Tool
				Name="VCPreBuildEventTool"
			/>
			<Tool
				Name="VCCustomBuildTool"
			/>
			<Tool
				Name="VCXMLDataGeneratorTool"
			/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"
			/>
			<Tool
				Name="VCMIDLTool"
			/>
			<Tool
				Name="VCCLCompilerTool"
				Optimization="2"
				EnableIntrinsicFunctions="true"
				AdditionalIncludeDirectories="C:\boost_1_35_0;&quot;$(InputDir)include&quot;"
				PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
				RuntimeLibrary="0"
				EnableFunctionLevelLinking="true"
				UsePrecompiledHeader="0"
				WarningLevel="3"
				DebugInformationFormat="3"
			/>
			<Tool
				Name="VCManagedResourceCompilerTool"
			/>
			<Tool
				Name="VCResourceCompilerTool"
			/>
			<Tool
				Name="VCPreLinkEventTool"
			/>
			<Tool
				Name="VCLinkerTool"
				AdditionalDependencies="v8.lib"
				LinkIncremental="1"
				AdditionalLibraryDirectories="&quot;$(InputDir)lib&quot;;C:\boost_1_35_0\lib"
				GenerateDebugInformation="true"
				SubSystem="1"
				OptimizeReferences="2"
				EnableCOMDATFolding="2"
				TargetMachine="1"
			/>
			<Tool
				Name="VCALinkTool"
			/>
			<Tool
				Name="VCManifestTool"
			/>
			<Tool
				Name="VCXDCMakeTool"
			/>
			<Tool
				Name="VCBscMakeTool"
			/>
			<Tool
				Name="VCFxCopTool"
			/>
			<Tool
				Name="VCAppVerifierTool"
			/>
			<Tool
				Name="VCPostBuildEventTool"
			/>
		</Configuration>
	</Configurations>
	<References>
	</References>
	<Files>
		<Filter
			Name="Source Files"
			Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
			UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
			>
			<File
				RelativePath=".\lua_src\lapi.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\lauxlib.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\lbaselib.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\lcode.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\ldblib.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\ldebug.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\ldo.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\ldump.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\lfunc.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\lgc.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\linit.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\liolib.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\llex.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\lmathlib.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\lmem.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\loadlib.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\lobject.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\lopcodes.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\loslib.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\lparser.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\lstate.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\lstring.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\lstrlib.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\ltable.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\ltablib.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\ltm.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\lundump.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\lvm.c"
				>
			</File>
			<File
				RelativePath=".\lua_src\lzio.c"
				>
			</File>
			<File
				RelativePath=".\stdafx.cpp"
				>
			</File>
			<File
				RelativePath=".\V8xLua_benchmark.cpp"
				>
			</File>
		</Filter>
		<Filter
			Name="Header Files"
			Filter="h;hpp;hxx;hm;inl;inc;xsd"
			UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
			>
			<File
				RelativePath=".\stdafx.h"
				>
			</File>
			<File
				RelativePath=".\targetver.h"
				>
			</File>
		</Filter>
		<Filter
			Name="Resource Files"
			Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
			UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
			>
		</Filter>
		<File
			RelativePath=".\ReadMe.txt"
			>
		</File>
	</Files>
	<Globals>
	</Globals>
</VisualStudioProject>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under A Public Domain dedication


Written By
Software Developer (Senior)
Brazil Brazil
I did extremly different works: services to control harware, internet banking sites, Operational System migration (from Digital to Aix , from HpUX to Linux and from tru64 4.0 to 5.1b), Grafical user interfaces for lots of programs and different OS's...
I also know and had use Delphi, c, c++, java, python, assembly and perl.

Comments and Discussions