Lines Matching full:local

40 using ::v8::Local;
47 static void handle_property(Local<String> name, in handle_property()
53 static void handle_property_2(Local<String> name, in handle_property_2()
71 Local<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(isolate); in THREADED_TEST()
73 Local<v8::FunctionTemplate> getter_templ = in THREADED_TEST()
81 Local<Function> fun = fun_templ->GetFunction(env.local()).ToLocalChecked(); in THREADED_TEST()
82 CHECK(env->Global()->Set(env.local(), v8_str("Fun"), fun).FromJust()); in THREADED_TEST()
83 Local<Script> getter; in THREADED_TEST()
84 Local<Script> setter; in THREADED_TEST()
87 CHECK_EQ(900, getter->Run(env.local()) in THREADED_TEST()
89 ->Int32Value(env.local()) in THREADED_TEST()
92 CHECK_EQ(901, setter->Run(env.local()) in THREADED_TEST()
94 ->Int32Value(env.local()) in THREADED_TEST()
97 CHECK_EQ(907, getter->Run(env.local()) in THREADED_TEST()
99 ->Int32Value(env.local()) in THREADED_TEST()
102 CHECK_EQ(908, setter->Run(env.local()) in THREADED_TEST()
104 ->Int32Value(env.local()) in THREADED_TEST()
108 CHECK_EQ(902, getter->Run(env.local()) in THREADED_TEST()
110 ->Int32Value(env.local()) in THREADED_TEST()
113 CHECK_EQ(903, setter->Run(env.local()) in THREADED_TEST()
115 ->Int32Value(env.local()) in THREADED_TEST()
120 static void GetIntValue(Local<String> property, in GetIntValue()
124 static_cast<int*>(v8::Local<v8::External>::Cast(info.Data())->Value()); in GetIntValue()
129 static void SetIntValue(Local<String> property, in SetIntValue()
130 Local<Value> value, in SetIntValue()
133 static_cast<int*>(v8::Local<v8::External>::Cast(info.Data())->Value()); in SetIntValue()
145 v8::Local<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(isolate); in THREADED_TEST()
156 v8_compile("foo = (++bar) + baz")->Run(env.local()).ToLocalChecked(); in THREADED_TEST()
163 static v8::Local<v8::Object> x_receiver;
164 static v8::Local<v8::Object> x_holder;
177 static void XGetter(Local<String> name, in XGetter()
194 static void XSetter(Local<Value> value, const Info& info, int offset) { in XSetter()
207 static void XSetter(Local<String> name, in XSetter()
208 Local<Value> value, in XSetter()
224 v8::Local<v8::ObjectTemplate> obj = ObjectTemplate::New(isolate); in THREADED_TEST()
229 x_holder = obj->NewInstance(context.local()).ToLocalChecked(); in THREADED_TEST()
231 ->Set(context.local(), v8_str("holder"), x_holder) in THREADED_TEST()
235 ->Set(context.local(), v8_str("obj"), x_receiver) in THREADED_TEST()
237 v8::Local<v8::Array> array = v8::Local<v8::Array>::Cast( in THREADED_TEST()
256 v8::Local<Value> entry = in THREADED_TEST()
257 array->Get(context.local(), v8::Integer::New(isolate, i)) in THREADED_TEST()
260 ->Equals(context.local(), entry) in THREADED_TEST()
268 Local<String> name, in HandleAllocatingGetter()
286 v8::Local<v8::ObjectTemplate> obj = ObjectTemplate::New(isolate); in THREADED_TEST()
289 v8::Local<v8::Object> inst = in THREADED_TEST()
290 obj->NewInstance(context.local()).ToLocalChecked(); in THREADED_TEST()
292 context->Global()->Set(context.local(), v8_str("obj"), inst).FromJust()); in THREADED_TEST()
309 Local<String> name, in CheckAccessorArgsCorrect()
336 v8::Local<v8::ObjectTemplate> obj = ObjectTemplate::New(isolate); in THREADED_TEST()
339 v8::Local<v8::Object> inst = in THREADED_TEST()
340 obj->NewInstance(context.local()).ToLocalChecked(); in THREADED_TEST()
342 context->Global()->Set(context.local(), v8_str("obj"), inst).FromJust()); in THREADED_TEST()
343 Local<Script> scr = in THREADED_TEST()
344 v8::Script::Compile(context.local(), v8_str("obj.xxx")).ToLocalChecked(); in THREADED_TEST()
346 Local<Value> result = scr->Run(context.local()).ToLocalChecked(); in THREADED_TEST()
348 CHECK_EQ(17, result->Int32Value(context.local()).FromJust()); in THREADED_TEST()
352 static void EmptyGetter(Local<String> name, in EmptyGetter()
357 info.GetReturnValue().Set(v8::Local<v8::Value>()); in EmptyGetter()
365 v8::Local<v8::ObjectTemplate> obj = ObjectTemplate::New(isolate); in THREADED_TEST()
367 v8::Local<v8::Object> inst = in THREADED_TEST()
368 obj->NewInstance(context.local()).ToLocalChecked(); in THREADED_TEST()
370 context->Global()->Set(context.local(), v8_str("obj"), inst).FromJust()); in THREADED_TEST()
371 Local<Script> scr = in THREADED_TEST()
372 v8::Script::Compile(context.local(), v8_str("obj.xxx")).ToLocalChecked(); in THREADED_TEST()
374 Local<Value> result = scr->Run(context.local()).ToLocalChecked(); in THREADED_TEST()
386 v8::Local<v8::ObjectTemplate> obj = ObjectTemplate::New(isolate); in THREADED_TEST()
389 v8::Local<v8::Object> inst = in THREADED_TEST()
390 obj->NewInstance(context.local()).ToLocalChecked(); in THREADED_TEST()
392 ->Set(context.local(), v8_str("obj"), inst) in THREADED_TEST()
394 Local<Script> scr = v8::Script::Compile(context.local(), v8_str("obj.xxx")) in THREADED_TEST()
397 Local<Value> result = scr->Run(context.local()).ToLocalChecked(); in THREADED_TEST()
402 v8::Local<v8::ObjectTemplate> obj = ObjectTemplate::New(isolate); in THREADED_TEST()
406 v8::Local<v8::Object> inst = in THREADED_TEST()
407 obj->NewInstance(context.local()).ToLocalChecked(); in THREADED_TEST()
409 ->Set(context.local(), v8_str("obj"), inst) in THREADED_TEST()
411 Local<Script> scr = v8::Script::Compile(context.local(), v8_str("obj.xxx")) in THREADED_TEST()
414 Local<Value> result = scr->Run(context.local()).ToLocalChecked(); in THREADED_TEST()
416 CHECK_EQ(17, result->Int32Value(context.local()).FromJust()); in THREADED_TEST()
422 Local<String> name, in ThrowingGetAccessor()
429 static void ThrowingSetAccessor(Local<String> name, in ThrowingSetAccessor()
430 Local<Value> value, in ThrowingSetAccessor()
440 v8::Local<v8::ObjectTemplate> obj = ObjectTemplate::New(isolate); in THREADED_TEST()
444 Local<Value>()); in THREADED_TEST()
447 ->Set(env.local(), v8_str("obj"), in THREADED_TEST()
448 obj->NewInstance(env.local()).ToLocalChecked()) in THREADED_TEST()
453 v8::Local<Value> result; in THREADED_TEST()
454 result = Script::Compile(env.local(), in THREADED_TEST()
460 ->Run(env.local()) in THREADED_TEST()
462 CHECK(v8_str("ggggg")->Equals(env.local(), result).FromJust()); in THREADED_TEST()
465 Script::Compile(env.local(), in THREADED_TEST()
471 ->Run(env.local()) in THREADED_TEST()
473 CHECK(v8_str("01234")->Equals(env.local(), result).FromJust()); in THREADED_TEST()
477 static void AllocGetter(Local<String> name, in AllocGetter()
488 v8::Local<v8::ObjectTemplate> obj = ObjectTemplate::New(isolate); in THREADED_TEST()
491 ->Set(env.local(), v8_str("obj"), in THREADED_TEST()
492 obj->NewInstance(env.local()).ToLocalChecked()) in THREADED_TEST()
494 Script::Compile(env.local(), v8_str("var last = [];" in THREADED_TEST()
501 ->Run(env.local()) in THREADED_TEST()
506 static void StackCheck(Local<String> name, in StackCheck()
525 v8::Local<v8::ObjectTemplate> obj = ObjectTemplate::New(isolate); in THREADED_TEST()
530 ->Set(env.local(), v8_str("obj"), in THREADED_TEST()
531 obj->NewInstance(env.local()).ToLocalChecked()) in THREADED_TEST()
533 Script::Compile(env.local(), v8_str("function foo() {" in THREADED_TEST()
540 ->Run(env.local()) in THREADED_TEST()
545 static void AllocateHandles(Local<String> name, in AllocateHandles()
548 v8::Local<v8::Value>::New(info.GetIsolate(), name); in AllocateHandles()
560 v8::Local<v8::ObjectTemplate> obj = ObjectTemplate::New(isolate); in THREADED_TEST()
563 ->Set(env.local(), v8_str("obj"), in THREADED_TEST()
564 obj->NewInstance(env.local()).ToLocalChecked()) in THREADED_TEST()
566 v8::Local<v8::Value> result = in THREADED_TEST()
567 Script::Compile(env.local(), v8_str("var result;" in THREADED_TEST()
572 ->Run(env.local()) in THREADED_TEST()
574 CHECK_EQ(100, result->Int32Value(env.local()).FromJust()); in THREADED_TEST()
579 v8::Local<v8::Array> array = v8::Array::New(info.GetIsolate(), 1); in JSONStringifyEnumerator()
586 void JSONStringifyGetter(Local<Name> name, in JSONStringifyGetter()
597 v8::Local<v8::ObjectTemplate> obj = ObjectTemplate::New(isolate); in THREADED_TEST()
601 ->Set(env.local(), v8_str("obj"), in THREADED_TEST()
602 obj->NewInstance(env.local()).ToLocalChecked()) in THREADED_TEST()
604 v8::Local<v8::String> expected = v8_str("{\"regress\":\"crbug-161028\"}"); in THREADED_TEST()
606 ->Equals(env.local(), expected) in THREADED_TEST()
611 static v8::Local<v8::Context> expected_current_context;
624 v8::Local<v8::Function> fun = in THREADED_TEST()
625 v8::Function::New(env.local(), check_contexts).ToLocalChecked(); in THREADED_TEST()
628 ->Set(switch_context.local(), v8_str("fun"), fun) in THREADED_TEST()
631 expected_current_context = env.local(); in THREADED_TEST()
657 static void EmptyGetter(Local<Name> name, in EmptyGetter()
663 static void OneProperty(Local<String> name, in OneProperty()
674 v8::Local<v8::ObjectTemplate> obj = ObjectTemplate::New(isolate); in THREADED_TEST()
678 ->Set(env.local(), v8_str("obj"), in THREADED_TEST()
679 obj->NewInstance(env.local()).ToLocalChecked()) in THREADED_TEST()
690 static bool SecurityTestCallback(Local<v8::Context> accessing_context, in SecurityTestCallback()
691 Local<v8::Object> accessed_object) { in SecurityTestCallback()
709 ->Set(env.local(), v8_str("Fun"), in TEST()
710 fun_templ->GetFunction(env.local()).ToLocalChecked()) in TEST()
713 ->Set(env.local(), v8_str("obj"), in TEST()
714 obj_templ->NewInstance(env.local()).ToLocalChecked()) in TEST()
717 ->Set(env.local(), v8_str("obj2"), in TEST()
718 obj_templ->NewInstance(env.local()).ToLocalChecked()) in TEST()