GithubHelp home page GithubHelp logo

v8_translate's People

Stargazers

 avatar

Watchers

 avatar

v8_translate's Issues

前序

参考资料:

V8 是谷歌开源的一款高性能的、c++编写的JavaScript 、WebAssembly 引擎,它被用在Chrome、 Node.js等等应用中。

这份参考资料主要是面向那些对V8的架构设计与性能感兴趣的、渴望在他们的应用中使用V8的c++程序员。本篇文档会先向你介绍V8,其他文档资料会一步一步告诉你怎么在你的代码中使用V8以及其中的一些细节。当然,一系列v8执行js的性能测试也会提供给你。

什么是v8?

在V8上实现的 ECMAScript和WebAssembly的程序,可以在Windows 7或更高版本,macOS 10.12+和使用x64,IA-32,ARM或MIPS处理器的Linux系统上运行。 V8可以独立运行,也可以嵌入到任何C ++应用程序中。

V8编译并执行js代码,管理内存分配、垃圾回收。v8的垃圾回收机制可是v8高性能的关键。

构建v8源码

这篇文章会教你怎么在本地玩弄你的v8源码。

第一步就是获取v8代码

以下所有操作步骤的前置条件,是你要会翻墙,反正把你的vpn开起来,然后配置好git的http.proxy、https.proxy,以及环境变量http_proxy、https_proxy。当然就算你配置好了,这个速度也还是很感人了,我花了40分钟才下载下来。。。

git config --global http.proxy http://localhost:1085
git config --global https.proxy http://localhost:1085
export http_proxy=http://localhost:1085
export https_proxy=http://localhost:1085
  1. 如果你是 Linux 或者 macOS用户,你先要安装git,再安装 depot_tools。
  2. 然后在终端运行如下命令来更新你的depot_tools。
gclient
  1. 第三步就先忽略吧,是教你怎么配置push v8代码权限的。
  2. 获取v8代码。
mkdir ~/v8
cd ~/v8
fetch v8
cd v8

image

  1. 完成上面4步后,你将进入一个游离分支的状态,官方推荐你基于这个commit新建一个分支,比如我这样:
git new-branch study_v8

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.