commit | cf127e81449f0bc4d09368a376623fe3743094a7 | [log] [tgz] |
---|---|---|
author | adamk <adamk@chromium.org> | Tue Sep 20 23:38:58 2016 |
committer | Commit bot <commit-bot@chromium.org> | Tue Sep 20 23:39:41 2016 |
tree | 166cd1d85311745a8fb97bbf806f6b5f6daa52cd | |
parent | a037f350eeb521041f4e68d4714573d67a12d57e [diff] |
[modules] Expand API to allow linking and use it in d8 This patch gives the ability for the embedder to ask for the module requests of a module, and to pass a ResolveCallback into Module::Instantiate(). In d8, I've implemented a simple module_map that's used along with this API to allow loading, compiling, instantiating, and evaluating a whole tree of modules. No path resolution is yet implemented, meaning that all import paths are relative to whatever directory d8 runs in. And no imports are linked to the exports of the requested module. BUG=v8:1569 Review-Url: https://codereview.chromium.org/2351113004 Cr-Commit-Position: refs/heads/master@{#39569}
V8 is Google's open source JavaScript engine.
V8 implements ECMAScript as specified in ECMA-262.
V8 is written in C++ and is used in Google Chrome, the open source browser from Google.
V8 can run standalone, or can be embedded into any C++ application.
V8 Project page: https://github.com/v8/v8/wiki
Checkout depot tools, and run
fetch v8
This will checkout V8 into the directory v8
and fetch all of its dependencies. To stay up to date, run
git pull origin gclient sync
For fetching all branches, add the following into your remote configuration in .git/config
:
fetch = +refs/branch-heads/*:refs/remotes/branch-heads/* fetch = +refs/tags/*:refs/tags/*
Please follow the instructions mentioned on the V8 wiki.