Lines Matching full:local
28 using ::v8::Local;
52 void Return239Callback(Local<String> name, in Return239Callback()
61 void EmptyInterceptorGetter(Local<Name> name, in EmptyInterceptorGetter()
65 void EmptyInterceptorSetter(Local<Name> name, Local<Value> value, in EmptyInterceptorSetter()
69 void SimpleAccessorGetter(Local<String> name, in SimpleAccessorGetter()
71 Local<Object> self = Local<Object>::Cast(info.This()); in SimpleAccessorGetter()
77 void SimpleAccessorSetter(Local<String> name, Local<Value> value, in SimpleAccessorSetter()
79 Local<Object> self = Local<Object>::Cast(info.This()); in SimpleAccessorSetter()
86 void SymbolAccessorGetter(Local<Name> name, in SymbolAccessorGetter()
89 Local<Symbol> sym = Local<Symbol>::Cast(name); in SymbolAccessorGetter()
91 SimpleAccessorGetter(Local<String>::Cast(sym->Name()), info); in SymbolAccessorGetter()
94 void SymbolAccessorSetter(Local<Name> name, Local<Value> value, in SymbolAccessorSetter()
97 Local<Symbol> sym = Local<Symbol>::Cast(name); in SymbolAccessorSetter()
99 SimpleAccessorSetter(Local<String>::Cast(sym->Name()), value, info); in SymbolAccessorSetter()
103 Local<String> name, in StringInterceptorGetter()
113 Local<Object> self = Local<Object>::Cast(info.This()); in StringInterceptorGetter()
122 void StringInterceptorSetter(Local<String> name, Local<Value> value, in StringInterceptorSetter()
135 Local<Context> context = info.GetIsolate()->GetCurrentContext(); in StringInterceptorSetter()
137 Local<Object> self = Local<Object>::Cast(info.This()); in StringInterceptorSetter()
138 Local<v8::Private> symbol = v8::Private::ForApi(info.GetIsolate(), name); in StringInterceptorSetter()
144 void InterceptorGetter(Local<Name> generic_name, in InterceptorGetter()
147 StringInterceptorGetter(Local<String>::Cast(generic_name), info); in InterceptorGetter()
150 void InterceptorSetter(Local<Name> generic_name, Local<Value> value, in InterceptorSetter()
153 StringInterceptorSetter(Local<String>::Cast(generic_name), value, info); in InterceptorSetter()
156 void GenericInterceptorGetter(Local<Name> generic_name, in GenericInterceptorGetter()
158 Local<String> str; in GenericInterceptorGetter()
160 Local<Value> name = Local<Symbol>::Cast(generic_name)->Name(); in GenericInterceptorGetter()
162 str = String::Concat(v8_str("_sym_"), Local<String>::Cast(name)); in GenericInterceptorGetter()
164 Local<String> name = Local<String>::Cast(generic_name); in GenericInterceptorGetter()
171 Local<Object> self = Local<Object>::Cast(info.This()); in GenericInterceptorGetter()
176 void GenericInterceptorSetter(Local<Name> generic_name, Local<Value> value, in GenericInterceptorSetter()
178 Local<String> str; in GenericInterceptorSetter()
180 Local<Value> name = Local<Symbol>::Cast(generic_name)->Name(); in GenericInterceptorSetter()
182 str = String::Concat(v8_str("_sym_"), Local<String>::Cast(name)); in GenericInterceptorSetter()
184 Local<String> name = Local<String>::Cast(generic_name); in GenericInterceptorSetter()
191 Local<Object> self = Local<Object>::Cast(info.This()); in GenericInterceptorSetter()
196 void AddAccessor(Local<FunctionTemplate> templ, Local<String> name, in AddAccessor()
202 void AddInterceptor(Local<FunctionTemplate> templ, in AddInterceptor()
209 void AddAccessor(Local<FunctionTemplate> templ, Local<Name> name, in AddAccessor()
215 void AddInterceptor(Local<FunctionTemplate> templ, in AddInterceptor()
223 v8::Local<v8::Object> bottom;
235 Local<Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { in CheckThisNamedPropertyHandler()
244 uint32_t index, Local<Value> value, in CheckThisIndexedPropertySetter()
255 Local<Name> property, Local<Value> value, in CheckThisNamedPropertySetter()
275 Local<Name> property, const v8::PropertyCallbackInfo<v8::Integer>& info) { in CheckThisNamedPropertyQuery()
295 Local<Name> property, const v8::PropertyCallbackInfo<v8::Boolean>& info) { in CheckThisNamedPropertyDeleter()
327 void EchoNamedProperty(Local<Name> name, in EchoNamedProperty()
338 Local<Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { in InterceptorHasOwnPropertyGetter()
343 Local<Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { in InterceptorHasOwnPropertyGetterGC()
355 Local<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(isolate); in THREADED_TEST()
356 Local<v8::ObjectTemplate> instance_templ = fun_templ->InstanceTemplate(); in THREADED_TEST()
359 Local<Function> function = in THREADED_TEST()
360 fun_templ->GetFunction(context.local()).ToLocalChecked(); in THREADED_TEST()
362 ->Set(context.local(), v8_str("constructor"), function) in THREADED_TEST()
364 v8::Local<Value> value = CompileRun( in THREADED_TEST()
367 CHECK_EQ(false, value->BooleanValue(context.local()).FromJust()); in THREADED_TEST()
371 CHECK_EQ(true, value->BooleanValue(context.local()).FromJust()); in THREADED_TEST()
375 CHECK_EQ(false, value->BooleanValue(context.local()).FromJust()); in THREADED_TEST()
383 Local<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(isolate); in THREADED_TEST()
384 Local<v8::ObjectTemplate> instance_templ = fun_templ->InstanceTemplate(); in THREADED_TEST()
387 Local<Function> function = in THREADED_TEST()
388 fun_templ->GetFunction(context.local()).ToLocalChecked(); in THREADED_TEST()
390 ->Set(context.local(), v8_str("constructor"), function) in THREADED_TEST()
405 v8::Local<Value> value = CompileRun( in THREADED_TEST()
409 CHECK_EQ(false, value->BooleanValue(context.local()).FromJust()); in THREADED_TEST()
418 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in CheckInterceptorLoadIC()
423 ->Set(context.local(), v8_str("o"), in CheckInterceptorLoadIC()
424 templ->NewInstance(context.local()).ToLocalChecked()) in CheckInterceptorLoadIC()
426 v8::Local<Value> value = CompileRun(source); in CheckInterceptorLoadIC()
427 CHECK_EQ(expected, value->Int32Value(context.local()).FromJust()); in CheckInterceptorLoadIC()
432 Local<Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { in InterceptorLoadICGetter()
436 v8::Local<v8::Context> context = isolate->GetCurrentContext(); in InterceptorLoadICGetter()
459 Local<Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { in InterceptorLoadXICGetter()
465 ? v8::Local<v8::Value>(v8::Integer::New(info.GetIsolate(), 42)) in InterceptorLoadXICGetter()
466 : v8::Local<v8::Value>()); in InterceptorLoadXICGetter()
578 Local<Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { in InterceptorLoadNotHandled()
630 static void SetOnThis(Local<String> name, Local<Value> value, in SetOnThis()
632 Local<Object>::Cast(info.This()) in SetOnThis()
641 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
647 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
648 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
653 v8::Local<Value> value = CompileRun( in THREADED_TEST()
658 CHECK_EQ(239, value->Int32Value(context.local()).FromJust()); in THREADED_TEST()
668 CHECK_EQ(239, value->Int32Value(context.local()).FromJust()); in THREADED_TEST()
675 v8::Local<v8::ObjectTemplate> templ_o = ObjectTemplate::New(isolate); in THREADED_TEST()
678 v8::Local<v8::ObjectTemplate> templ_p = ObjectTemplate::New(isolate); in THREADED_TEST()
683 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
684 templ_o->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
687 ->Set(context.local(), v8_str("p"), in THREADED_TEST()
688 templ_p->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
693 v8::Local<Value> value = CompileRun( in THREADED_TEST()
699 CHECK_EQ(239 + 42, value->Int32Value(context.local()).FromJust()); in THREADED_TEST()
709 CHECK_EQ(239 + 42, value->Int32Value(context.local()).FromJust()); in THREADED_TEST()
716 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
723 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
724 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
727 v8::Local<Value> value = CompileRun( in THREADED_TEST()
740 CHECK_EQ(239 + 42, value->Int32Value(context.local()).FromJust()); in THREADED_TEST()
749 v8::Local<v8::ObjectTemplate> templ_o = ObjectTemplate::New(isolate); in THREADED_TEST()
752 v8::Local<v8::ObjectTemplate> templ_p = ObjectTemplate::New(isolate); in THREADED_TEST()
757 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
758 templ_o->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
761 ->Set(context.local(), v8_str("p"), in THREADED_TEST()
762 templ_p->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
765 v8::Local<Value> value = CompileRun( in THREADED_TEST()
776 CHECK_EQ(42 * 7, value->Int32Value(context.local()).FromJust()); in THREADED_TEST()
785 v8::Local<v8::ObjectTemplate> templ_o = ObjectTemplate::New(isolate); in THREADED_TEST()
788 v8::Local<v8::ObjectTemplate> templ_p = ObjectTemplate::New(isolate); in THREADED_TEST()
793 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
794 templ_o->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
797 ->Set(context.local(), v8_str("p"), in THREADED_TEST()
798 templ_p->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
801 v8::Local<Value> value = CompileRun( in THREADED_TEST()
815 CHECK_EQ(42 * 10, value->Int32Value(context.local()).FromJust()); in THREADED_TEST()
825 v8::Local<v8::ObjectTemplate> templ_o = ObjectTemplate::New(isolate); in THREADED_TEST()
828 v8::Local<v8::ObjectTemplate> templ_p = ObjectTemplate::New(isolate); in THREADED_TEST()
833 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
834 templ_o->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
837 ->Set(context.local(), v8_str("p"), in THREADED_TEST()
838 templ_p->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
841 v8::Local<Value> value = CompileRun( in THREADED_TEST()
854 CHECK_EQ(42 * 10, value->Int32Value(context.local()).FromJust()); in THREADED_TEST()
859 Local<Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { in InterceptorLoadICGetter0()
875 Local<Name> key, Local<Value> value, in InterceptorStoreICSetter()
877 v8::Local<v8::Context> context = info.GetIsolate()->GetCurrentContext(); in InterceptorStoreICSetter()
888 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
894 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
895 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
907 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
912 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
913 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
915 v8::Local<Value> value = CompileRun( in THREADED_TEST()
920 CHECK_EQ(239 + 42, value->Int32Value(context.local()).FromJust()); in THREADED_TEST()
926 Local<FunctionTemplate> parent = FunctionTemplate::New(CcTest::isolate()); in THREADED_TEST()
927 Local<FunctionTemplate> child = FunctionTemplate::New(CcTest::isolate()); in THREADED_TEST()
934 ->Set(env.local(), v8_str("Child"), in THREADED_TEST()
935 child->GetFunction(env.local()).ToLocalChecked()) in THREADED_TEST()
950 Local<FunctionTemplate> parent = FunctionTemplate::New(isolate); in THREADED_TEST()
951 Local<FunctionTemplate> child = FunctionTemplate::New(isolate); in THREADED_TEST()
952 v8::Local<v8::Symbol> age = v8::Symbol::New(isolate, v8_str("age")); in THREADED_TEST()
959 ->Set(env.local(), v8_str("Child"), in THREADED_TEST()
960 child->GetFunction(env.local()).ToLocalChecked()) in THREADED_TEST()
962 env->Global()->Set(env.local(), v8_str("age"), age).FromJust(); in THREADED_TEST()
976 Local<FunctionTemplate> parent = FunctionTemplate::New(isolate); in THREADED_TEST()
977 Local<FunctionTemplate> child = FunctionTemplate::New(isolate); in THREADED_TEST()
978 v8::Local<v8::Symbol> age = v8::Symbol::New(isolate, v8_str("age")); in THREADED_TEST()
979 v8::Local<v8::Symbol> anon = v8::Symbol::New(isolate); in THREADED_TEST()
986 ->Set(env.local(), v8_str("Child"), in THREADED_TEST()
987 child->GetFunction(env.local()).ToLocalChecked()) in THREADED_TEST()
989 env->Global()->Set(env.local(), v8_str("age"), age).FromJust(); in THREADED_TEST()
990 env->Global()->Set(env.local(), v8_str("anon"), anon).FromJust(); in THREADED_TEST()
1011 v8::Local<v8::FunctionTemplate> templ = in THREADED_TEST()
1017 ->Set(env.local(), v8_str("obj"), templ->GetFunction(env.local()) in THREADED_TEST()
1019 ->NewInstance(env.local()) in THREADED_TEST()
1023 v8_compile("obj.x")->Run(env.local()).ToLocalChecked(); in THREADED_TEST()
1026 v8::Local<Value> str = CompileRun(code); in THREADED_TEST()
1031 ->Run(env.local()) in THREADED_TEST()
1033 ->Int32Value(env.local()) in THREADED_TEST()
1036 ->Run(env.local()) in THREADED_TEST()
1038 ->BooleanValue(env.local()) in THREADED_TEST()
1041 ->Run(env.local()) in THREADED_TEST()
1043 ->BooleanValue(env.local()) in THREADED_TEST()
1065 v8::Local<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(isolate); in THREADED_TEST()
1070 ->Set(env.local(), v8_str("obj"), templ->GetFunction(env.local()) in THREADED_TEST()
1072 ->NewInstance(env.local()) in THREADED_TEST()
1075 Local<Script> script = v8_compile("obj[900]"); in THREADED_TEST()
1076 CHECK_EQ(script->Run(env.local()) in THREADED_TEST()
1078 ->Int32Value(env.local()) in THREADED_TEST()
1090 v8::Local<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(isolate); in THREADED_TEST()
1101 bottom = templ->GetFunction(env.local()) in THREADED_TEST()
1103 ->NewInstance(env.local()) in THREADED_TEST()
1105 Local<v8::Object> top = templ->GetFunction(env.local()) in THREADED_TEST()
1107 ->NewInstance(env.local()) in THREADED_TEST()
1109 Local<v8::Object> middle = templ->GetFunction(env.local()) in THREADED_TEST()
1111 ->NewInstance(env.local()) in THREADED_TEST()
1114 bottom->SetPrototype(env.local(), middle).FromJust(); in THREADED_TEST()
1115 middle->SetPrototype(env.local(), top).FromJust(); in THREADED_TEST()
1116 env->Global()->Set(env.local(), v8_str("obj"), bottom).FromJust(); in THREADED_TEST()
1141 Local<Name> key, const v8::PropertyCallbackInfo<v8::Value>& info) { in PrePropertyHandlerGet()
1153 Local<Name> key, const v8::PropertyCallbackInfo<v8::Integer>& info) { in PrePropertyHandlerQuery()
1166 v8::Local<v8::FunctionTemplate> desc = v8::FunctionTemplate::New(isolate); in THREADED_TEST()
1173 v8::Local<Value> result_pre = CompileRun("pre"); in THREADED_TEST()
1175 ->Equals(env.local(), result_pre) in THREADED_TEST()
1177 v8::Local<Value> result_on = CompileRun("on"); in THREADED_TEST()
1178 CHECK(v8_str("Object: on")->Equals(env.local(), result_on).FromJust()); in THREADED_TEST()
1179 v8::Local<Value> result_post = CompileRun("post"); in THREADED_TEST()
1186 Local<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate()); in THREADED_TEST()
1190 ->Set(env.local(), v8_str("Constructor"), in THREADED_TEST()
1191 templ->GetFunction(env.local()).ToLocalChecked()) in THREADED_TEST()
1207 Local<FunctionTemplate> parent = FunctionTemplate::New(isolate); in THREADED_TEST()
1208 Local<FunctionTemplate> child = FunctionTemplate::New(isolate); in THREADED_TEST()
1213 ->Set(env.local(), v8_str("Child"), in THREADED_TEST()
1214 child->GetFunction(env.local()).ToLocalChecked()) in THREADED_TEST()
1233 Local<FunctionTemplate> parent = FunctionTemplate::New(isolate); in THREADED_TEST()
1236 Local<FunctionTemplate> child = FunctionTemplate::New(isolate); in THREADED_TEST()
1241 ->Set(env.local(), v8_str("Child"), in THREADED_TEST()
1242 child->GetFunction(env.local()).ToLocalChecked()) in THREADED_TEST()
1263 Local<FunctionTemplate> parent = FunctionTemplate::New(isolate); in THREADED_TEST()
1264 Local<FunctionTemplate> child = FunctionTemplate::New(isolate); in THREADED_TEST()
1269 ->Set(env.local(), v8_str("Child"), in THREADED_TEST()
1270 child->GetFunction(env.local()).ToLocalChecked()) in THREADED_TEST()
1287 Local<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate()); in THREADED_TEST()
1292 ->Set(env.local(), v8_str("Obj"), in THREADED_TEST()
1293 templ->GetFunction(env.local()).ToLocalChecked()) in THREADED_TEST()
1308 Local<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate()); in THREADED_TEST()
1313 ->Set(env.local(), v8_str("Obj"), in THREADED_TEST()
1314 templ->GetFunction(env.local()).ToLocalChecked()) in THREADED_TEST()
1329 Local<FunctionTemplate> parent = FunctionTemplate::New(CcTest::isolate()); in THREADED_TEST()
1330 Local<FunctionTemplate> child = FunctionTemplate::New(CcTest::isolate()); in THREADED_TEST()
1337 ->Set(env.local(), v8_str("Child"), in THREADED_TEST()
1338 child->GetFunction(env.local()).ToLocalChecked()) in THREADED_TEST()
1353 Local<FunctionTemplate> parent = FunctionTemplate::New(CcTest::isolate()); in THREADED_TEST()
1354 Local<FunctionTemplate> child = FunctionTemplate::New(CcTest::isolate()); in THREADED_TEST()
1361 ->Set(env.local(), v8_str("Child"), in THREADED_TEST()
1362 child->GetFunction(env.local()).ToLocalChecked()) in THREADED_TEST()
1377 Local<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate()); in THREADED_TEST()
1381 ->Set(env.local(), v8_str("Obj"), in THREADED_TEST()
1382 templ->GetFunction(env.local()).ToLocalChecked()) in THREADED_TEST()
1406 Local<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate()); in THREADED_TEST()
1410 ->Set(env.local(), v8_str("Obj"), in THREADED_TEST()
1411 templ->GetFunction(env.local()).ToLocalChecked()) in THREADED_TEST()
1435 Local<FunctionTemplate> parent = FunctionTemplate::New(CcTest::isolate()); in THREADED_TEST()
1436 Local<FunctionTemplate> child = FunctionTemplate::New(CcTest::isolate()); in THREADED_TEST()
1441 ->Set(env.local(), v8_str("Child"), in THREADED_TEST()
1442 child->GetFunction(env.local()).ToLocalChecked()) in THREADED_TEST()
1457 Local<FunctionTemplate> parent = FunctionTemplate::New(CcTest::isolate()); in THREADED_TEST()
1458 Local<FunctionTemplate> child = FunctionTemplate::New(CcTest::isolate()); in THREADED_TEST()
1463 ->Set(env.local(), v8_str("Child"), in THREADED_TEST()
1464 child->GetFunction(env.local()).ToLocalChecked()) in THREADED_TEST()
1479 Local<Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { in InterceptorForHiddenProperties()
1491 v8::Local<v8::Private> key = in THREADED_TEST()
1495 Local<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(isolate); in THREADED_TEST()
1496 Local<v8::ObjectTemplate> instance_templ = fun_templ->InstanceTemplate(); in THREADED_TEST()
1499 Local<v8::Function> function = in THREADED_TEST()
1500 fun_templ->GetFunction(context.local()).ToLocalChecked(); in THREADED_TEST()
1501 Local<v8::Object> obj = in THREADED_TEST()
1502 function->NewInstance(context.local()).ToLocalChecked(); in THREADED_TEST()
1503 CHECK(obj->SetPrivate(context.local(), key, v8::Integer::New(isolate, 2302)) in THREADED_TEST()
1505 CHECK_EQ(2302, obj->GetPrivate(context.local(), key) in THREADED_TEST()
1507 ->Int32Value(context.local()) in THREADED_TEST()
1513 static void XPropertyGetter(Local<Name> property, in XPropertyGetter()
1524 Local<ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
1528 ->Set(context.local(), v8_str("obj"), in THREADED_TEST()
1529 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
1531 Local<Script> script = v8_compile("obj.x"); in THREADED_TEST()
1533 Local<Value> result = script->Run(context.local()).ToLocalChecked(); in THREADED_TEST()
1534 CHECK(result->Equals(context.local(), v8_str("x")).FromJust()); in THREADED_TEST()
1542 Local<ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
1547 ->Set(context.local(), v8_str("interceptor_obj"), in THREADED_TEST()
1548 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
1550 Local<Script> script = v8_compile("interceptor_obj.x"); in THREADED_TEST()
1552 Local<Value> result = script->Run(context.local()).ToLocalChecked(); in THREADED_TEST()
1553 CHECK(result->Equals(context.local(), v8_str("x")).FromJust()); in THREADED_TEST()
1559 // instead of accessing the local property. in THREADED_TEST()
1560 Local<Value> result = CompileRun( in THREADED_TEST()
1569 CHECK(result->Equals(context.local(), v8_str("x")).FromJust()); in THREADED_TEST()
1576 v8::Local<Context> context1 = Context::New(isolate); in THREADED_TEST()
1579 Local<ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
1582 v8::Local<v8::Object> object = templ->NewInstance(context1).ToLocalChecked(); in THREADED_TEST()
1598 ->Set(context2.local(), v8_str("interceptor_obj"), object) in THREADED_TEST()
1600 Local<Value> result = CompileRun( in THREADED_TEST()
1608 CHECK(result->Equals(context2.local(), v8_str("x")).FromJust()); in THREADED_TEST()
1620 Local<Name> property, const v8::PropertyCallbackInfo<v8::Value>& info) { in SetXOnPrototypeGetter()
1622 v8::Local<v8::Value> proto = info.Holder()->GetPrototype(); in SetXOnPrototypeGetter()
1635 Local<v8::FunctionTemplate> function_template = in THREADED_TEST()
1637 Local<v8::ObjectTemplate> instance_template = in THREADED_TEST()
1643 ->Set(context.local(), v8_str("F"), in THREADED_TEST()
1644 function_template->GetFunction(context.local()).ToLocalChecked()) in THREADED_TEST()
1649 Local<Value> result = CompileRun("o = new F(); o.x"); in THREADED_TEST()
1650 CHECK_EQ(result->Int32Value(context.local()).FromJust(), 23); in THREADED_TEST()
1664 uint32_t index, Local<Value> value, in IndexedPropertySetter()
1676 Local<ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
1681 ->Set(context.local(), v8_str("obj"), in THREADED_TEST()
1682 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
1684 Local<Script> getter_script = in THREADED_TEST()
1686 Local<Script> setter_script = v8_compile( in THREADED_TEST()
1690 Local<Script> interceptor_setter_script = v8_compile( in THREADED_TEST()
1694 Local<Script> interceptor_getter_script = v8_compile("obj[37];"); in THREADED_TEST()
1695 Local<Value> result = getter_script->Run(context.local()).ToLocalChecked(); in THREADED_TEST()
1696 CHECK(v8_num(5)->Equals(context.local(), result).FromJust()); in THREADED_TEST()
1697 result = setter_script->Run(context.local()).ToLocalChecked(); in THREADED_TEST()
1698 CHECK(v8_num(23)->Equals(context.local(), result).FromJust()); in THREADED_TEST()
1699 result = interceptor_setter_script->Run(context.local()).ToLocalChecked(); in THREADED_TEST()
1700 CHECK(v8_num(23)->Equals(context.local(), result).FromJust()); in THREADED_TEST()
1701 result = interceptor_getter_script->Run(context.local()).ToLocalChecked(); in THREADED_TEST()
1702 CHECK(v8_num(625)->Equals(context.local(), result).FromJust()); in THREADED_TEST()
1716 uint32_t index, Local<Value> value, in UnboxedDoubleIndexedPropertySetter()
1728 Local<Script> indexed_property_names_script = v8_compile( in UnboxedDoubleIndexedPropertyEnumerator()
1732 Local<Value> result = in UnboxedDoubleIndexedPropertyEnumerator()
1735 info.GetReturnValue().Set(Local<v8::Array>::Cast(result)); in UnboxedDoubleIndexedPropertyEnumerator()
1744 Local<ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
1750 ->Set(context.local(), v8_str("obj"), in THREADED_TEST()
1751 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
1754 Local<Script> create_unboxed_double_script = v8_compile( in THREADED_TEST()
1759 Local<Value> result = in THREADED_TEST()
1760 create_unboxed_double_script->Run(context.local()).ToLocalChecked(); in THREADED_TEST()
1761 CHECK(result->ToObject(context.local()) in THREADED_TEST()
1763 ->HasRealIndexedProperty(context.local(), 2000) in THREADED_TEST()
1765 Local<Script> key_count_check = v8_compile("key_count;"); in THREADED_TEST()
1766 result = key_count_check->Run(context.local()).ToLocalChecked(); in THREADED_TEST()
1767 CHECK(v8_num(40013)->Equals(context.local(), result).FromJust()); in THREADED_TEST()
1774 Local<Script> indexed_property_names_script = v8_compile( in SloppyArgsIndexedPropertyEnumerator()
1780 Local<Object> result = Local<Object>::Cast( in SloppyArgsIndexedPropertyEnumerator()
1805 Local<ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
1811 ->Set(context.local(), v8_str("obj"), in THREADED_TEST()
1812 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
1814 Local<Script> create_args_script = v8_compile( in THREADED_TEST()
1817 Local<Value> result = in THREADED_TEST()
1818 create_args_script->Run(context.local()).ToLocalChecked(); in THREADED_TEST()
1819 CHECK(v8_num(4)->Equals(context.local(), result).FromJust()); in THREADED_TEST()
1832 Local<ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
1838 ->Set(context.local(), v8_str("obj"), in THREADED_TEST()
1839 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
1858 Local<ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
1864 ->Set(context.local(), v8_str("obj"), in THREADED_TEST()
1865 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
1883 static bool AccessAlwaysBlocked(Local<v8::Context> accessing_context, in AccessAlwaysBlocked()
1884 Local<v8::Object> accessed_object) { in AccessAlwaysBlocked()
1892 Local<ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
1899 Local<v8::Object> obj = templ->NewInstance(context.local()).ToLocalChecked(); in THREADED_TEST()
1900 context->Global()->Set(context.local(), v8_str("obj"), obj).FromJust(); in THREADED_TEST()
1921 Local<ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
1926 Local<v8::Object> obj = templ->NewInstance(context.local()).ToLocalChecked(); in THREADED_TEST()
1927 context->Global()->Set(context.local(), v8_str("obj"), obj).FromJust(); in THREADED_TEST()
1946 Local<ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
1951 Local<v8::Object> obj = templ->NewInstance(context.local()).ToLocalChecked(); in THREADED_TEST()
1952 context->Global()->Set(context.local(), v8_str("obj"), obj).FromJust(); in THREADED_TEST()
1987 Local<ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
1992 Local<v8::Object> obj = templ->NewInstance(context.local()).ToLocalChecked(); in THREADED_TEST()
1993 context->Global()->Set(context.local(), v8_str("obj"), obj).FromJust(); in THREADED_TEST()
2018 Local<ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
2023 Local<v8::Object> obj = templ->NewInstance(context.local()).ToLocalChecked(); in THREADED_TEST()
2024 context->Global()->Set(context.local(), v8_str("obj"), obj).FromJust(); in THREADED_TEST()
2050 Local<ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
2055 Local<v8::Object> obj = templ->NewInstance(context.local()).ToLocalChecked(); in THREADED_TEST()
2056 context->Global()->Set(context.local(), v8_str("obj"), obj).FromJust(); in THREADED_TEST()
2082 Local<ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
2087 Local<v8::Object> obj = templ->NewInstance(context.local()).ToLocalChecked(); in THREADED_TEST()
2088 context->Global()->Set(context.local(), v8_str("obj"), obj).FromJust(); in THREADED_TEST()
2105 static void NoBlockGetterX(Local<Name> name, in NoBlockGetterX()
2113 static void PDeleter(Local<Name> name, in PDeleter()
2137 v8::Local<v8::ObjectTemplate> obj = ObjectTemplate::New(isolate); in THREADED_TEST()
2144 ->Set(context.local(), v8_str("k"), in THREADED_TEST()
2145 obj->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
2153 ->Run(context.local()) in THREADED_TEST()
2157 ->Run(context.local()) in THREADED_TEST()
2162 ->Run(context.local()) in THREADED_TEST()
2164 ->Equals(context.local(), v8_str("foo")) in THREADED_TEST()
2167 ->Run(context.local()) in THREADED_TEST()
2172 ->Run(context.local()) in THREADED_TEST()
2176 ->Run(context.local()) in THREADED_TEST()
2181 ->Run(context.local()) in THREADED_TEST()
2183 ->Equals(context.local(), v8_num(2)) in THREADED_TEST()
2186 v8_compile("k[4]")->Run(context.local()).ToLocalChecked()->IsUndefined()); in THREADED_TEST()
2190 static void GetK(Local<Name> name, in GetK()
2193 v8::Local<v8::Context> context = info.GetIsolate()->GetCurrentContext(); in GetK()
2211 v8::Local<v8::Array> result = v8::Array::New(info.GetIsolate(), 3); in NamedEnum()
2212 v8::Local<v8::Context> context = info.GetIsolate()->GetCurrentContext(); in NamedEnum()
2225 v8::Local<v8::Array> result = v8::Array::New(info.GetIsolate(), 2); in IndexedEnum()
2226 v8::Local<v8::Context> context = info.GetIsolate()->GetCurrentContext(); in IndexedEnum()
2238 v8::Local<v8::ObjectTemplate> obj = ObjectTemplate::New(isolate); in THREADED_TEST()
2245 ->Set(context.local(), v8_str("k"), in THREADED_TEST()
2246 obj->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
2248 v8::Local<v8::Array> result = in THREADED_TEST()
2249 v8::Local<v8::Array>::Cast(CompileRun("k[10] = 0;" in THREADED_TEST()
2275 ->Equals(context.local(), in THREADED_TEST()
2276 result->Get(context.local(), v8::Integer::New(isolate, 0)) in THREADED_TEST()
2280 ->Equals(context.local(), in THREADED_TEST()
2281 result->Get(context.local(), v8::Integer::New(isolate, 1)) in THREADED_TEST()
2285 ->Equals(context.local(), in THREADED_TEST()
2286 result->Get(context.local(), v8::Integer::New(isolate, 2)) in THREADED_TEST()
2290 ->Equals(context.local(), in THREADED_TEST()
2291 result->Get(context.local(), v8::Integer::New(isolate, 3)) in THREADED_TEST()
2295 ->Equals(context.local(), in THREADED_TEST()
2296 result->Get(context.local(), v8::Integer::New(isolate, 4)) in THREADED_TEST()
2300 ->Equals(context.local(), in THREADED_TEST()
2301 result->Get(context.local(), v8::Integer::New(isolate, 5)) in THREADED_TEST()
2306 ->Equals(context.local(), in THREADED_TEST()
2307 result->Get(context.local(), v8::Integer::New(isolate, 6)) in THREADED_TEST()
2311 ->Equals(context.local(), in THREADED_TEST()
2312 result->Get(context.local(), v8::Integer::New(isolate, 7)) in THREADED_TEST()
2316 ->Equals(context.local(), in THREADED_TEST()
2317 result->Get(context.local(), v8::Integer::New(isolate, 8)) in THREADED_TEST()
2321 ->Equals(context.local(), in THREADED_TEST()
2322 result->Get(context.local(), v8::Integer::New(isolate, 9)) in THREADED_TEST()
2326 ->Equals(context.local(), in THREADED_TEST()
2327 result->Get(context.local(), v8::Integer::New(isolate, 10)) in THREADED_TEST()
2331 ->Equals(context.local(), in THREADED_TEST()
2332 result->Get(context.local(), v8::Integer::New(isolate, 11)) in THREADED_TEST()
2336 ->Equals(context.local(), in THREADED_TEST()
2337 result->Get(context.local(), v8::Integer::New(isolate, 12)) in THREADED_TEST()
2341 ->Equals(context.local(), in THREADED_TEST()
2342 result->Get(context.local(), v8::Integer::New(isolate, 13)) in THREADED_TEST()
2347 ->Equals(context.local(), in THREADED_TEST()
2348 result->Get(context.local(), v8::Integer::New(isolate, 14)) in THREADED_TEST()
2352 ->Equals(context.local(), in THREADED_TEST()
2353 result->Get(context.local(), v8::Integer::New(isolate, 15)) in THREADED_TEST()
2357 ->Equals(context.local(), in THREADED_TEST()
2358 result->Get(context.local(), v8::Integer::New(isolate, 16)) in THREADED_TEST()
2364 v8::Local<Value> call_ic_function;
2365 v8::Local<Value> call_ic_function2;
2366 v8::Local<Value> call_ic_function3;
2369 Local<Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { in InterceptorCallICGetter()
2382 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
2387 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
2388 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
2391 ->Run(context.local()) in THREADED_TEST()
2393 v8::Local<Value> value = CompileRun( in THREADED_TEST()
2398 CHECK_EQ(42, value->Int32Value(context.local()).FromJust()); in THREADED_TEST()
2407 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
2411 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
2412 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
2414 v8::Local<Value> value = CompileRun( in THREADED_TEST()
2420 CHECK_EQ(42, value->Int32Value(context.local()).FromJust()); in THREADED_TEST()
2424 static v8::Local<Value> call_ic_function4;
2426 Local<Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { in InterceptorCallICGetter4()
2441 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
2446 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
2447 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
2450 ->Run(context.local()) in THREADED_TEST()
2452 v8::Local<Value> value = CompileRun( in THREADED_TEST()
2458 CHECK_EQ(41, value->Int32Value(context.local()).FromJust()); in THREADED_TEST()
2467 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
2471 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
2472 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
2474 v8::Local<Value> value = CompileRun( in THREADED_TEST()
2489 CHECK_EQ(41 * 7, value->Int32Value(context.local()).FromJust()); in THREADED_TEST()
2498 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
2502 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
2503 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
2505 v8::Local<Value> value = CompileRun( in THREADED_TEST()
2513 CHECK_EQ(43, value->Int32Value(context.local()).FromJust()); in THREADED_TEST()
2517 static v8::Local<Value> call_ic_function5;
2519 Local<Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { in InterceptorCallICGetter5()
2534 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
2539 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
2540 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
2543 ->Run(context.local()) in THREADED_TEST()
2545 v8::Local<Value> value = CompileRun( in THREADED_TEST()
2553 CHECK_EQ(41, value->Int32Value(context.local()).FromJust()); in THREADED_TEST()
2557 static v8::Local<Value> call_ic_function6;
2559 Local<Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { in InterceptorCallICGetter6()
2574 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
2579 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
2580 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
2583 ->Run(context.local()) in THREADED_TEST()
2585 v8::Local<Value> value = CompileRun( in THREADED_TEST()
2601 CHECK_EQ(41, value->Int32Value(context.local()).FromJust()); in THREADED_TEST()
2610 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
2614 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
2615 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
2617 v8::Local<Value> value = CompileRun( in THREADED_TEST()
2634 CHECK_EQ(41 * 7, value->Int32Value(context.local()).FromJust()); in THREADED_TEST()
2644 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
2648 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
2649 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
2651 v8::Local<Value> value = CompileRun( in THREADED_TEST()
2665 CHECK_EQ(41 * 7, value->Int32Value(context.local()).FromJust()); in THREADED_TEST()
2673 v8::Local<v8::ObjectTemplate> templ_o = ObjectTemplate::New(isolate); in THREADED_TEST()
2678 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
2679 templ_o->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
2682 v8::Local<Value> value = CompileRun( in THREADED_TEST()
2698 CHECK_EQ(239 * 10, value->Int32Value(context.local()).FromJust()); in THREADED_TEST()
2702 v8::Local<Value> keyed_call_ic_function;
2705 Local<Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { in InterceptorKeyedCallICGetter()
2720 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
2724 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
2725 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
2739 ->Get(context.local(), v8_str("result")) in THREADED_TEST()
2741 ->Int32Value(context.local()) in THREADED_TEST()
2752 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
2757 ->Set(context.local(), v8_str("proto1"), in THREADED_TEST()
2758 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
2761 ->Run(context.local()) in THREADED_TEST()
2777 ->Get(context.local(), v8_str("result")) in THREADED_TEST()
2779 ->Int32Value(context.local()) in THREADED_TEST()
2789 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
2793 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
2794 templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
2811 ->Get(context.local(), v8_str("result")) in THREADED_TEST()
2813 ->Int32Value(context.local()) in THREADED_TEST()
2822 v8::Local<v8::ObjectTemplate> templ_o = ObjectTemplate::New(isolate); in THREADED_TEST()
2826 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
2827 templ_o->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
2843 ->Get(context.local(), v8_str("result")) in THREADED_TEST()
2845 ->Int32Value(context.local()) in THREADED_TEST()
2848 ->Get(context.local(), v8_str("saved_result")) in THREADED_TEST()
2850 ->Int32Value(context.local()) in THREADED_TEST()
2859 v8::Local<v8::ObjectTemplate> templ_o = ObjectTemplate::New(isolate); in THREADED_TEST()
2863 ->Set(context.local(), v8_str("proto"), in THREADED_TEST()
2864 templ_o->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
2878 ->Get(context.local(), v8_str("result")) in THREADED_TEST()
2880 ->Int32Value(context.local()) in THREADED_TEST()
2889 v8::Local<v8::ObjectTemplate> templ_o = ObjectTemplate::New(isolate); in THREADED_TEST()
2893 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
2894 templ_o->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
2908 ->Get(context.local(), v8_str("result")) in THREADED_TEST()
2910 ->Int32Value(context.local()) in THREADED_TEST()
2918 Local<Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { in InterceptorICRefErrorGetter()
2936 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
2940 LocalContext context(0, templ, v8::Local<Value>()); in THREADED_TEST()
2943 ->Run(context.local()) in THREADED_TEST()
2945 v8::Local<Value> value = CompileRun( in THREADED_TEST()
2953 CHECK_EQ(true, value->BooleanValue(context.local()).FromJust()); in THREADED_TEST()
2963 CHECK_EQ(true, value->BooleanValue(context.local()).FromJust()); in THREADED_TEST()
2970 Local<Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { in InterceptorICExceptionGetter()
2992 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
2996 LocalContext context(0, templ, v8::Local<Value>()); in THREADED_TEST()
2999 ->Run(context.local()) in THREADED_TEST()
3001 v8::Local<Value> value = CompileRun( in THREADED_TEST()
3009 CHECK_EQ(true, value->BooleanValue(context.local()).FromJust()); in THREADED_TEST()
3019 CHECK_EQ(true, value->BooleanValue(context.local()).FromJust()); in THREADED_TEST()
3026 Local<Name> key, Local<Value> value, in InterceptorICExceptionSetter()
3041 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
3044 LocalContext context(0, templ, v8::Local<Value>()); in THREADED_TEST()
3045 v8::Local<Value> value = CompileRun( in THREADED_TEST()
3053 CHECK_EQ(true, value->BooleanValue(context.local()).FromJust()); in THREADED_TEST()
3061 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
3066 v8::Local<v8::Object> obj = in THREADED_TEST()
3067 templ->NewInstance(context.local()).ToLocalChecked(); in THREADED_TEST()
3068 context->Global()->Set(context.local(), v8_str("obj"), obj).FromJust(); in THREADED_TEST()
3069 v8::Local<Value> value = CompileRun("obj.x"); in THREADED_TEST()
3071 CHECK_EQ(42, value->Int32Value(context.local()).FromJust()); in THREADED_TEST()
3079 v8::Local<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate); in THREADED_TEST()
3084 v8::Local<v8::Object> obj = in THREADED_TEST()
3085 templ->NewInstance(context.local()).ToLocalChecked(); in THREADED_TEST()
3086 context->Global()->Set(context.local(), v8_str("obj"), obj).FromJust(); in THREADED_TEST()
3087 v8::Local<Value> value = CompileRun("obj[42]"); in THREADED_TEST()
3089 CHECK_EQ(42, value->Int32Value(context.local()).FromJust()); in THREADED_TEST()
3096 v8::Local<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(isolate); in THREADED_TEST()
3101 ->Set(env.local(), v8_str("obj"), templ->GetFunction(env.local()) in THREADED_TEST()
3103 ->NewInstance(env.local()) in THREADED_TEST()
3115 Local<FunctionTemplate> templ = FunctionTemplate::New(context->GetIsolate()); in THREADED_TEST()
3118 ->Set(context.local(), v8_str("Bug"), in THREADED_TEST()
3119 templ->GetFunction(context.local()).ToLocalChecked()) in THREADED_TEST()
3134 Local<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate()); in THREADED_TEST()
3138 ->Set(env.local(), v8_str("Obj"), in THREADED_TEST()
3139 templ->GetFunction(env.local()).ToLocalChecked()) in THREADED_TEST()
3164 Local<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate()); in THREADED_TEST()
3168 ->Set(env.local(), v8_str("Obj"), in THREADED_TEST()
3169 templ->GetFunction(env.local()).ToLocalChecked()) in THREADED_TEST()
3191 Local<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate()); in THREADED_TEST()
3195 ->Set(env.local(), v8_str("Obj"), in THREADED_TEST()
3196 templ->GetFunction(env.local()).ToLocalChecked()) in THREADED_TEST()
3215 Local<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate()); in THREADED_TEST()
3219 ->Set(env.local(), v8_str("Obj"), in THREADED_TEST()
3220 templ->GetFunction(env.local()).ToLocalChecked()) in THREADED_TEST()
3239 Local<FunctionTemplate> templ = FunctionTemplate::New(context->GetIsolate()); in THREADED_TEST()
3242 ->Set(context.local(), v8_str("Bug"), in THREADED_TEST()
3243 templ->GetFunction(context.local()).ToLocalChecked()) in THREADED_TEST()
3251 Local<FunctionTemplate> intercept = FunctionTemplate::New(CcTest::isolate()); in THREADED_TEST()
3255 ->Set(env.local(), v8_str("Intercept"), in THREADED_TEST()
3256 intercept->GetFunction(env.local()).ToLocalChecked()) in THREADED_TEST()
3280 v8::Local<v8::Array> result = v8::Array::New(info.GetIsolate(), 1); in IndexedPropertyEnumerator()
3290 v8::Local<v8::Array> result = v8::Array::New(info.GetIsolate(), 2); in NamedPropertyEnumerator()
3291 v8::Local<v8::Context> context = info.GetIsolate()->GetCurrentContext(); in NamedPropertyEnumerator()
3302 v8::Local<v8::ObjectTemplate> obj_template = v8::ObjectTemplate::New(isolate); in THREADED_TEST()
3312 v8::Local<v8::Object> global = context->Global(); in THREADED_TEST()
3313 global->Set(context.local(), v8_str("object"), in THREADED_TEST()
3314 obj_template->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
3317 v8::Local<v8::Value> result = in THREADED_TEST()
3320 v8::Local<v8::Array> result_array = v8::Local<v8::Array>::Cast(result); in THREADED_TEST()
3322 CHECK(result_array->Get(context.local(), 0).ToLocalChecked()->IsString()); in THREADED_TEST()
3323 CHECK(result_array->Get(context.local(), 1).ToLocalChecked()->IsString()); in THREADED_TEST()
3325 ->Equals(context.local(), in THREADED_TEST()
3326 result_array->Get(context.local(), 0).ToLocalChecked()) in THREADED_TEST()
3329 ->Equals(context.local(), in THREADED_TEST()
3330 result_array->Get(context.local(), 1).ToLocalChecked()) in THREADED_TEST()
3335 result_array = v8::Local<v8::Array>::Cast(result); in THREADED_TEST()
3337 CHECK(result_array->Get(context.local(), 0).ToLocalChecked()->IsString()); in THREADED_TEST()
3338 CHECK(result_array->Get(context.local(), 1).ToLocalChecked()->IsString()); in THREADED_TEST()
3340 ->Equals(context.local(), in THREADED_TEST()
3341 result_array->Get(context.local(), 0).ToLocalChecked()) in THREADED_TEST()
3344 ->Equals(context.local(), in THREADED_TEST()
3345 result_array->Get(context.local(), 1).ToLocalChecked()) in THREADED_TEST()
3350 result_array = v8::Local<v8::Array>::Cast(result); in THREADED_TEST()
3352 CHECK(result_array->Get(context.local(), 0) in THREADED_TEST()
3354 ->Equals(context.local(), v8::Symbol::GetIterator(isolate)) in THREADED_TEST()
3368 v8::Local<v8::ObjectTemplate> obj_template = v8::ObjectTemplate::New(isolate); in THREADED_TEST()
3377 v8::Local<v8::Object> global = context->Global(); in THREADED_TEST()
3378 global->Set(context.local(), v8_str("object"), in THREADED_TEST()
3379 obj_template->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
3381 v8::Local<v8::Value> result = CompileRun( in THREADED_TEST()
3390 CHECK(v8_num(42)->Equals(context.local(), result).FromJust()); in THREADED_TEST()
3401 CHECK(v8_num(42)->Equals(context.local(), result).FromJust()); in THREADED_TEST()
3414 v8::Local<v8::ObjectTemplate> obj_template = v8::ObjectTemplate::New(isolate); in THREADED_TEST()
3423 v8::Local<v8::Object> global = context->Global(); in THREADED_TEST()
3424 global->Set(context.local(), v8_str("object"), in THREADED_TEST()
3425 obj_template->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
3428 v8::Local<v8::Value> result = CompileRun( in THREADED_TEST()
3437 CHECK(v8_num(43)->Equals(context.local(), result).FromJust()); in THREADED_TEST()
3448 CHECK(v8_num(43)->Equals(context.local(), result).FromJust()); in THREADED_TEST()
3454 Local<Object> BuildWrappedObject(v8::Isolate* isolate, T* data) { in BuildWrappedObject()
3465 T* GetWrappedObject(Local<Value> data) { in GetWrappedObject()
3479 bool SimpleAccessChecker(Local<v8::Context> accessing_context, in SimpleAccessChecker()
3480 Local<v8::Object> access_object) { in SimpleAccessChecker()
3492 void ShouldNamedInterceptor(Local<Name> name, in ShouldNamedInterceptor()
3555 ->Set(context.local(), v8_str("intercepted_0"), in TEST()
3556 intercepted_0->NewInstance(context.local()).ToLocalChecked()) in TEST()
3559 ->Set(context.local(), v8_str("intercepted_1"), in TEST()
3560 intercepted_1->NewInstance(context.local()).ToLocalChecked()) in TEST()
3563 checked->NewInstance(context.local()).ToLocalChecked(); in TEST()
3564 checked_instance->Set(context.local(), v8_str("whatever"), v8_num(17)) in TEST()
3567 ->Set(context.local(), v8_str("checked"), checked_instance) in TEST()
3642 ->Set(context.local(), v8_str("intercepted_0"), in TEST()
3643 intercepted_0->NewInstance(context.local()).ToLocalChecked()) in TEST()
3646 ->Set(context.local(), v8_str("intercepted_1"), in TEST()
3647 intercepted_1->NewInstance(context.local()).ToLocalChecked()) in TEST()
3650 checked->NewInstance(context.local()).ToLocalChecked(); in TEST()
3652 ->Set(context.local(), v8_str("checked"), checked_instance) in TEST()
3654 checked_instance->Set(context.local(), 15, v8_num(17)).FromJust(); in TEST()
3705 interceptor_templ->NewInstance(context.local()).ToLocalChecked(); in THREADED_TEST()
3707 ->Set(context.local(), v8_str("obj"), interceptor) in THREADED_TEST()
3736 interceptor_templ->NewInstance(context.local()).ToLocalChecked(); in THREADED_TEST()
3738 ->Set(context.local(), v8_str("obj"), interceptor) in THREADED_TEST()
3767 interceptor_templ->NewInstance(context.local()).ToLocalChecked(); in THREADED_TEST()
3769 ->Set(context.local(), v8_str("obj"), interceptor) in THREADED_TEST()
3827 void DatabaseGetter(Local<Name> name, in DatabaseGetter()
3831 Local<v8::Object> db = info.Holder() in DatabaseGetter()
3840 void DatabaseSetter(Local<Name> name, Local<Value> value, in DatabaseSetter()
3845 Local<v8::Object> db = info.Holder() in DatabaseSetter()
3867 ->Set(context.local(), v8_str("intercepted_1"), in THREADED_TEST()
3868 interceptor_templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()
3871 ->Set(context.local(), v8_str("intercepted_2"), in THREADED_TEST()
3872 interceptor_templ->NewInstance(context.local()).ToLocalChecked()) in THREADED_TEST()