Lines Matching refs:Handle
27 v8::Handle<v8::Object> JsContext::wrap() {
28 // Handle scope for temporary handles.
43 v8::Handle<v8::ObjectTemplate> templ =
51 v8::Handle<v8::External> contextPtr = v8::External::New(fGlobal->getIsolate(), this);
56 // Return the result through the current handle scope. Since each
57 // of these handles will go away when the handle scope is deleted
59 // outer handle scope.
67 // Create a handle scope to keep the temporary object references.
77 v8::Handle<v8::Object> contextObj = this->wrap();
85 v8::Handle<v8::Value> argv[argc] = { contextObj };
88 v8::Handle<v8::Value> result = onDraw->Call(context->Global(), argc, argv);
90 // Handle any exceptions or output.
110 // Create a stack-allocated handle scope.
121 v8::Handle<v8::String> fn_name = v8::String::NewFromUtf8(
123 v8::Handle<v8::Value> fn_val = context->Global()->Get(fn_name);
131 v8::Handle<v8::Function> fn_fun = v8::Handle<v8::Function>::Cast(fn_val);
133 // Store the function in a Persistent handle, since we also want that to