• Home
  • Raw
  • Download

Lines Matching full:isolate

67 using v8::Isolate;
74 Isolate* isolate = args.GetIsolate();
76 isolate, "world").ToLocalChecked());
192 explicit AddonData(Isolate* isolate):
195 node::AddEnvironmentCleanupHook(isolate, DeleteInstance, this);
216 Isolate* isolate = context->GetIsolate();
220 AddonData* data = new AddonData(isolate);
224 Local<External> external = External::New(isolate, data);
230 String::NewFromUtf8(isolate, "method").ToLocalChecked(),
231 FunctionTemplate::New(isolate, Method, external)
255 void AddEnvironmentCleanupHook(v8::Isolate* isolate,
280 using v8::Isolate;
290 Isolate* isolate = static_cast<Isolate*>(arg);
291 HandleScope scope(isolate);
292 Local<Object> obj = Object::New(isolate);
310 Isolate* isolate = context->GetIsolate();
312 AddEnvironmentCleanupHook(isolate, sanity_check, nullptr);
313 AddEnvironmentCleanupHook(isolate, cleanup_cb2, cookie);
314 AddEnvironmentCleanupHook(isolate, cleanup_cb1, isolate);
550 using v8::Isolate;
561 Isolate* isolate = args.GetIsolate();
566 isolate->ThrowException(Exception::TypeError(
567 String::NewFromUtf8(isolate,
574 isolate->ThrowException(Exception::TypeError(
575 String::NewFromUtf8(isolate,
583 Local<Number> num = Number::New(isolate, value);
623 using v8::Isolate;
631 Isolate* isolate = args.GetIsolate();
632 Local<Context> context = isolate->GetCurrentContext();
636 String::NewFromUtf8(isolate,
638 cb->Call(context, Null(isolate), argc, argv).ToLocalChecked();
683 using v8::Isolate;
690 Isolate* isolate = args.GetIsolate();
691 Local<Context> context = isolate->GetCurrentContext();
693 Local<Object> obj = Object::New(isolate);
695 String::NewFromUtf8(isolate,
739 using v8::Isolate;
746 Isolate* isolate = args.GetIsolate();
748 isolate, "hello world").ToLocalChecked());
752 Isolate* isolate = args.GetIsolate();
754 Local<Context> context = isolate->GetCurrentContext();
755 Local<FunctionTemplate> tpl = FunctionTemplate::New(isolate, MyFunction);
760 isolate, "theFunction").ToLocalChecked());
854 using v8::Isolate;
869 Isolate* isolate = exports->GetIsolate();
870 Local<Context> context = isolate->GetCurrentContext();
872 Local<ObjectTemplate> addon_data_tpl = ObjectTemplate::New(isolate);
878 Local<FunctionTemplate> tpl = FunctionTemplate::New(isolate, New, addon_data);
879 tpl->SetClassName(String::NewFromUtf8(isolate, "MyObject").ToLocalChecked());
888 isolate, "MyObject").ToLocalChecked(),
893 Isolate* isolate = args.GetIsolate();
894 Local<Context> context = isolate->GetCurrentContext();
916 Isolate* isolate = args.GetIsolate();
921 args.GetReturnValue().Set(Number::New(isolate, obj->value_));
987 using v8::Isolate;
1024 static void Init(v8::Isolate* isolate);
1057 using v8::Isolate;
1074 void MyObject::Init(Isolate* isolate) {
1076 Local<FunctionTemplate> tpl = FunctionTemplate::New(isolate, New);
1077 tpl->SetClassName(String::NewFromUtf8(isolate, "MyObject").ToLocalChecked());
1083 Local<Context> context = isolate->GetCurrentContext();
1084 constructor.Reset(isolate, tpl->GetFunction(context).ToLocalChecked());
1086 AddEnvironmentCleanupHook(isolate, [](void*) {
1092 Isolate* isolate = args.GetIsolate();
1093 Local<Context> context = isolate->GetCurrentContext();
1106 Local<Function> cons = Local<Function>::New(isolate, constructor);
1114 Isolate* isolate = args.GetIsolate();
1118 Local<Function> cons = Local<Function>::New(isolate, constructor);
1119 Local<Context> context = isolate->GetCurrentContext();
1127 Isolate* isolate = args.GetIsolate();
1132 args.GetReturnValue().Set(Number::New(isolate, obj->value_));
1195 using v8::Isolate;
1207 Isolate* isolate = args.GetIsolate();
1208 Local<Context> context = isolate->GetCurrentContext();
1216 args.GetReturnValue().Set(Number::New(isolate, sum));
1246 static void Init(v8::Isolate* isolate);
1279 using v8::Isolate;
1295 void MyObject::Init(Isolate* isolate) {
1297 Local<FunctionTemplate> tpl = FunctionTemplate::New(isolate, New);
1298 tpl->SetClassName(String::NewFromUtf8(isolate, "MyObject").ToLocalChecked());
1301 Local<Context> context = isolate->GetCurrentContext();
1302 constructor.Reset(isolate, tpl->GetFunction(context).ToLocalChecked());
1304 AddEnvironmentCleanupHook(isolate, [](void*) {
1310 Isolate* isolate = args.GetIsolate();
1311 Local<Context> context = isolate->GetCurrentContext();
1324 Local<Function> cons = Local<Function>::New(isolate, constructor);
1332 Isolate* isolate = args.GetIsolate();
1336 Local<Function> cons = Local<Function>::New(isolate, constructor);
1337 Local<Context> context = isolate->GetCurrentContext();