Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nodejs/node-v0.x-archive
base: 81655a224a36
Choose a base ref
...
head repository: nodejs/node-v0.x-archive
compare: 756b6222956b
Choose a head ref
  • 1 commit
  • 45 files changed
  • 1 contributor

Commits on Sep 6, 2013

  1. src: add multi-context support

    This commit makes it possible to use multiple V8 execution contexts
    within a single event loop.  Put another way, handle and request wrap
    objects now "remember" the context they belong to and switch back to
    that context when the time comes to call into JS land.
    
    This could have been done in a quick and hacky way by calling
    v8::Object::GetCreationContext() on the wrap object right before
    making a callback but that leaves a fairly wide margin for bugs.
    
    Instead, we make the context explicit through a new Environment class
    that encapsulates everything (or almost everything) that belongs to
    the context.  Variables that used to be a static or a global are now
    members of the aforementioned class.  An additional benefit is that
    this approach should make it relatively straightforward to add full
    isolate support in due course.
    
    There is no JavaScript API yet but that will be added in the near
    future.
    
    This work was graciously sponsored by GitHub, Inc.
    bnoordhuis committed Sep 6, 2013
    Copy the full SHA
    756b622 View commit details
    Browse the repository at this point in the history