I'm browsing chromium source to find where the context for a new window/frame is created (or linked to its frame object).
What I've found:
https://cs.chromium.org/chromium/src/v8/include/v8.h?type=cs&sq=package:chromium&l=7127
/**
* Creates a new context and returns a handle to the newly allocated
* context.
*
* param isolate The isolate in which to create the context.
*
* param extensions An optional extension configuration containing
* the extensions to be installed in the newly created context.
*
* param global_template An optional object template from which the
* global object for the newly created context will be created.
*
* param global_object An optional global object to be reused for
* the newly created context. This global object must have been
* created by a previous call to Context::New with the same global
* template. The state of the global object will be completely reset
* and only object identify will remain.
*/
static Local<Context> New(
Isolate* isolate, ExtensionConfiguration* extensions = NULL,
Local<ObjectTemplate> global_template = Local<ObjectTemplate>(),
Local<Value> global_object = Local<Value>(),
size_t context_snapshot_index = 0);
This method creates a V8 context
, but I want to know where a frame
object is linked to its context
.
Aucun commentaire:
Enregistrer un commentaire