Lines Matching refs:v8_str
97 v8::Local<v8::String> profile_name = v8_str("my_profile1"); in RunWithProfiler()
209 CHECK(v8_str("TypeError: Illegal invocation") in TestSignature()
236 fun_proto->Set(v8_str("prop_sig"), callback_sig); in THREADED_TEST()
237 fun_proto->Set(v8_str("prop"), callback); in THREADED_TEST()
239 v8_str("accessor_sig"), callback_sig, callback_sig); in THREADED_TEST()
240 fun_proto->SetAccessorProperty(v8_str("accessor"), callback, callback); in THREADED_TEST()
248 ->Set(env.local(), v8_str("Fun"), in THREADED_TEST()
252 ->Set(env.local(), v8_str("UnrelFun"), in THREADED_TEST()
256 ->Set(env.local(), v8_str("fun_instance"), fun_instance) in THREADED_TEST()
259 ->Set(env.local(), v8_str("sub_fun_instance"), sub_fun_instance) in THREADED_TEST()
324 obj->Get(env.local(), v8_str("foo")).ToLocalChecked(); in THREADED_TEST()
326 Local<String> bar_str = v8_str("bar"); in THREADED_TEST()
327 CHECK(obj->Set(env.local(), v8_str("foo"), bar_str).FromJust()); in THREADED_TEST()
329 obj->Get(env.local(), v8_str("foo")).ToLocalChecked(); in THREADED_TEST()
342 Local<String> bar_str = v8_str("bar"); in THREADED_TEST()
350 CHECK(v8_str("a") in THREADED_TEST()
353 CHECK(v8_str("b") in THREADED_TEST()
529 Local<String> source = v8_str(c_source); in THREADED_TEST()
603 Local<String> small_string = v8_str("s1"); in TEST()
616 Local<String> large_string = v8_str(buf); in TEST()
882 Local<String> left = v8_str(one_byte_string_1); in THREADED_TEST()
902 right = v8_str(one_byte_string_2); in THREADED_TEST()
932 CHECK(global->Set(env.local(), v8_str("pi"), v8_num(3.1415926)).FromJust()); in THREADED_TEST()
933 Local<Value> pi = global->Get(env.local(), v8_str("pi")).ToLocalChecked(); in THREADED_TEST()
942 info.GetReturnValue().Set(v8_str("bad value")); in handle_callback_impl()
962 ->Set(info.GetIsolate()->GetCurrentContext(), v8_str("x"), v8_num(1)) in construct_callback()
966 ->Set(info.GetIsolate()->GetCurrentContext(), v8_str("y"), v8_num(2)) in construct_callback()
968 info.GetReturnValue().Set(v8_str("bad value")); in construct_callback()
977 info.GetReturnValue().Set(v8_str("bad value")); in Return239Callback()
994 CHECK(env->Global()->Set(env.local(), v8_str("obj"), fun).FromJust()); in TestFunctionTemplateInitializer()
1010 CHECK(env->Global()->Set(env.local(), v8_str("obj"), fun).FromJust()); in TestFunctionTemplateInitializer()
1027 fun_templ->SetClassName(v8_str("funky")); in TestFunctionTemplateAccessor()
1028 fun_templ->InstanceTemplate()->SetAccessor(v8_str("m"), accessor); in TestFunctionTemplateAccessor()
1030 CHECK(env->Global()->Set(env.local(), v8_str("obj"), fun).FromJust()); in TestFunctionTemplateAccessor()
1033 CHECK(v8_str("[object funky]")->Equals(env.local(), result).FromJust()); in TestFunctionTemplateAccessor()
1074 ->Set(env.local(), v8_str("callback_object"), object) in TestSimpleCallback()
1185 ->Set(env.local(), v8_str("callback_object"), object) in TestFastReturnValues()
1272 CHECK(env->Global()->Set(env.local(), v8_str("obj"), fun).FromJust()); in THREADED_TEST()
1281 CHECK(env->Global()->Set(env.local(), v8_str("obj"), fun).FromJust()); in THREADED_TEST()
1290 CHECK(env->Global()->Set(env.local(), v8_str("obj"), fun).FromJust()); in THREADED_TEST()
1313 CHECK(obj->Set(env.local(), v8_str("func"), in TestExternalPointerWrapping()
1318 CHECK(env->Global()->Set(env.local(), v8_str("obj"), obj).FromJust()); in TestExternalPointerWrapping()
1401 derived_instance2->Set(env.local(), v8_str("__proto__"), derived_instance) in THREADED_TEST()
1403 CHECK(other_instance->Set(env.local(), v8_str("__proto__"), derived_instance2) in THREADED_TEST()
1804 Local<String> str = v8_str("3.1415926"); in THREADED_TEST()
1820 ->Set(env.local(), v8_str("property"), in THREADED_TEST()
1824 ->Get(env.local(), v8_str("property")) in THREADED_TEST()
1843 v8::Local<String> str1 = v8_str(""); in THREADED_TEST()
1845 v8::Local<String> str2 = v8_str("x"); in THREADED_TEST()
1881 templ->SetAccessor(v8_str("m"), GetM); in THREADED_TEST()
1895 v8::Local<v8::String> class_name = v8_str("the_class_name"); in THREADED_TEST()
1904 CHECK(env->Global()->Set(env.local(), v8_str("p"), instance1).FromJust()); in THREADED_TEST()
1922 CHECK(env->Global()->Set(env.local(), v8_str("q"), instance2).FromJust()); in THREADED_TEST()
1968 super->InstanceTemplate()->SetAccessor(v8_str("knurd"), GetKnurd); in THREADED_TEST()
1981 ->Set(env.local(), v8_str("s"), in THREADED_TEST()
1985 ->Set(env.local(), v8_str("base1"), in THREADED_TEST()
1989 ->Set(env.local(), v8_str("base2"), in THREADED_TEST()
2018 ->Set(env.local(), v8_str("obj"), base1->GetFunction(env.local()) in THREADED_TEST()
2050 ->Set(env.local(), v8_str("obj2"), base2->GetFunction(env.local()) in THREADED_TEST()
2094 String::Concat(v8_str("accessor_"), name)) in SimpleAccessorGetter()
2102 String::Concat(v8_str("accessor_"), name), value) in SimpleAccessorSetter()
2149 i::Handle<i::String> name(v8::Utils::OpenHandle(*v8_str("length"))); in THREADED_TEST()
2173 ->Get(context, v8_str("depth")) in CallScriptRecursivelyCall()
2179 ->Set(context, v8_str("depth"), in CallScriptRecursivelyCall()
2192 ->Get(context, v8_str("depth")) in CallFunctionRecursivelyCall()
2201 ->Set(context, v8_str("depth"), in CallFunctionRecursivelyCall()
2206 ->Get(context, v8_str("callFunctionRecursively")) in CallFunctionRecursivelyCall()
2218 global->Set(v8_str("callScriptRecursively"), in THREADED_TEST()
2220 global->Set(v8_str("callFunctionRecursively"), in THREADED_TEST()
2225 ->Set(env.local(), v8_str("depth"), v8::Integer::New(isolate, 0)) in THREADED_TEST()
2232 ->Set(env.local(), v8_str("depth"), v8::Integer::New(isolate, 0)) in THREADED_TEST()
2264 ->Set(env.local(), v8_str("obj"), in THREADED_TEST()
2269 CHECK(v8_str("otto")->Equals(env.local(), otto).FromJust()); in THREADED_TEST()
2272 CHECK(v8_str("netto")->Equals(env.local(), netto).FromJust()); in THREADED_TEST()
2280 Foo->PrototypeTemplate()->Set(v8_str("plak"), v8_num(321)); in THREADED_TEST()
2283 ->Set(env.local(), v8_str("Foo"), in THREADED_TEST()
2330 CHECK(global->Set(env.local(), 0, v8_str("value")).FromJust()); in THREADED_TEST()
2429 CheckEmbedderData(&env, 3, v8_str("The quick brown fox jumps")); in THREADED_TEST()
2430 CheckEmbedderData(&env, 2, v8_str("over the lazy dog.")); in THREADED_TEST()
2489 ->Set(env.local(), v8_str("global"), global_proxy) in GlobalProxyIdentityHash()
2553 Local<v8::String> str = v8_str("str1"); in TEST()
2561 Local<v8::String> str2 = v8_str("str1"); in TEST()
2574 v8::Local<v8::Symbol> sym2 = v8::Symbol::New(isolate, v8_str("my-symbol")); in THREADED_TEST()
2575 v8::Local<v8::Symbol> sym3 = v8::Symbol::New(isolate, v8_str("sym3")); in THREADED_TEST()
2593 CHECK(sym2->Name()->Equals(env.local(), v8_str("my-symbol")).FromJust()); in THREADED_TEST()
2639 CHECK(obj->Set(env.local(), v8_str("bla"), v8::Integer::New(isolate, 20)) in THREADED_TEST()
2657 CHECK(obj->Get(env.local(), v8_str("accessor_sym3")) in THREADED_TEST()
2684 CHECK(obj->Has(env.local(), v8_str("accessor_sym3")).FromJust()); in THREADED_TEST()
2689 CHECK(obj->Has(env.local(), v8_str("accessor_sym3")).FromJust()); in THREADED_TEST()
2698 CHECK(obj->Get(env.local(), v8_str("accessor_sym3")) in THREADED_TEST()
2717 CHECK(obj->Get(env.local(), v8_str("accessor_sym3")) in THREADED_TEST()
2755 v8::Private::New(isolate, v8_str("my-private")); in THREADED_TEST()
2849 v8::Private::New(isolate, v8_str("my-private")); in THREADED_TEST()
2940 v8::Local<String> name = v8_str("my-symbol"); in THREADED_TEST()
2955 env->Global()->Get(env.local(), v8_str("sym2")).ToLocalChecked(); in THREADED_TEST()
2971 env->Global()->Get(env.local(), v8_str("sym")).ToLocalChecked(); in CheckWellKnownSymbol()
2991 v8::Local<String> name = v8_str("my-private"); in THREADED_TEST()
3005 env->Global()->Get(env.local(), v8_str("intern")).ToLocalChecked(); in THREADED_TEST()
3050 CHECK(env->Global()->Set(env.local(), v8_str("ab"), ab).FromJust()); in THREADED_TEST()
3126 CHECK(env->Global()->Set(env.local(), v8_str("ab3"), ab3).FromJust()); in THREADED_TEST()
3326 CHECK(env->Global()->Set(env.local(), v8_str("ab"), ab).FromJust()); in THREADED_TEST()
3404 CHECK(env->Global()->Set(env.local(), v8_str("ab3"), ab3).FromJust()); in THREADED_TEST()
3431 v8::Private::ForApi(isolate, v8_str("api-test::hidden-key")); in THREADED_TEST()
3432 v8::Local<v8::String> empty = v8_str(""); in THREADED_TEST()
3433 v8::Local<v8::String> prop_name = v8_str("prop_name"); in THREADED_TEST()
3519 v8::Private::New(env->GetIsolate(), v8_str("hidden")); in THREADED_TEST()
3549 CHECK(env->Global()->Set(env.local(), v8_str("ext"), ext).FromJust()); in THREADED_TEST()
3581 global.Reset(isolate, v8_str("str")); in THREADED_TEST()
3590 global.Reset(isolate, v8_str("str")); in THREADED_TEST()
3605 global.Reset(isolate, v8_str("str")); in THREADED_TEST()
3616 global.Reset(isolate, v8_str("longer")); in THREADED_TEST()
3633 global.Reset(isolate, v8_str("str")); in THREADED_TEST()
3671 global.Reset(isolate, v8_str("str")); in THREADED_TEST()
4020 v8::Local<String> local = v8::Local<String>::New(isolate, v8_str("str")); in THREADED_TEST()
4036 global1.Reset(isolate, v8_str("str")); in THREADED_TEST()
4037 global2.Reset(isolate, v8_str("str2")); in THREADED_TEST()
4071 v8::Local<String>::New(CcTest::isolate(), v8_str("str")); in THREADED_TEST()
4235 g1s2.handle.Reset(iso, v8_str("foo1")); in THREADED_TEST()
4236 g1c1.handle.Reset(iso, v8_str("foo2")); in THREADED_TEST()
4245 g2s2.handle.Reset(iso, v8_str("foo3")); in THREADED_TEST()
4246 g2c1.handle.Reset(iso, v8_str("foo4")); in THREADED_TEST()
4502 ->Set(env.local(), v8_str("x"), Local<Value>::New(iso, g2s1.handle)) in TEST()
4507 ->Set(env.local(), v8_str("x"), Local<Value>::New(iso, g3s1.handle)) in TEST()
4512 ->Set(env.local(), v8_str("x"), Local<Value>::New(iso, g1s1.handle)) in TEST()
4540 ->Set(env.local(), v8_str("x"), Local<Value>::New(iso, g2s1.handle)) in TEST()
4545 ->Set(env.local(), v8_str("x"), Local<Value>::New(iso, g3s1.handle)) in TEST()
4550 ->Set(env.local(), v8_str("x"), Local<Value>::New(iso, g1s1.handle)) in TEST()
4586 ->Get(env.local(), v8_str("a")) in TEST()
4588 ->Equals(env.local(), v8_str("b")) in TEST()
4654 v8::Private::ForApi(CcTest::isolate(), v8_str("hidden key"))) in check_message_2()
4656 CHECK(v8_str("hidden value") in check_message_2()
4670 v8::Local<v8::Value> error = v8::Exception::Error(v8_str("custom error")); in TEST()
4673 v8::Private::ForApi(CcTest::isolate(), v8_str("hidden key")), in TEST()
4674 v8_str("hidden value")) in TEST()
4677 ->Set(context.local(), v8_str("error"), error) in TEST()
4712 v8_str("6.75"), v8::Integer::New(isolate, 1), in TEST()
4714 v8::True(isolate), v8_str("7.40"), v8::True(isolate)); in TEST()
4716 Script::Compile(context.local(), v8_str("throw 'error'"), &origin) in TEST()
4744 v8::ScriptOrigin(v8_str("6.75"), v8::Integer::New(isolate, 1), in TEST()
4747 Script::Compile(context.local(), v8_str("throw 'error'"), &origin) in TEST()
4786 v8::ScriptOrigin(v8_str("6.75"), v8::Integer::New(isolate, 1), in TEST()
4789 Script::Compile(context.local(), v8_str("throw 'error'"), &origin1) in TEST()
4799 v8::ScriptOrigin(v8_str("6.75"), v8::Integer::New(isolate, 1), in TEST()
4801 script = Script::Compile(context.local(), v8_str("throw 'error'"), &origin2) in TEST()
4895 ->Set(context.local(), v8_str("foo"), v8_num(14)) in THREADED_TEST()
4898 ->Set(context.local(), v8_str("12"), v8_num(92)) in THREADED_TEST()
4920 ->Get(context.local(), v8_str("12")) in THREADED_TEST()
4935 ->Get(context.local(), v8_str("16")) in THREADED_TEST()
4950 ->Get(context.local(), v8_str("13")) in THREADED_TEST()
4966 Local<String> prop = v8_str("none"); in THREADED_TEST()
4972 prop = v8_str("read_only"); in THREADED_TEST()
4997 prop = v8_str("dont_delete"); in THREADED_TEST()
5016 prop = v8_str("dont_enum"); in THREADED_TEST()
5024 prop = v8_str("absent"); in THREADED_TEST()
5102 global->Set(v8_str("f"), v8::FunctionTemplate::New(isolate, HandleF)); in THREADED_TEST()
5187 context->Global()->Get(context.local(), v8_str("Foo")).ToLocalChecked()); in THREADED_TEST()
5190 ->Get(context.local(), v8_str("ReturnThisSloppy")) in THREADED_TEST()
5194 ->Get(context.local(), v8_str("ReturnThisStrict")) in THREADED_TEST()
5277 ReturnThisSloppy->Call(context.local(), v8_str("hello"), 0, NULL) in THREADED_TEST()
5280 CHECK(r4.As<v8::StringObject>()->ValueOf()->StrictEquals(v8_str("hello"))); in THREADED_TEST()
5300 ReturnThisStrict->Call(context.local(), v8_str("hello"), 0, NULL) in THREADED_TEST()
5302 CHECK(r9->StrictEquals(v8_str("hello"))); in THREADED_TEST()
5323 context->Global()->Get(context.local(), v8_str("Foo")).ToLocalChecked()); in THREADED_TEST()
5400 env->Global()->Get(env.local(), v8_str("obj")).ToLocalChecked(); in THREADED_TEST()
5410 obj = env->Global()->Get(env.local(), v8_str("obj")).ToLocalChecked(); in THREADED_TEST()
5418 obj = env->Global()->Get(env.local(), v8_str("obj")).ToLocalChecked(); in THREADED_TEST()
5424 obj = env->Global()->Get(env.local(), v8_str("obj")).ToLocalChecked(); in THREADED_TEST()
5431 obj = env->Global()->Get(env.local(), v8_str("obj")).ToLocalChecked(); in THREADED_TEST()
5438 obj = env->Global()->Get(env.local(), v8_str("obj")).ToLocalChecked(); in THREADED_TEST()
5444 obj = env->Global()->Get(env.local(), v8_str("obj")).ToLocalChecked(); in THREADED_TEST()
5459 env->Global()->Get(env.local(), v8_str("obj")).ToLocalChecked(); in THREADED_TEST()
5464 obj = env->Global()->Get(env.local(), v8_str("obj")).ToLocalChecked(); in THREADED_TEST()
5469 obj = env->Global()->Get(env.local(), v8_str("obj")).ToLocalChecked(); in THREADED_TEST()
5474 obj = env->Global()->Get(env.local(), v8_str("obj")).ToLocalChecked(); in THREADED_TEST()
5479 obj = env->Global()->Get(env.local(), v8_str("obj")).ToLocalChecked(); in THREADED_TEST()
5484 obj = env->Global()->Get(env.local(), v8_str("obj")).ToLocalChecked(); in THREADED_TEST()
5489 obj = env->Global()->Get(env.local(), v8_str("obj")).ToLocalChecked(); in THREADED_TEST()
5494 obj = env->Global()->Get(env.local(), v8_str("obj")).ToLocalChecked(); in THREADED_TEST()
5499 obj = env->Global()->Get(env.local(), v8_str("obj")).ToLocalChecked(); in THREADED_TEST()
5522 env->Global()->Get(env.local(), v8_str("obj")).ToLocalChecked(); in THREADED_TEST()
5561 args.GetIsolate()->ThrowException(v8_str("konto")); in ThrowFromC()
5585 templ->Set(v8_str("ThrowFromC"), in THREADED_TEST()
5596 ->Get(context.local(), v8_str("thrown")) in THREADED_TEST()
5606 templ->Set(v8_str("ThrowFromC"), in THREADED_TEST()
5626 templ->Set(v8_str("CCatcher"), v8::FunctionTemplate::New(isolate, CCatcher)); in TEST()
5645 v8_str(uncaught_error)) in check_custom_error_tostring()
5674 v8_str(uncaught_error)) in check_custom_error_message()
5727 v8_str(uncaught_error)) in check_custom_rethrowing_message()
5759 templ->Set(v8_str("ThrowFromC"), in TEST()
5774 templ->Set(v8_str("ThrowFromC"), in TEST()
5806 templ->Set(v8_str("ThrowFromC"), in THREADED_TEST()
5826 args.GetIsolate()->ThrowException(v8_str("FromC")); in CThrowCountDown()
5831 global->Get(context, v8_str("JSThrowCountDown")).ToLocalChecked(); in CThrowCountDown()
5913 templ->Set(v8_str("check"), v8::FunctionTemplate::New(isolate, JSCheck)); in TEST()
5914 templ->Set(v8_str("CThrowCountDown"), in TEST()
5937 ->Get(context.local(), v8_str("JSThrowCountDown")) in TEST()
5980 templ->Set(v8_str("Throw"), v8::FunctionTemplate::New(isolate, ThrowValue)); in THREADED_TEST()
6066 ->Set(context.local(), v8_str("native_with_try_catch"), in THREADED_TEST()
6091 CcTest::isolate()->ThrowException(v8_str("E1")); in TryCatchNested1Helper()
6168 templ->Set(v8_str("TryCatchMixedNestingHelper"), in TEST()
6179 args.GetIsolate()->ThrowException(v8_str("boom")); in TryCatchNativeHelper()
6190 templ->Set(v8_str("TryCatchNativeHelper"), in TEST()
6202 args.GetIsolate()->ThrowException(v8_str("boom")); in TryCatchNativeResetHelper()
6215 templ->Set(v8_str("TryCatchNativeResetHelper"), in TEST()
6228 CHECK(v8_str("a")->Equals(context.local(), v8_str("a")).FromJust()); in THREADED_TEST()
6229 CHECK(!v8_str("a")->Equals(context.local(), v8_str("b")).FromJust()); in THREADED_TEST()
6231 CHECK(v8_str("a")->Equals(context.local(), v8_str("a")).FromJust()); in THREADED_TEST()
6232 CHECK(!v8_str("a")->Equals(context.local(), v8_str("b")).FromJust()); in THREADED_TEST()
6238 CHECK(v8_str("a")->StrictEquals(v8_str("a"))); in THREADED_TEST()
6239 CHECK(!v8_str("a")->StrictEquals(v8_str("b"))); in THREADED_TEST()
6240 CHECK(!v8_str("5")->StrictEquals(v8_num(5))); in THREADED_TEST()
6254 CHECK(v8_str("a")->SameValue(v8_str("a"))); in THREADED_TEST()
6255 CHECK(!v8_str("a")->SameValue(v8_str("b"))); in THREADED_TEST()
6256 CHECK(!v8_str("5")->SameValue(v8_num(5))); in THREADED_TEST()
6280 ->Equals(CcTest::isolate()->GetCurrentContext(), v8_str("donut")) in GetXValue()
6282 CHECK(name->Equals(CcTest::isolate()->GetCurrentContext(), v8_str("x")) in GetXValue()
6293 templ->SetAccessor(v8_str("x"), GetXValue, NULL, v8_str("donut")); in THREADED_TEST()
6295 ->Set(context.local(), v8_str("obj"), in THREADED_TEST()
6301 CHECK(result->Equals(context.local(), v8_str("x")).FromJust()); in THREADED_TEST()
6311 templ->SetAccessor(v8_str("x"), GetXValue, NULL, v8_str("donut")); in THREADED_TEST()
6313 ->Set(context.local(), v8_str("obj"), in THREADED_TEST()
6363 templ->SetAccessor(v8_str("x"), GetXValue, NULL, v8_str("donut")); in THREADED_TEST()
6366 ->Set(context.local(), v8_str("obj"), in THREADED_TEST()
6414 ->Get(CcTest::isolate()->GetCurrentContext(), v8_str(name)) in GetGlobalProperty()
6426 ->Set(context.local(), v8_str("obj1"), in THREADED_TEST()
6435 ->SetAccessor(context.local(), v8_str("x"), GetXValue, NULL, in THREADED_TEST()
6436 v8_str("donut")) in THREADED_TEST()
6443 ->SetAccessor(context.local(), v8_str("x"), GetXValue, NULL, in THREADED_TEST()
6444 v8_str("donut")) in THREADED_TEST()
6471 ->SetAccessor(context.local(), v8_str("x"), GetXValue, NULL, in THREADED_TEST()
6472 v8_str("donut")) in THREADED_TEST()
6475 ->SetAccessor(context.local(), v8_str("x"), GetXValue, NULL, in THREADED_TEST()
6476 v8_str("donut")) in THREADED_TEST()
6499 ->SetAccessor(context.local(), v8_str("x"), GetXValue, NULL, in THREADED_TEST()
6500 v8_str("donut")) in THREADED_TEST()
6503 ->SetAccessor(context.local(), v8_str("x"), GetXValue, NULL, in THREADED_TEST()
6504 v8_str("donut")) in THREADED_TEST()
6519 ->Set(context.local(), v8_str("obj1"), in THREADED_TEST()
6525 ->SetAccessor(context.local(), v8_str("x"), GetXValue, NULL, in THREADED_TEST()
6526 v8_str("donut"), v8::DEFAULT, v8::DontDelete) in THREADED_TEST()
6529 ->SetAccessor(context.local(), v8_str("x"), GetXValue, NULL, in THREADED_TEST()
6530 v8_str("donut"), v8::DEFAULT, v8::DontDelete) in THREADED_TEST()
6540 ->SetAccessor(context.local(), v8_str("x"), GetXValue, NULL, in THREADED_TEST()
6541 v8_str("donut")) in THREADED_TEST()
6544 ->SetAccessor(context.local(), v8_str("x"), GetXValue, NULL, in THREADED_TEST()
6545 v8_str("donut")) in THREADED_TEST()
6575 ->Equals(info.GetIsolate()->GetCurrentContext(), v8_str("donut")) in Get239Value()
6577 CHECK(name->Equals(info.GetIsolate()->GetCurrentContext(), v8_str("239")) in Get239Value()
6590 ->Set(context.local(), v8_str("obj1"), in THREADED_TEST()
6596 ->SetAccessor(context.local(), v8_str("239"), Get239Value, NULL, in THREADED_TEST()
6597 v8_str("donut")) in THREADED_TEST()
6600 ->SetAccessor(context.local(), v8_str("239"), Get239Value, NULL, in THREADED_TEST()
6601 v8_str("donut")) in THREADED_TEST()
6618 CHECK(info.Data()->Equals(context, v8_str("donut")).FromJust()); in SetXValue()
6619 CHECK(name->Equals(context, v8_str("x")).FromJust()); in SetXValue()
6629 templ->SetAccessor(v8_str("x"), GetXValue, SetXValue, v8_str("donut")); in THREADED_TEST()
6632 ->Set(context.local(), v8_str("obj"), in THREADED_TEST()
6652 templ->SetAccessor(v8_str("x"), NULL, SetXValue, v8_str("donut")); in THREADED_TEST()
6655 ->Set(context.local(), v8_str("obj"), in THREADED_TEST()
6675 templ->SetAccessor(v8_str("x"), static_cast<v8::AccessorGetterCallback>(NULL), in THREADED_TEST()
6676 NULL, v8_str("donut")); in THREADED_TEST()
6679 ->Set(context.local(), v8_str("obj"), in THREADED_TEST()
6693 templ->Set(v8_str("dummy"), in THREADED_TEST()
6696 Local<String> password = v8_str("Password"); in THREADED_TEST()
6702 CHECK(global0->Set(context0.local(), v8_str("custom"), v8_num(1234)) in THREADED_TEST()
6704 CHECK_EQ(1234, global0->Get(context0.local(), v8_str("custom")) in THREADED_TEST()
6713 CHECK(global1->Set(context1.local(), v8_str("custom"), v8_num(1234)) in THREADED_TEST()
6716 CHECK_EQ(1234, global0->Get(context1.local(), v8_str("custom")) in THREADED_TEST()
6720 CHECK_EQ(1234, global1->Get(context1.local(), v8_str("custom")) in THREADED_TEST()
6730 CHECK_EQ(0, global1->Get(context2.local(), v8_str("custom")) in THREADED_TEST()
6734 CHECK_EQ(0, global2->Get(context2.local(), v8_str("custom")) in THREADED_TEST()
6749 v8::Local<v8::Object> object0 = global0->Get(env0.local(), v8_str("Object")) in THREADED_TEST()
6753 object0->Get(env0.local(), v8_str("toString")) in THREADED_TEST()
6757 tostring0->Get(env0.local(), v8_str("__proto__")) in THREADED_TEST()
6760 CHECK(proto0->Set(env0.local(), v8_str("custom"), v8_num(1234)).FromJust()); in THREADED_TEST()
6764 v8::Local<v8::Object> object1 = global1->Get(env1.local(), v8_str("Object")) in THREADED_TEST()
6768 object1->Get(env1.local(), v8_str("toString")) in THREADED_TEST()
6772 tostring1->Get(env1.local(), v8_str("__proto__")) in THREADED_TEST()
6775 CHECK(!proto1->Has(env1.local(), v8_str("custom")).FromJust()); in THREADED_TEST()
6788 Local<String> source = v8_str( in THREADED_TEST()
6822 env->Global()->Set(env.local(), v8_str("undetectable"), obj).FromJust()); in THREADED_TEST()
6870 env->Global()->Set(env.local(), v8_str("undetectable"), obj).FromJust()); in THREADED_TEST()
6920 env->Global()->Set(env.local(), v8_str("undetectable"), obj).FromJust()); in THREADED_TEST()
6922 Local<String> source = v8_str( in THREADED_TEST()
6934 source = v8_str("Object.preventExtensions(undetectable);"); in THREADED_TEST()
6939 source = v8_str("undetectable.y = 2000;"); in THREADED_TEST()
6952 Local<String> str = v8_str("foo"); in TEST()
6974 global_template->Set(v8_str("JSNI_Log"), in THREADED_TEST()
7287 v8_str(expected) in CheckDependencies()
7289 ->Get(context.local(), v8_str("loaded")) in CheckDependencies()
7321 v8_str("undefinedACBDE") in THREADED_TEST()
7323 ->Get(context.local(), v8_str("loaded")) in THREADED_TEST()
7344 ->Set(args.GetIsolate()->GetCurrentContext(), v8_str("data"), in CallFun()
7366 if (name->Equals(isolate->GetCurrentContext(), v8_str("A")).FromJust()) { in GetNativeFunctionTemplate()
7369 } else if (name->Equals(isolate->GetCurrentContext(), v8_str("B")) in GetNativeFunctionTemplate()
7373 } else if (name->Equals(isolate->GetCurrentContext(), v8_str("C")) in GetNativeFunctionTemplate()
7503 a->Set(context, v8_str("x"), b).FromJust(); in IndependentWeakHandle()
7504 b->Set(context, v8_str("x"), a).FromJust(); in IndependentWeakHandle()
7514 a->Set(context, v8_str("y"), big_array).FromJust(); in IndependentWeakHandle()
7797 global->Set(v8_str("f"), in THREADED_TEST()
7801 ->Get(context.local(), v8_str("f")) in THREADED_TEST()
7820 ->Equals(context, global->Get(context, v8_str("o1")).ToLocalChecked()) in PGetter()
7822 if (name->Equals(context, v8_str("p1")).FromJust()) { in PGetter()
7825 global->Get(context, v8_str("o1")).ToLocalChecked()) in PGetter()
7827 } else if (name->Equals(context, v8_str("p2")).FromJust()) { in PGetter()
7830 global->Get(context, v8_str("o2")).ToLocalChecked()) in PGetter()
7832 } else if (name->Equals(context, v8_str("p3")).FromJust()) { in PGetter()
7835 global->Get(context, v8_str("o3")).ToLocalChecked()) in PGetter()
7837 } else if (name->Equals(context, v8_str("p4")).FromJust()) { in PGetter()
7840 global->Get(context, v8_str("o4")).ToLocalChecked()) in PGetter()
7850 ->Set(context.local(), v8_str("o1"), in RunHolderTest()
7873 ->Equals(context, global->Get(context, v8_str("o1")).ToLocalChecked()) in PGetter2()
7875 if (name->Equals(context, v8_str("p1")).FromJust()) { in PGetter2()
7878 global->Get(context, v8_str("o1")).ToLocalChecked()) in PGetter2()
7880 } else if (name->Equals(context, v8_str("p2")).FromJust()) { in PGetter2()
7883 global->Get(context, v8_str("o2")).ToLocalChecked()) in PGetter2()
7885 } else if (name->Equals(context, v8_str("p3")).FromJust()) { in PGetter2()
7888 global->Get(context, v8_str("o3")).ToLocalChecked()) in PGetter2()
7890 } else if (name->Equals(context, v8_str("p4")).FromJust()) { in PGetter2()
7893 global->Get(context, v8_str("o4")).ToLocalChecked()) in PGetter2()
7903 obj->SetAccessor(v8_str("p1"), PGetter); in THREADED_TEST()
7904 obj->SetAccessor(v8_str("p2"), PGetter); in THREADED_TEST()
7905 obj->SetAccessor(v8_str("p3"), PGetter); in THREADED_TEST()
7906 obj->SetAccessor(v8_str("p4"), PGetter); in THREADED_TEST()
7928 templ->SetAccessor(v8_str("t"), PGetter2); in THREADED_TEST()
7931 ->Set(context.local(), v8_str("o"), in THREADED_TEST()
7939 ->Get(context.local(), v8_str("o")) in THREADED_TEST()
7943 context->Global()->Set(context.local(), v8_str("o2"), obj).FromJust()); in THREADED_TEST()
7946 CHECK(context->Global()->Set(context.local(), v8_str("o"), obj).FromJust()); in THREADED_TEST()
7986 v8::Local<String> str = v8_str("abcde"); in THREADED_TEST()
7988 v8::Local<String> str2 = v8_str("abc\303\260\342\230\203"); in THREADED_TEST()
8029 Local<String> left_tree = global->Get(context.local(), v8_str("left")) in THREADED_TEST()
8032 Local<String> right_tree = global->Get(context.local(), v8_str("right")) in THREADED_TEST()
8311 context->Global()->Get(context.local(), v8_str(name)).ToLocalChecked()); in Utf16Helper()
8314 ->Get(context.local(), v8_str(lengths_name)) in Utf16Helper()
8438 global->Get(context.local(), v8_str("sym0")).ToLocalChecked(); in THREADED_TEST()
8440 global->Get(context.local(), v8_str("sym0b")).ToLocalChecked(); in THREADED_TEST()
8442 global->Get(context.local(), v8_str("sym1")).ToLocalChecked(); in THREADED_TEST()
8444 global->Get(context.local(), v8_str("sym2")).ToLocalChecked(); in THREADED_TEST()
8446 global->Get(context.local(), v8_str("sym3")).ToLocalChecked(); in THREADED_TEST()
8448 global->Get(context.local(), v8_str("sym4")).ToLocalChecked(); in THREADED_TEST()
8514 v8::Local<String> str = v8_str("42"); in THREADED_TEST()
8519 str = v8_str("42asdf"); in THREADED_TEST()
8522 str = v8_str("-42"); in THREADED_TEST()
8525 str = v8_str("4294967294"); in THREADED_TEST()
8548 v8::Local<String> foo = v8_str("foo"); in THREADED_TEST()
8549 v8::Local<String> message = v8_str("message"); in THREADED_TEST()
8590 v8::Local<String> foo = v8_str("foo"); in ThrowV8Exception()
8591 v8::Local<String> message = v8_str("message"); in ThrowV8Exception()
8608 v8::Local<String> foo_str = v8_str("foo"); in THREADED_TEST()
8609 v8::Local<String> message_str = v8_str("message"); in THREADED_TEST()
8616 CHECK(global->Set(context.local(), v8_str("throwV8Exception"), in THREADED_TEST()
8721 obj->SetAccessor(v8_str("y"), YGetter, YSetter); in THREADED_TEST()
8726 ->Set(context.local(), v8_str("holder"), holder) in THREADED_TEST()
8744 ? arg_this->Get(context, v8_str("trouble_callee")).ToLocalChecked() in TroubleCallback()
8745 : arg_this->Get(context, v8_str("trouble_caller")).ToLocalChecked(); in TroubleCallback()
8772 CHECK(global->Set(env.local(), v8_str("trouble"), in TEST()
8785 global->Get(env.local(), v8_str("trouble")).ToLocalChecked(); in TEST()
8788 global->Get(env.local(), v8_str("trouble_callee")).ToLocalChecked(); in TEST()
8791 global->Get(env.local(), v8_str("trouble_caller")).ToLocalChecked(); in TEST()
8853 CHECK(global->Set(env.local(), v8_str("trouble"), in TEST()
8864 global->Get(env.local(), v8_str("trouble")).ToLocalChecked(); in TEST()
8915 templ->Set(v8_str("CEvaluate"), in TEST()
8963 CHECK(global0->Set(context0, v8_str("0"), v8_num(999)).FromJust()); in TEST()
8965 global0->Get(context0, v8_str("foo")).ToLocalChecked(); in TEST()
8967 v8::Local<Value> z0 = global0->Get(context0, v8_str("0")).ToLocalChecked(); in TEST()
8977 global1->Set(context1, v8_str("othercontext"), global0).FromJust(); in TEST()
8985 global0->Get(context1, v8_str("foo")).ToLocalChecked(); in TEST()
8988 v8::Local<Value> z1 = global0->Get(context1, v8_str("0")).ToLocalChecked(); in TEST()
8996 CHECK(global2->Set(context2.local(), v8_str("othercontext"), global0) in TEST()
9002 global0->Get(context2.local(), v8_str("foo")).ToLocalChecked(); in TEST()
9005 global0->Get(context2.local(), v8_str("0")).ToLocalChecked(); in TEST()
9019 Local<Value> foo = v8_str("foo"); in THREADED_TEST()
9020 Local<Value> bar = v8_str("bar"); in THREADED_TEST()
9028 env1->Global()->Get(env1.local(), v8_str("spy")).ToLocalChecked(); in THREADED_TEST()
9034 env1->Global()->Get(env1.local(), v8_str("spy2")).ToLocalChecked(); in THREADED_TEST()
9071 other->Global()->Get(other, v8_str("Object")).ToLocalChecked(); in THREADED_TEST()
9076 ->Set(current.local(), v8_str("other"), other->Global()) in THREADED_TEST()
9115 ->Set(other, v8_str("__proto__"), current->Global()) in THREADED_TEST()
9122 ->Set(current.local(), v8_str("foo"), v8_num(100)) in THREADED_TEST()
9159 ->Set(context, v8_str("obj"), in TEST()
9171 ->Equals(context, v8_str("1002")) in TEST()
9182 Local<Value> foo = v8_str("foo"); in THREADED_TEST()
9183 Local<Value> bar = v8_str("bar"); in THREADED_TEST()
9190 env1->Global()->Set(env1.local(), v8_str("prop"), v8_num(3)).FromJust()); in THREADED_TEST()
9191 CHECK(env2->Global()->Set(env2, v8_str("env1"), env1->Global()).FromJust()); in THREADED_TEST()
9204 env1->Global()->Get(env1.local(), v8_str("prop")).ToLocalChecked(); in THREADED_TEST()
9215 Local<Value> foo = v8_str("foo"); in THREADED_TEST()
9216 Local<Value> bar = v8_str("bar"); in THREADED_TEST()
9223 env1->Global()->Set(env1.local(), v8_str("prop"), v8_num(3)).FromJust()); in THREADED_TEST()
9224 CHECK(env2->Global()->Set(env2, v8_str("env1"), env1->Global()).FromJust()); in THREADED_TEST()
9227 Local<String> test = v8_str("propertyIsEnumerable.call(env1, 'prop')"); in THREADED_TEST()
9249 Local<Value> foo = v8_str("foo"); in THREADED_TEST()
9250 Local<Value> bar = v8_str("bar"); in THREADED_TEST()
9257 env1->Global()->Set(env1.local(), v8_str("prop"), v8_num(3)).FromJust()); in THREADED_TEST()
9258 CHECK(env2->Global()->Set(env2, v8_str("env1"), env1->Global()).FromJust()); in THREADED_TEST()
9288 Local<Value> foo = v8_str("foo"); in THREADED_TEST()
9289 Local<Value> bar = v8_str("bar"); in THREADED_TEST()
9296 env1->Global()->Set(env1.local(), v8_str("prop"), v8_num(3)).FromJust()); in THREADED_TEST()
9297 CHECK(env2->Global()->Set(env2, v8_str("env1"), env1->Global()).FromJust()); in THREADED_TEST()
9329 Local<Value> foo = v8_str("foo"); in TEST()
9340 CHECK(global2->Set(env2, v8_str("prop"), in TEST()
9346 ->Set(env1.local(), v8_str("getProp"), in TEST()
9347 global2->Get(env2, v8_str("getProp")).ToLocalChecked()) in TEST()
9356 env3->SetSecurityToken(v8_str("bar")); in TEST()
9361 CHECK(global3->Get(env3, v8_str("prop")).ToLocalChecked()->IsUndefined()); in TEST()
9362 CHECK(global3->Get(env3, v8_str("getProp")).ToLocalChecked()->IsUndefined()); in TEST()
9363 CHECK(global3->Set(env3, v8_str("prop"), in TEST()
9366 CHECK(global3->Set(env3, v8_str("prop2"), in TEST()
9375 global1->Get(env1.local(), v8_str("getProp")).ToLocalChecked(); in TEST()
9387 v8::MaybeLocal<Value> r = global3->Get(env1.local(), v8_str("prop2")); in TEST()
9400 Local<Value> foo = v8_str("foo"); in TEST()
9410 ->Set(env2, v8_str("p"), v8::Integer::New(env2->GetIsolate(), 42)) in TEST()
9416 ->Set(env1.local(), v8_str("other"), env2->Global()) in TEST()
9445 ->Set(env3, v8_str("p"), v8::Integer::New(env3->GetIsolate(), 24)) in TEST()
9455 env3->SetSecurityToken(v8_str("bar")); in TEST()
9468 context->Global()->Get(context, v8_str("x")).ToLocalChecked()); in GetThisX()
9480 v8_str("this_x"), FunctionTemplate::New(env1->GetIsolate(), GetThisX)); in TEST()
9484 Local<Value> foo = v8_str("foo"); in TEST()
9491 ->Set(env1.local(), v8_str("x"), v8_str("env1_x")) in TEST()
9496 CHECK(env2->Global()->Set(env2, v8_str("x"), v8_str("env2_x")).FromJust()); in TEST()
9502 ->Set(env1.local(), v8_str("bound_x"), CompileRun("bound_x")) in TEST()
9505 ->Set(env1.local(), v8_str("get_x"), CompileRun("get_x")) in TEST()
9508 ->Set(env1.local(), v8_str("get_x_w"), CompileRun("get_x_w")) in TEST()
9511 ->Set(env1.local(), v8_str("this_x"), in TEST()
9521 CHECK(v8_str("env2_x")->Equals(env1.local(), result).FromJust()); in TEST()
9527 CHECK(v8_str("env2_x")->Equals(env1.local(), result).FromJust()); in TEST()
9535 CHECK(env2->Global()->Set(env2, v8_str("x"), v8_str("env3_x")).FromJust()); in TEST()
9536 CHECK(env2->Global()->Set(env2, v8_str("env1"), env1->Global()).FromJust()); in TEST()
9549 CHECK(v8_str("env2_x") in TEST()
9552 CHECK(v8_str("env1_x") in TEST()
9555 CHECK(v8_str("env3_x") in TEST()
9558 CHECK(v8_str("env2_x") in TEST()
9576 CHECK(v8_str("env2_x") in TEST()
9580 CHECK(v8_str("env3_x") in TEST()
9584 CHECK(v8_str("env3_x") in TEST()
9588 CHECK(v8_str("env2_x") in TEST()
9606 CHECK(v8_str("env2_x") in TEST()
9610 CHECK(v8_str("env1_x") in TEST()
9614 CHECK(v8_str("env3_x") in TEST()
9618 CHECK(v8_str("env2_x") in TEST()
9683 v8_str("accessible_prop"), EchoGetter, EchoSetter, v8::Local<Value>(), in TEST()
9688 global_template->SetAccessor(v8_str("blocked_prop"), UnreachableGetter, in TEST()
9693 v8_str("blocked_js_prop"), in TEST()
9712 global0->Get(context0, v8_str("getter")).ToLocalChecked(); in TEST()
9714 global0->Get(context0, v8_str("setter")).ToLocalChecked(); in TEST()
9717 CHECK(global0->Set(context0, 239, v8_str("239")).FromJust()); in TEST()
9726 global0->Get(context0, v8_str("el_getter")).ToLocalChecked(); in TEST()
9728 global0->Get(context0, v8_str("el_setter")).ToLocalChecked(); in TEST()
9736 CHECK(global1->Set(context1, v8_str("other"), global0).FromJust()); in TEST()
9836 CHECK(global1->Set(context1, v8_str("checked_object"), in TEST()
9860 v8_str("accessible_prop"), EchoGetter, EchoSetter, v8::Local<Value>(), in TEST()
9865 global_template->SetAccessor(v8_str("blocked_prop"), UnreachableGetter, in TEST()
9878 CHECK(global1->Set(context1, v8_str("other"), global0).FromJust()); in TEST()
9935 obj_template->Set(v8_str("x"), v8::Integer::New(isolate, 42)); in THREADED_TEST()
9940 v8_str("accessible_prop"), EchoGetter, EchoSetter, v8::Local<Value>(), in THREADED_TEST()
9955 CHECK(global1->Set(context1, v8_str("other"), global0).FromJust()); in THREADED_TEST()
9956 CHECK(global1->Set(context1, v8_str("object"), in THREADED_TEST()
9989 ->Set(env.local(), v8_str("prohibited"), in TEST()
10028 proto_template->SetAccessor(v8_str("accessible"), ConstTenGetter, 0, in THREADED_TEST()
10032 global_template->SetAccessor(v8_str("unreachable"), UnreachableGetter, 0, in THREADED_TEST()
10040 CHECK(global->Set(context0, v8_str("accessible"), v8_num(11)).FromJust()); in THREADED_TEST()
10048 CHECK(global1->Set(context1, v8_str("other"), global).FromJust()); in THREADED_TEST()
10101 CHECK(global1->Set(context1, v8_str("obj"), object).FromJust()); in TEST()
10209 instance->Set(v8_str("x"), v8_num(42)); in THREADED_TEST()
10210 instance->Set(v8_str("f"), in THREADED_TEST()
10218 CHECK(context->Global()->Set(context.local(), v8_str("i"), o).FromJust()); in THREADED_TEST()
10243 instance_template->Set(v8_str("x"), v8_num(42)); in THREADED_TEST()
10244 instance_template->Set(v8_str("f"), in THREADED_TEST()
10326 CHECK(env->Global()->Set(env.local(), v8_str("foo"), foo).FromJust()); in THREADED_TEST()
10385 proto->Set(v8_str("f"), in THREADED_TEST()
10389 proto->Set(v8_str("x"), v8_num(12)); in THREADED_TEST()
10391 instance->SetAccessor(v8_str("y"), ShadowYGetter, ShadowYSetter); in THREADED_TEST()
10398 ->Set(context.local(), v8_str("__proto__"), o) in THREADED_TEST()
10426 t0->InstanceTemplate()->Set(v8_str("x"), v8_num(0)); in THREADED_TEST()
10429 t1->InstanceTemplate()->Set(v8_str("y"), v8_num(1)); in THREADED_TEST()
10432 t2->InstanceTemplate()->Set(v8_str("z"), v8_num(2)); in THREADED_TEST()
10434 t3->InstanceTemplate()->Set(v8_str("u"), v8_num(3)); in THREADED_TEST()
10454 CHECK_EQ(0, o0->Get(context.local(), v8_str("x")) in THREADED_TEST()
10458 CHECK(o0->Set(context.local(), v8_str("__proto__"), o1).FromJust()); in THREADED_TEST()
10459 CHECK_EQ(0, o0->Get(context.local(), v8_str("x")) in THREADED_TEST()
10463 CHECK_EQ(1, o0->Get(context.local(), v8_str("y")) in THREADED_TEST()
10467 CHECK(o0->Set(context.local(), v8_str("__proto__"), o2).FromJust()); in THREADED_TEST()
10468 CHECK_EQ(0, o0->Get(context.local(), v8_str("x")) in THREADED_TEST()
10472 CHECK_EQ(1, o0->Get(context.local(), v8_str("y")) in THREADED_TEST()
10476 CHECK_EQ(2, o0->Get(context.local(), v8_str("z")) in THREADED_TEST()
10480 CHECK(o0->Set(context.local(), v8_str("__proto__"), o3).FromJust()); in THREADED_TEST()
10481 CHECK_EQ(0, o0->Get(context.local(), v8_str("x")) in THREADED_TEST()
10485 CHECK_EQ(1, o0->Get(context.local(), v8_str("y")) in THREADED_TEST()
10489 CHECK_EQ(2, o0->Get(context.local(), v8_str("z")) in THREADED_TEST()
10493 CHECK_EQ(3, o0->Get(context.local(), v8_str("u")) in THREADED_TEST()
10502 o0->Get(context.local(), v8_str("__proto__")).ToLocalChecked(); in THREADED_TEST()
10505 ->Get(context.local(), v8_str("z")) in THREADED_TEST()
10520 ht->InstanceTemplate()->Set(v8_str("x"), v8_num(0)); in THREADED_TEST()
10534 CHECK(o->Set(context.local(), v8_str("__proto__"), h).FromJust()); in THREADED_TEST()
10535 CHECK(h->Set(context.local(), v8_str("__proto__"), p).FromJust()); in THREADED_TEST()
10538 CHECK(o->Set(context.local(), v8_str("x"), v8_num(7)).FromJust()); in THREADED_TEST()
10539 CHECK_EQ(7, o->Get(context.local(), v8_str("x")) in THREADED_TEST()
10543 CHECK_EQ(7, h->Get(context.local(), v8_str("x")) in THREADED_TEST()
10547 CHECK(p->Get(context.local(), v8_str("x")).ToLocalChecked()->IsUndefined()); in THREADED_TEST()
10550 CHECK(o->Set(context.local(), v8_str("y"), v8_num(6)).FromJust()); in THREADED_TEST()
10551 CHECK_EQ(6, o->Get(context.local(), v8_str("y")) in THREADED_TEST()
10555 CHECK(h->Get(context.local(), v8_str("y")).ToLocalChecked()->IsUndefined()); in THREADED_TEST()
10556 CHECK(p->Get(context.local(), v8_str("y")).ToLocalChecked()->IsUndefined()); in THREADED_TEST()
10560 CHECK(p->Set(context.local(), v8_str("z"), v8_num(8)).FromJust()); in THREADED_TEST()
10561 CHECK_EQ(8, o->Get(context.local(), v8_str("z")) in THREADED_TEST()
10565 CHECK_EQ(8, h->Get(context.local(), v8_str("z")) in THREADED_TEST()
10569 CHECK_EQ(8, p->Get(context.local(), v8_str("z")) in THREADED_TEST()
10573 CHECK(o->Set(context.local(), v8_str("z"), v8_num(9)).FromJust()); in THREADED_TEST()
10574 CHECK_EQ(9, o->Get(context.local(), v8_str("z")) in THREADED_TEST()
10578 CHECK_EQ(8, h->Get(context.local(), v8_str("z")) in THREADED_TEST()
10582 CHECK_EQ(8, p->Get(context.local(), v8_str("z")) in THREADED_TEST()
10596 t->InstanceTemplate()->Set(v8_str("foo"), v8_num(75)); in THREADED_TEST()
10606 CHECK(o->Set(context.local(), v8_str("foo"), v8_num(42)).FromJust()); in THREADED_TEST()
10617 t0->InstanceTemplate()->Set(v8_str("x"), v8_num(0)); in THREADED_TEST()
10620 t1->InstanceTemplate()->Set(v8_str("y"), v8_num(1)); in THREADED_TEST()
10623 t2->InstanceTemplate()->Set(v8_str("z"), v8_num(2)); in THREADED_TEST()
10625 t3->InstanceTemplate()->Set(v8_str("u"), v8_num(3)); in THREADED_TEST()
10645 CHECK_EQ(0, o0->Get(context.local(), v8_str("x")) in THREADED_TEST()
10650 CHECK_EQ(0, o0->Get(context.local(), v8_str("x")) in THREADED_TEST()
10654 CHECK_EQ(1, o0->Get(context.local(), v8_str("y")) in THREADED_TEST()
10659 CHECK_EQ(0, o0->Get(context.local(), v8_str("x")) in THREADED_TEST()
10663 CHECK_EQ(1, o0->Get(context.local(), v8_str("y")) in THREADED_TEST()
10667 CHECK_EQ(2, o0->Get(context.local(), v8_str("z")) in THREADED_TEST()
10672 CHECK_EQ(0, o0->Get(context.local(), v8_str("x")) in THREADED_TEST()
10676 CHECK_EQ(1, o0->Get(context.local(), v8_str("y")) in THREADED_TEST()
10680 CHECK_EQ(2, o0->Get(context.local(), v8_str("z")) in THREADED_TEST()
10684 CHECK_EQ(3, o0->Get(context.local(), v8_str("u")) in THREADED_TEST()
10693 o0->Get(context.local(), v8_str("__proto__")).ToLocalChecked(); in THREADED_TEST()
10723 t1->InstanceTemplate()->Set(v8_str("foo"), v8_num(1)); in THREADED_TEST()
10726 t2->InstanceTemplate()->Set(v8_str("fuz1"), v8_num(2)); in THREADED_TEST()
10727 t2->InstanceTemplate()->Set(v8_str("objects"), v8::Object::New(isolate)); in THREADED_TEST()
10728 t2->InstanceTemplate()->Set(v8_str("fuz2"), v8_num(2)); in THREADED_TEST()
10731 t3->InstanceTemplate()->Set(v8_str("boo"), v8_num(3)); in THREADED_TEST()
10733 t4->InstanceTemplate()->Set(v8_str("baz"), v8_num(4)); in THREADED_TEST()
10739 t2->InstanceTemplate()->Set(v8_str(name_buf.start()), v8_num(2)); in THREADED_TEST()
10766 CHECK(context->Global()->Set(context.local(), v8_str("obj"), o4).FromJust()); in THREADED_TEST()
10792 i1->SetAccessor(v8_str("foo"), in THREADED_TEST()
10794 i1->SetAccessor(v8_str("bar"), in THREADED_TEST()
10796 i1->SetAccessor(v8_str("baz"), in THREADED_TEST()
10798 i1->Set(v8_str("n1"), v8_num(1)); in THREADED_TEST()
10799 i1->Set(v8_str("n2"), v8_num(2)); in THREADED_TEST()
10811 t2->InstanceTemplate()->Set(v8_str("mine"), v8_num(4)); in THREADED_TEST()
10820 v8::Symbol::New(context->GetIsolate(), v8_str("s1")); in THREADED_TEST()
10823 v8::Private::New(context->GetIsolate(), v8_str("h1")), in THREADED_TEST()
10829 CHECK(context->Global()->Set(context.local(), v8_str("obj"), o2).FromJust()); in THREADED_TEST()
10830 CHECK(context->Global()->Set(context.local(), v8_str("sym"), sym).FromJust()); in THREADED_TEST()
10851 t1->PrototypeTemplate()->Set(v8_str("x"), v8::Integer::New(isolate, 42)); in THREADED_TEST()
10854 ->Set(context.local(), v8_str("func1"), in THREADED_TEST()
10874 t2->PrototypeTemplate()->Set(v8_str("x"), v8::Integer::New(isolate, 42)); in THREADED_TEST()
10876 ->Set(context.local(), v8_str("func2"), in THREADED_TEST()
10932 CHECK(context->Global()->Set(context.local(), v8_str("fun"), fun).FromJust()); in THREADED_TEST()
10958 context->Global()->Get(context.local(), v8_str("x")).ToLocalChecked()); in THREADED_TEST()
10960 CHECK(x->Set(context.local(), v8_str("set"), v8::Integer::New(isolate, 8)) in THREADED_TEST()
10962 CHECK(x->Get(context.local(), v8_str("get")).IsEmpty()); in THREADED_TEST()
10963 CHECK(x->Set(context.local(), v8_str("set"), v8::Integer::New(isolate, 8)) in THREADED_TEST()
10965 CHECK(x->Get(context.local(), v8_str("get")).IsEmpty()); in THREADED_TEST()
10966 CHECK(x->Set(context.local(), v8_str("set"), v8::Integer::New(isolate, 8)) in THREADED_TEST()
10968 CHECK(x->Get(context.local(), v8_str("get")).IsEmpty()); in THREADED_TEST()
10969 CHECK(x->Set(context.local(), v8_str("set"), v8::Integer::New(isolate, 8)) in THREADED_TEST()
10971 CHECK(x->Get(context.local(), v8_str("get")).IsEmpty()); in THREADED_TEST()
10980 templ->SetClassName(v8_str("Fun")); in THREADED_TEST()
10983 context->Global()->Set(context.local(), v8_str("Fun"), cons).FromJust()); in THREADED_TEST()
11009 This->Set(context, v8_str("a"), args[0]).FromJust(); in ConstructorCallback()
11032 ->Set(context.local(), v8_str("obj"), instance) in THREADED_TEST()
11049 value = object1->Get(context.local(), v8_str("a")).ToLocalChecked(); in THREADED_TEST()
11063 Local<Value> args2[] = {v8_str("tipli")}; in THREADED_TEST()
11068 value = object2->Get(context.local(), v8_str("a")).ToLocalChecked(); in THREADED_TEST()
11086 value = object3->Get(context.local(), v8_str("a")).ToLocalChecked(); in THREADED_TEST()
11097 value = object4->Get(context.local(), v8_str("a")).ToLocalChecked(); in THREADED_TEST()
11107 value = object5->Get(context.local(), v8_str("a")).ToLocalChecked(); in THREADED_TEST()
11118 ->Set(context.local(), v8_str("obj2"), instance) in THREADED_TEST()
11147 ->Set(context.local(), v8_str("obj3"), instance) in THREADED_TEST()
11175 ->Set(context.local(), v8_str("obj4"), instance1) in THREADED_TEST()
11199 ->Set(context.local(), v8_str("obj5"), instance2) in THREADED_TEST()
11224 templ->SetClassName(v8_str("Fun")); in THREADED_TEST()
11227 context->Global()->Set(context.local(), v8_str("Fun"), cons).FromJust()); in THREADED_TEST()
11264 ->Get(current.local(), v8_str("result1")) in THREADED_TEST()
11269 ->Get(current.local(), v8_str("result2")) in THREADED_TEST()
11274 ->Get(current.local(), v8_str("result3")) in THREADED_TEST()
11289 ->Get(current.local(), v8_str("result4")) in THREADED_TEST()
11303 Local<String> token = v8_str("<security token>"); in THREADED_TEST()
11309 ->Set(current.local(), v8_str("other"), other->Global()) in THREADED_TEST()
11316 other->Global()->Get(current.local(), v8_str("foo")).ToLocalChecked(); in THREADED_TEST()
11318 CHECK(!current->Global()->Has(current.local(), v8_str("foo")).FromJust()); in THREADED_TEST()
11325 ->Get(current.local(), v8_str("na")) in THREADED_TEST()
11329 CHECK(!current->Global()->Has(current.local(), v8_str("na")).FromJust()); in THREADED_TEST()
11353 ->Set(other.local(), v8_str("bis"), v8_num(1234)) in THREADED_TEST()
11365 ->Set(current.local(), v8_str("t"), other->Global()) in THREADED_TEST()
11410 CHECK(context1->Global()->Set(context1, v8_str("fun"), fun).FromJust()); in THREADED_TEST()
11426 Local<String> token = v8_str("<security token>"); in THREADED_TEST()
11432 ->Set(current.local(), v8_str("other"), other->Global()) in THREADED_TEST()
11480 ->Set(context.local(), v8_str("obj"), instance) in THREADED_TEST()
11541 ->Set(context.local(), v8_str("obj2"), instance) in THREADED_TEST()
11577 ->Set(context.local(), v8_str("obj3"), instance) in THREADED_TEST()
11622 instance->CallAsFunction(context.local(), v8_str("hello"), 0, NULL) in THREADED_TEST()
11642 ->Get(context.local(), v8_str("ReturnThisSloppy")) in THREADED_TEST()
11646 ->Get(context.local(), v8_str("ReturnThisStrict")) in THREADED_TEST()
11665 ReturnThisSloppy->CallAsFunction(context.local(), v8_str("hello"), 0, in THREADED_TEST()
11669 CHECK(a4.As<v8::StringObject>()->ValueOf()->StrictEquals(v8_str("hello"))); in THREADED_TEST()
11692 ReturnThisStrict->CallAsFunction(context.local(), v8_str("hello"), 0, in THREADED_TEST()
11695 CHECK(a9->StrictEquals(v8_str("hello"))); in THREADED_TEST()
11771 env->Global()->Set(env.local(), v8_str("undetectable"), obj).FromJust()); in THREADED_TEST()
11868 ->Equals(isolate->GetCurrentContext(), v8_str("method_data")) in FastApiCallback_TrivialSignature()
11885 ->Equals(isolate->GetCurrentContext(), v8_str("method_data")) in FastApiCallback_SimpleSignature()
11890 ->HasRealNamedProperty(isolate->GetCurrentContext(), v8_str("foo")) in FastApiCallback_SimpleSignature()
11930 ->Set(context.local(), v8_str("nativeobject"), nativeobject_obj) in THREADED_TEST()
11945 args.GetIsolate()->ThrowException(v8_str("g")); in ThrowingDirectApiCallback()
11961 ->Set(context.local(), v8_str("nativeobject"), nativeobject_obj) in THREADED_TEST()
11972 CHECK(v8_str("ggggg")->Equals(context.local(), result).FromJust()); in THREADED_TEST()
11984 return v8_str("Direct Getter Result"); in DoDirectGetter()
12002 obj->SetAccessor(v8_str("p1"), accessor); in LoadICFastApi_DirectCall_GCMoveStub()
12004 ->Set(context.local(), v8_str("o1"), in LoadICFastApi_DirectCall_GCMoveStub()
12014 CHECK(v8_str("Direct Getter Result") in LoadICFastApi_DirectCall_GCMoveStub()
12029 info.GetIsolate()->ThrowException(v8_str("g")); in ThrowingDirectGetterCallback()
12038 obj->SetAccessor(v8_str("p1"), ThrowingDirectGetterCallback); in THREADED_TEST()
12040 ->Set(context.local(), v8_str("o1"), in THREADED_TEST()
12049 CHECK(v8_str("ggggg")->Equals(context.local(), result).FromJust()); in THREADED_TEST()
12060 isolate, FastApiCallback_TrivialSignature, v8_str("method_data"), in THREADED_PROFILED_TEST()
12063 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12073 ->Set(context.local(), v8_str("o"), in THREADED_PROFILED_TEST()
12082 ->Get(context.local(), v8_str("result")) in THREADED_PROFILED_TEST()
12097 isolate, FastApiCallback_SimpleSignature, v8_str("method_data"), in THREADED_PROFILED_TEST()
12100 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12111 ->Set(context.local(), v8_str("o"), in THREADED_PROFILED_TEST()
12123 ->Get(context.local(), v8_str("result")) in THREADED_PROFILED_TEST()
12138 isolate, FastApiCallback_SimpleSignature, v8_str("method_data"), in THREADED_PROFILED_TEST()
12141 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12152 ->Set(context.local(), v8_str("o"), in THREADED_PROFILED_TEST()
12169 ->Get(context.local(), v8_str("result")) in THREADED_PROFILED_TEST()
12174 ->Get(context.local(), v8_str("saved_result")) in THREADED_PROFILED_TEST()
12189 isolate, FastApiCallback_SimpleSignature, v8_str("method_data"), in THREADED_PROFILED_TEST()
12192 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12203 ->Set(context.local(), v8_str("o"), in THREADED_PROFILED_TEST()
12220 ->Get(context.local(), v8_str("result")) in THREADED_PROFILED_TEST()
12225 ->Get(context.local(), v8_str("saved_result")) in THREADED_PROFILED_TEST()
12240 isolate, FastApiCallback_SimpleSignature, v8_str("method_data"), in THREADED_PROFILED_TEST()
12243 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12254 ->Set(context.local(), v8_str("o"), in THREADED_PROFILED_TEST()
12274 v8_str("TypeError: receiver.method is not a function") in THREADED_PROFILED_TEST()
12280 ->Get(context.local(), v8_str("saved_result")) in THREADED_PROFILED_TEST()
12295 isolate, FastApiCallback_SimpleSignature, v8_str("method_data"), in THREADED_PROFILED_TEST()
12298 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12309 ->Set(context.local(), v8_str("o"), in THREADED_PROFILED_TEST()
12328 v8_str("TypeError: Illegal invocation") in THREADED_PROFILED_TEST()
12334 ->Get(context.local(), v8_str("saved_result")) in THREADED_PROFILED_TEST()
12348 isolate, FastApiCallback_TrivialSignature, v8_str("method_data"), in THREADED_PROFILED_TEST()
12351 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12359 ->Set(context.local(), v8_str("o"), in THREADED_PROFILED_TEST()
12369 ->Get(context.local(), v8_str("result")) in THREADED_PROFILED_TEST()
12382 isolate, FastApiCallback_SimpleSignature, v8_str("method_data"), in THREADED_PROFILED_TEST()
12385 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12394 ->Set(context.local(), v8_str("o"), in THREADED_PROFILED_TEST()
12407 ->Get(context.local(), v8_str("result")) in THREADED_PROFILED_TEST()
12420 isolate, FastApiCallback_SimpleSignature, v8_str("method_data"), in THREADED_PROFILED_TEST()
12423 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12432 ->Set(context.local(), v8_str("o"), in THREADED_PROFILED_TEST()
12449 ->Get(context.local(), v8_str("result")) in THREADED_PROFILED_TEST()
12454 ->Get(context.local(), v8_str("saved_result")) in THREADED_PROFILED_TEST()
12467 isolate, FastApiCallback_SimpleSignature, v8_str("method_data"), in THREADED_PROFILED_TEST()
12470 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12479 ->Set(context.local(), v8_str("o"), in THREADED_PROFILED_TEST()
12499 v8_str("TypeError: receiver.method is not a function") in THREADED_PROFILED_TEST()
12505 ->Get(context.local(), v8_str("saved_result")) in THREADED_PROFILED_TEST()
12518 isolate, FastApiCallback_SimpleSignature, v8_str("method_data"), in THREADED_PROFILED_TEST()
12521 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12530 ->Set(context.local(), v8_str("o"), in THREADED_PROFILED_TEST()
12549 v8_str("TypeError: Illegal invocation") in THREADED_PROFILED_TEST()
12555 ->Get(context.local(), v8_str("saved_result")) in THREADED_PROFILED_TEST()
12576 instance_templ->SetAccessor(v8_str("f"), ThrowingGetter); in THREADED_TEST()
12595 instance->GetRealNamedProperty(context.local(), v8_str("f")); in THREADED_TEST()
12601 instance->GetRealNamedPropertyAttributes(context.local(), v8_str("f")); in THREADED_TEST()
12605 result = another->GetRealNamedProperty(context.local(), v8_str("f")); in THREADED_TEST()
12610 attr = another->GetRealNamedPropertyAttributes(context.local(), v8_str("f")); in THREADED_TEST()
12615 v8_str("f")); in THREADED_TEST()
12621 context.local(), v8_str("f")); in THREADED_TEST()
12625 result = another->Get(context.local(), v8_str("f")); in THREADED_TEST()
12630 result = with_js_getter->GetRealNamedProperty(context.local(), v8_str("f")); in THREADED_TEST()
12636 v8_str("f")); in THREADED_TEST()
12640 result = with_js_getter->Get(context.local(), v8_str("f")); in THREADED_TEST()
12674 if (--call_depth) CcTest::isolate()->ThrowException(v8_str("ThrowViaApi")); in ThrowViaApi()
12696 context->Global()->Set(context.local(), v8_str("func"), func).FromJust()); in THREADED_TEST()
12742 parent_instance_templ->SetAccessor(v8_str("f"), ParentGetter); in THREADED_TEST()
12751 child_instance_templ->SetAccessor(v8_str("f"), ChildGetter); in THREADED_TEST()
12753 child_instance_templ->SetAccessor(v8_str("g"), ParentGetter); in THREADED_TEST()
12754 child_instance_templ->SetAccessor(v8_str("g"), ChildGetter); in THREADED_TEST()
12759 child_proto_templ->SetAccessor(v8_str("h"), ParentGetter, 0, in THREADED_TEST()
12765 child_instance_templ->SetAccessor(v8_str("i"), ChildGetter, 0, in THREADED_TEST()
12778 ->Set(context.local(), v8_str("o"), instance) in THREADED_TEST()
12814 ->Set(context.local(), v8_str("f"), in THREADED_TEST()
12828 templ->SetClassName(v8_str("MyClass")); in THREADED_TEST()
12832 Local<String> customized_tostring = v8_str("customized toString"); in THREADED_TEST()
12854 value->Equals(context.local(), v8_str("[object MyClass]")).FromJust()); in THREADED_TEST()
12860 value->Equals(context.local(), v8_str("[object global]")).FromJust()); in THREADED_TEST()
12869 value->Equals(context.local(), v8_str("[object Object]")).FromJust()); in THREADED_TEST()
12880 templ->SetClassName(v8_str("MyClass")); in TEST()
12882 Local<String> customized_tostring = v8_str("customized toString"); in TEST()
12902 value->Equals(context.local(), v8_str("[object MyClass]")).FromJust()); in TEST()
12908 value->Equals(context.local(), v8_str("[object global]")).FromJust()); in TEST()
12916 value->Equals(context.local(), v8_str("[object Object]")).FromJust()); in TEST()
12925 ->Set(context.local(), toStringTag, v8_str(#tag)) \ in TEST()
12931 value->Equals(context.local(), v8_str("[object " #expected "]")) \ in TEST()
12950 v8::RegExp::New(context.local(), v8_str("^$"), v8::RegExp::kNone) in TEST()
12970 value->Equals(context.local(), v8_str("[object " #expected "]")) \ in TEST()
13009 SymbolAccessorGetterReturnsDefault, 0, v8_str("Test")) in TEST()
13017 value->Equals(context.local(), v8_str("[object Test]")).FromJust()); in TEST()
13029 value->Equals(context.local(), v8_str("[object Test]")).FromJust()); in TEST()
13055 value->Equals(context.local(), v8_str("[object Test]")).FromJust()); in TEST()
13079 context->Global()->Get(context.local(), v8_str("p")).ToLocalChecked(); in THREADED_TEST()
13084 ->Equals(context.local(), v8_str("Parent")) in THREADED_TEST()
13088 context->Global()->Get(context.local(), v8_str("c")).ToLocalChecked(); in THREADED_TEST()
13093 ->Equals(context.local(), v8_str("Child")) in THREADED_TEST()
13097 context->Global()->Get(context.local(), v8_str("x")).ToLocalChecked(); in THREADED_TEST()
13102 ->Equals(context.local(), v8_str("outer.inner")) in THREADED_TEST()
13106 context->Global()->Get(context.local(), v8_str("proto")).ToLocalChecked(); in THREADED_TEST()
13111 ->Equals(context.local(), v8_str("Parent")) in THREADED_TEST()
13130 context->Global()->Get(context.local(), v8_str("p")).ToLocalChecked(); in THREADED_TEST()
13135 ->Equals(context.local(), v8_str("Parent")) in THREADED_TEST()
13139 context->Global()->Get(context.local(), v8_str("c")).ToLocalChecked(); in THREADED_TEST()
13144 ->Equals(context.local(), v8_str("Child")) in THREADED_TEST()
13346 args.GetReturnValue().Set(v8_str("foo")); in ThrowInJSNoCatch()
13362 CHECK(env->Global()->Set(env.local(), v8_str("throw_in_js"), fun).FromJust()); in TEST()
13387 CHECK(env->Global()->Set(env.local(), v8_str("throw_in_js"), fun).FromJust()); in TEST()
13427 ->Set(env.local(), v8_str("unlock_for_a_moment"), fun) in THREADED_TEST()
13446 ->Set(env.local(), v8_str("unlock_for_a_moment"), fun) in THREADED_TEST()
13575 obj->Set(context.local(), v8_str("key"), v8::Integer::New(isolate, 231)) in TEST()
13987 t->Set(v8_str("asdf"), v8::FunctionTemplate::New(isolate, RuntimeCallback)); in RunLoopInNewEnv()
13989 ->Set(env, v8_str("obj"), t->NewInstance(env).ToLocalChecked()) in RunLoopInNewEnv()
14004 *env->Global()->Get(env, v8_str("bar")).ToLocalChecked())); in RunLoopInNewEnv()
14008 *env->Global()->Get(env, v8_str("foo")).ToLocalChecked())); in RunLoopInNewEnv()
14273 ->Get(env.local(), v8_str("bar")) in UNINITIALIZED_TEST()
14279 ->Get(env.local(), v8_str("foo")) in UNINITIALIZED_TEST()
14433 v8::Local<v8::String> source = v8_str( in THREADED_TEST()
14455 v8::ScriptOrigin origin1(v8_str(resource_name)); in THREADED_TEST()
14461 v8::ScriptOrigin origin2(v8_str(resource_name), in THREADED_TEST()
14473 CHECK(v8::Script::Compile(context.local(), v8_str("!\n")).IsEmpty()); in THREADED_TEST()
14484 v8::Local<v8::String> source0 = v8_str("1234"); in THREADED_TEST()
14485 v8::Local<v8::String> source1 = v8_str("1234"); in THREADED_TEST()
14517 t->Set(v8_str("asdf"), in THREADED_TEST()
14520 ->Set(context.local(), v8_str("obj"), in THREADED_TEST()
14668 templ->Set(v8_str("a"), v8_str("a")); in THREADED_TEST()
14680 templ->Set(v8_str(buf), v8::Number::New(isolate, k)); in THREADED_TEST()
14688 ->Set(context.local(), v8_str("obj_1"), instance_1) in THREADED_TEST()
14697 ->Set(context.local(), v8_str("obj_2"), instance_2) in THREADED_TEST()
14714 v8::ScriptCompiler::Source source(v8_str(script)); in TEST()
14746 ->Set(context.local(), v8_str("tmp"), v8::True(CcTest::isolate())) in THREADED_TEST()
14748 context->Global()->Delete(context.local(), v8_str("tmp")).FromJust(); in THREADED_TEST()
14755 ->Set(context.local(), v8_str("tmp"), v8::True(CcTest::isolate())) in THREADED_TEST()
14757 context->Global()->Delete(context.local(), v8_str("tmp")).FromJust(); in THREADED_TEST()
14772 Local<String> token = v8_str("<security token>"); in THREADED_TEST()
14786 ->Set(context1, v8_str("other"), context0->Global()) in THREADED_TEST()
14811 obj->Set(env.local(), v8_str("gamma"), v8_str("cloneme")).FromJust(); in TEST()
14813 CHECK(v8_str("hello") in TEST()
14815 obj->Get(env.local(), v8_str("alpha")).ToLocalChecked()) in TEST()
14819 obj->Get(env.local(), v8_str("beta")).ToLocalChecked()) in TEST()
14821 CHECK(v8_str("cloneme") in TEST()
14823 obj->Get(env.local(), v8_str("gamma")).ToLocalChecked()) in TEST()
14828 CHECK(v8_str("hello") in TEST()
14830 clone->Get(env.local(), v8_str("alpha")).ToLocalChecked()) in TEST()
14834 clone->Get(env.local(), v8_str("beta")).ToLocalChecked()) in TEST()
14836 CHECK(v8_str("cloneme") in TEST()
14838 clone->Get(env.local(), v8_str("gamma")).ToLocalChecked()) in TEST()
14842 CHECK(clone->Set(env.local(), v8_str("beta"), v8::Integer::New(isolate, 456)) in TEST()
14846 obj->Get(env.local(), v8_str("beta")).ToLocalChecked()) in TEST()
14850 clone->Get(env.local(), v8_str("beta")).ToLocalChecked()) in TEST()
14926 CHECK(env->Global()->Set(env.local(), v8_str("lhs"), lhs).FromJust()); in THREADED_TEST()
14927 CHECK(env->Global()->Set(env.local(), v8_str("rhs"), rhs).FromJust()); in THREADED_TEST()
14967 CHECK(v8_str(expected_cons) in THREADED_TEST()
14969 ->Get(env.local(), v8_str("cons")) in THREADED_TEST()
14972 CHECK(v8_str(expected_slice) in THREADED_TEST()
14974 ->Get(env.local(), v8_str("slice")) in THREADED_TEST()
14977 CHECK(v8_str(expected_slice_on_cons) in THREADED_TEST()
14980 ->Get(env.local(), v8_str("slice_on_cons")) in THREADED_TEST()
15070 v8::Local<v8::String> string = v8_str(one_byte_content); in TEST()
15072 env->Global()->Set(env.local(), v8_str("a"), string).FromJust(); in TEST()
15101 global->Get(context.local(), v8_str("__proto__")).ToLocalChecked()); in TEST()
15102 global_proto->DefineOwnProperty(context.local(), v8_str("x"), in TEST()
15105 global_proto->DefineOwnProperty(context.local(), v8_str("y"), in TEST()
15133 env->Global()->Get(env.local(), v8_str("a")).ToLocalChecked()); in TEST()
15135 env->Global()->Get(env.local(), v8_str("b")).ToLocalChecked()); in TEST()
15139 CHECK(!obj->CreateDataProperty(env.local(), v8_str("foo"), in TEST()
15142 CHECK(obj->CreateDataProperty(env.local(), v8_str("bar"), in TEST()
15146 obj->Get(env.local(), v8_str("bar")).ToLocalChecked(); in TEST()
15154 CHECK(obj->CreateDataProperty(env.local(), v8_str("blub"), in TEST()
15158 obj->Get(env.local(), v8_str("blub")).ToLocalChecked(); in TEST()
15166 CHECK(obj->CreateDataProperty(env.local(), v8_str("1"), in TEST()
15177 CHECK(!arr->CreateDataProperty(env.local(), v8_str("length"), in TEST()
15205 CHECK(!obj->CreateDataProperty(env.local(), v8_str("baz"), in TEST()
15216 CHECK(access_checked->CreateDataProperty(env.local(), v8_str("foo"), in TEST()
15236 env->Global()->Get(env.local(), v8_str("a")).ToLocalChecked()); in TEST()
15238 env->Global()->Get(env.local(), v8_str("b")).ToLocalChecked()); in TEST()
15242 CHECK(!obj->DefineOwnProperty(env.local(), v8_str("foo"), in TEST()
15245 CHECK(obj->DefineOwnProperty(env.local(), v8_str("bar"), in TEST()
15249 obj->Get(env.local(), v8_str("bar")).ToLocalChecked(); in TEST()
15257 CHECK(obj->DefineOwnProperty(env.local(), v8_str("blub"), in TEST()
15261 obj->Get(env.local(), v8_str("blub")).ToLocalChecked(); in TEST()
15269 CHECK(obj->DefineOwnProperty(env.local(), v8_str("1"), in TEST()
15280 CHECK(!arr->DefineOwnProperty(env.local(), v8_str("length"), in TEST()
15287 CHECK(arr->DefineOwnProperty(env.local(), v8_str("1"), in TEST()
15296 CHECK(arr->DefineOwnProperty(env.local(), v8_str("0"), in TEST()
15307 CHECK(obj->DefineOwnProperty(env.local(), v8_str("lala"), in TEST()
15312 obj->Get(env.local(), v8_str("lala")).ToLocalChecked(); in TEST()
15316 env.local(), v8_str("lala")).FromJust()); in TEST()
15324 CHECK(!obj->DefineOwnProperty(env.local(), v8_str("baz"), in TEST()
15335 CHECK(access_checked->DefineOwnProperty(env.local(), v8_str("foo"), in TEST()
15380 v8::Local<v8::String> foo_string = v8_str("foo"); in THREADED_TEST()
15385 obj_clone->Set(context.local(), foo_string, v8_str("Hello")).FromJust(); in THREADED_TEST()
15408 obj->Set(context, v8_str("field"), in ObjectWithExternalArrayTestHelper()
15411 CHECK(context->Global()->Set(context, v8_str("ext_array"), obj).FromJust()); in ObjectWithExternalArrayTestHelper()
15689 ->Get(context, v8_str("0")) in ObjectWithExternalArrayTestHelper()
15699 ->Get(context, v8_str("0")) in ObjectWithExternalArrayTestHelper()
15704 ->Get(context, v8_str("1")) in ObjectWithExternalArrayTestHelper()
16134 v8::Local<v8::String> src = v8_str(source); in THREADED_TEST()
16135 v8::Local<v8::String> origin = v8_str("stack-trace-test"); in THREADED_TEST()
16255 v8::Local<v8::String> origin = v8_str("capture-stack-trace-test"); in TEST()
16257 templ->Set(v8_str("AnalyzeStackInNativeCode"), in TEST()
16272 v8::Local<v8::String> overview_src = v8_str(overview_source); in TEST()
16293 v8::Local<v8::String> detailed_src = v8_str(detailed_source); in TEST()
16371 global->Get(env.local(), v8_str("bar")).ToLocalChecked(); in TEST()
16398 global->Get(env.local(), v8_str("bar")).ToLocalChecked(); in TEST()
16631 global->Set(context, v8_str("rejected"), reject_message.GetPromise()) in PromiseRejectCallback()
16633 global->Set(context, v8_str("value"), reject_message.GetValue()).FromJust(); in PromiseRejectCallback()
16647 ->Equals(context, v8_str("pro")) in PromiseRejectCallback()
16658 global->Set(context, v8_str("revoked"), reject_message.GetPromise()) in PromiseRejectCallback()
16668 ->Get(CcTest::isolate()->GetCurrentContext(), v8_str(name)) in GetPromise()
16675 ->Get(CcTest::isolate()->GetCurrentContext(), v8_str("value")) in RejectValue()
16691 global->Set(context, v8_str("rejected"), v8_str("")).FromJust(); in ResetPromiseStates()
16692 global->Set(context, v8_str("value"), v8_str("")).FromJust(); in ResetPromiseStates()
16693 global->Set(context, v8_str("revoked"), v8_str("")).FromJust(); in ResetPromiseStates()
16734 CHECK(RejectValue()->Equals(env.local(), v8_str("ppp")).FromJust()); in TEST()
16752 CHECK(RejectValue()->Equals(env.local(), v8_str("ppp")).FromJust()); in TEST()
16804 CHECK(RejectValue()->Equals(env.local(), v8_str("qqq")).FromJust()); in TEST()
16821 CHECK(RejectValue()->Equals(env.local(), v8_str("qqqq")).FromJust()); in TEST()
16853 CHECK(RejectValue()->Equals(env.local(), v8_str("rrr")).FromJust()); in TEST()
16866 CHECK(RejectValue()->Equals(env.local(), v8_str("rrr")).FromJust()); in TEST()
16906 CHECK(RejectValue()->Equals(env.local(), v8_str("sss")).FromJust()); in TEST()
17028 v8::Local<v8::String> url = v8_str("eval_url"); in AnalyzeStackOfEvalWithSourceURL()
17042 templ->Set(v8_str("AnalyzeStackOfEvalWithSourceURL"), in TEST()
17086 templ->Set(v8_str("AnalyzeScriptIdInStack"), in TEST()
17090 v8::Local<v8::String> scriptSource = v8_str( in TEST()
17110 v8::Local<v8::String> url = v8_str("source_url"); in AnalyzeStackOfInlineScriptWithSourceURL()
17124 templ->Set(v8_str("AnalyzeStackOfInlineScriptWithSourceURL"), in TEST()
17156 v8::Local<v8::String> url = v8_str("source_url"); in AnalyzeStackOfDynamicScriptWithSourceURL()
17170 templ->Set(v8_str("AnalyzeStackOfDynamicScriptWithSourceURL"), in TEST()
17353 ->Set(env.local(), v8_str("get_stack_limit"), fun) in TEST()
17377 ->Set(env.local(), v8_str("get_stack_limit"), fun) in TEST()
17748 ->Set(context.local(), v8_str("s"), in THREADED_TEST()
17793 Local<v8::String> obj = v8_str(""); in TEST()
17866 v8_str("test"), v8::Integer::New(env->GetIsolate(), 1), in THREADED_TEST()
17869 v8_str("http://sourceMapUrl"), v8::True(env->GetIsolate())); in THREADED_TEST()
17870 v8::Local<v8::String> script = v8_str("function f() {}\n\nfunction g() {}"); in THREADED_TEST()
17876 env->Global()->Get(env.local(), v8_str("f")).ToLocalChecked()); in THREADED_TEST()
17878 env->Global()->Get(env.local(), v8_str("g")).ToLocalChecked()); in THREADED_TEST()
17911 v8::ScriptOrigin origin = v8::ScriptOrigin(v8_str("test")); in THREADED_TEST()
17913 v8_str("var foo = { bar : { baz : function() {}}}; var f = foo.bar.baz;"); in THREADED_TEST()
17919 env->Global()->Get(env.local(), v8_str("f")).ToLocalChecked()); in THREADED_TEST()
17970 v8::ScriptOrigin origin = v8::ScriptOrigin(v8_str("test")); in THREADED_TEST()
17971 v8::Script::Compile(env.local(), v8_str(code), &origin) in THREADED_TEST()
17976 env->Global()->Get(env.local(), v8_str("error")).ToLocalChecked(); in THREADED_TEST()
18038 v8::ScriptOrigin origin = v8::ScriptOrigin(v8_str("test")); in THREADED_TEST()
18039 v8::Script::Compile(env.local(), v8_str(code), &origin) in THREADED_TEST()
18044 env->Global()->Get(env.local(), v8_str("error")).ToLocalChecked(); in THREADED_TEST()
18046 env->Global()->Get(env.local(), v8_str("a")).ToLocalChecked()); in THREADED_TEST()
18048 env->Global()->Get(env.local(), v8_str("b")).ToLocalChecked()); in THREADED_TEST()
18050 env->Global()->Get(env.local(), v8_str("c")).ToLocalChecked()); in THREADED_TEST()
18052 env->Global()->Get(env.local(), v8_str("d")).ToLocalChecked()); in THREADED_TEST()
18054 env->Global()->Get(env.local(), v8_str("e")).ToLocalChecked()); in THREADED_TEST()
18056 env->Global()->Get(env.local(), v8_str("f")).ToLocalChecked()); in THREADED_TEST()
18058 env->Global()->Get(env.local(), v8_str("g")).ToLocalChecked()); in THREADED_TEST()
18074 v8::ScriptOrigin origin = v8::ScriptOrigin(v8_str("test")); in THREADED_TEST()
18075 v8::Local<v8::String> script = v8_str("function f() {}\n\nfunction g() {}"); in THREADED_TEST()
18081 env->Global()->Get(env.local(), v8_str("f")).ToLocalChecked()); in THREADED_TEST()
18083 env->Global()->Get(env.local(), v8_str("g")).ToLocalChecked()); in THREADED_TEST()
18094 v8::ScriptOrigin(v8_str("test"), v8::Integer::New(isolate, 3), in THREADED_TEST()
18097 v8_str("function foo() {}\n\n function bar() {}"); in THREADED_TEST()
18103 env->Global()->Get(env.local(), v8_str("foo")).ToLocalChecked()); in THREADED_TEST()
18105 env->Global()->Get(env.local(), v8_str("bar")).ToLocalChecked()); in THREADED_TEST()
18134 v8::ScriptOrigin(v8_str("test"), v8::Integer::New(isolate, 3), in THREADED_TEST()
18137 v8_str("function foo() {}\n\n function bar() {}"); in THREADED_TEST()
18142 env->Global()->Get(env.local(), v8_str("foo")).ToLocalChecked()); in THREADED_TEST()
18144 env->Global()->Get(env.local(), v8_str("bar")).ToLocalChecked()); in THREADED_TEST()
18153 v8::ScriptOrigin origin = v8::ScriptOrigin(v8_str("test")); in THREADED_TEST()
18154 v8::Local<v8::String> script = v8_str( in THREADED_TEST()
18165 env->Global()->Get(env.local(), v8_str("f")).ToLocalChecked()); in THREADED_TEST()
18167 env->Global()->Get(env.local(), v8_str("g")).ToLocalChecked()); in THREADED_TEST()
18196 ->Set(info.GetIsolate()->GetCurrentContext(), v8_str("y"), v8_num(23)) in SetterWhichSetsYOnThisTo23()
18205 if (!name->Equals(info.GetIsolate()->GetCurrentContext(), v8_str("foo")) in FooGetInterceptor()
18217 if (!name->Equals(info.GetIsolate()->GetCurrentContext(), v8_str("foo")) in FooSetInterceptor()
18222 ->Set(info.GetIsolate()->GetCurrentContext(), v8_str("y"), v8_num(23)) in FooSetInterceptor()
18232 templ->SetAccessor(v8_str("x"), GetterWhichReturns42, in TEST()
18236 ->Set(context.local(), v8_str("P"), in TEST()
18254 CHECK_EQ(42, c1->Get(context.local(), v8_str("x")) in TEST()
18258 CHECK_EQ(23, c1->Get(context.local(), v8_str("y")) in TEST()
18268 CHECK_EQ(42, c2->Get(context.local(), v8_str("x")) in TEST()
18272 CHECK_EQ(23, c2->Get(context.local(), v8_str("y")) in TEST()
18289 if (name->Equals(info.GetIsolate()->GetCurrentContext(), v8_str("x")) in NamedPropertySetterWhichSetsYOnThisTo23()
18292 ->Set(info.GetIsolate()->GetCurrentContext(), v8_str("y"), v8_num(23)) in NamedPropertySetterWhichSetsYOnThisTo23()
18307 ->Set(context.local(), v8_str("P"), in THREADED_TEST()
18325 CHECK_EQ(23, c1->Get(context.local(), v8_str("x")) in THREADED_TEST()
18329 CHECK_EQ(42, c1->Get(context.local(), v8_str("y")) in THREADED_TEST()
18339 CHECK_EQ(23, c2->Get(context.local(), v8_str("x")) in THREADED_TEST()
18343 CHECK_EQ(42, c2->Get(context.local(), v8_str("y")) in THREADED_TEST()
18364 prototype->Set(context.local(), v8_str("y"), v8_num(42)).FromJust(); in TEST()
18366 ->Set(context.local(), v8_str("P"), prototype) in TEST()
18378 CHECK_EQ(23, c1->Get(context.local(), v8_str("x")) in TEST()
18382 CHECK_EQ(42, c1->Get(context.local(), v8_str("y")) in TEST()
18390 templ->SetAccessor(v8_str("x"), GetterWhichReturns42, in TEST()
18393 ->Set(context.local(), v8_str("P"), in TEST()
18404 CHECK_EQ(42, c1->Get(context.local(), v8_str("x")) in TEST()
18408 CHECK_EQ(23, c1->Get(context.local(), v8_str("y")) in TEST()
18699 Local<String> base = v8_str("a"); in TEST()
18753 v8::Exception::Error(v8_str("cross context"))); in FailedAccessCheckCallbackGC()
18777 ->Set(context0.local(), v8_str("x"), v8_num(42)) in TEST()
18785 ->Set(context1.local(), v8_str("other"), global0) in TEST()
18831 CHECK(global0->SetAccessor(context1.local(), v8_str("x"), GetXValue, NULL, in TEST()
18832 v8_str("x")) in TEST()
18863 global0->HasRealNamedProperty(context1.local(), v8_str("x")).IsNothing()); in TEST()
18867 CHECK(global0->HasRealNamedCallbackProperty(context1.local(), v8_str("x")) in TEST()
19470 v8::RegExp::New(context.local(), v8_str("foo"), v8::RegExp::kNone) in TEST()
19473 CHECK(re->GetSource()->Equals(context.local(), v8_str("foo")).FromJust()); in TEST()
19476 re = v8::RegExp::New(context.local(), v8_str("bar"), in TEST()
19481 CHECK(re->GetSource()->Equals(context.local(), v8_str("bar")).FromJust()); in TEST()
19485 re = v8::RegExp::New(context.local(), v8_str("baz"), in TEST()
19490 CHECK(re->GetSource()->Equals(context.local(), v8_str("baz")).FromJust()); in TEST()
19494 re = v8::RegExp::New(context.local(), v8_str("baz"), in TEST()
19499 CHECK(re->GetSource()->Equals(context.local(), v8_str("baz")).FromJust()); in TEST()
19505 CHECK(re->GetSource()->Equals(context.local(), v8_str("quux")).FromJust()); in TEST()
19510 CHECK(re->GetSource()->Equals(context.local(), v8_str("quux")).FromJust()); in TEST()
19518 re = v8::RegExp::New(context.local(), v8_str("foobar"), v8::RegExp::kNone) in TEST()
19521 CHECK(re->GetSource()->Equals(context.local(), v8_str("foobar")).FromJust()); in TEST()
19524 re = v8::RegExp::New(context.local(), v8_str("foobarbaz"), in TEST()
19530 re->GetSource()->Equals(context.local(), v8_str("foobarbaz")).FromJust()); in TEST()
19534 CHECK(context->Global()->Set(context.local(), v8_str("re"), re).FromJust()); in TEST()
19538 re->Set(context.local(), v8_str("property"), in TEST()
19545 CHECK(v8::RegExp::New(context.local(), v8_str("foo["), v8::RegExp::kNone) in TEST()
19549 ->Set(context.local(), v8_str("ex"), try_catch.Exception()) in TEST()
19576 info.GetReturnValue().Set(v8_str("42!")); in Getter()
19583 v8_str("universalAnswer")) in Enumerator()
19599 ->Set(context.local(), v8_str("o"), in TEST()
19605 CHECK(v8_str("universalAnswer") in TEST()
19634 ->Set(context, v8_str("context_id"), in InstallContextId()
19642 CHECK_EQ(expected, object->Get(context, v8_str("context_id")) in CheckContextId()
19772 ->Set(context2, v8_str("foo"), target_function) in THREADED_TEST()
19791 if (index == 42) info.GetReturnValue().Set(v8_str("yes")); in HasOwnPropertyIndexedPropertyGetter()
19797 if (property->Equals(info.GetIsolate()->GetCurrentContext(), v8_str("foo")) in HasOwnPropertyNamedPropertyGetter()
19799 info.GetReturnValue().Set(v8_str("yes")); in HasOwnPropertyNamedPropertyGetter()
19812 if (property->Equals(info.GetIsolate()->GetCurrentContext(), v8_str("foo")) in HasOwnPropertyNamedPropertyQuery()
19821 if (property->Equals(info.GetIsolate()->GetCurrentContext(), v8_str("bar")) in HasOwnPropertyNamedPropertyQuery2()
19831 info.GetReturnValue().Set(v8_str("yes")); in HasOwnPropertyAccessorGetter()
19853 CHECK(object->Has(env.local(), v8_str("foo")).FromJust()); in TEST()
19854 CHECK(!object->HasOwnProperty(env.local(), v8_str("foo")).FromJust()); in TEST()
19855 CHECK(object->HasOwnProperty(env.local(), v8_str("bar")).FromJust()); in TEST()
19856 CHECK(object->Has(env.local(), v8_str("baz")).FromJust()); in TEST()
19857 CHECK(!object->HasOwnProperty(env.local(), v8_str("baz")).FromJust()); in TEST()
19858 CHECK(object->HasOwnProperty(env.local(), v8_str("bla")).FromJust()); in TEST()
19865 CHECK(!instance->HasOwnProperty(env.local(), v8_str("42")).FromJust()); in TEST()
19866 CHECK(instance->HasOwnProperty(env.local(), v8_str("foo")).FromJust()); in TEST()
19867 CHECK(!instance->HasOwnProperty(env.local(), v8_str("bar")).FromJust()); in TEST()
19874 CHECK(instance->HasOwnProperty(env.local(), v8_str("42")).FromJust()); in TEST()
19875 CHECK(!instance->HasOwnProperty(env.local(), v8_str("43")).FromJust()); in TEST()
19876 CHECK(!instance->HasOwnProperty(env.local(), v8_str("foo")).FromJust()); in TEST()
19883 CHECK(instance->HasOwnProperty(env.local(), v8_str("foo")).FromJust()); in TEST()
19884 CHECK(!instance->HasOwnProperty(env.local(), v8_str("bar")).FromJust()); in TEST()
19891 CHECK(instance->HasOwnProperty(env.local(), v8_str("42")).FromJust()); in TEST()
19892 CHECK(!instance->HasOwnProperty(env.local(), v8_str("41")).FromJust()); in TEST()
19896 templ->SetAccessor(v8_str("foo"), HasOwnPropertyAccessorGetter); in TEST()
19898 CHECK(instance->HasOwnProperty(env.local(), v8_str("foo")).FromJust()); in TEST()
19899 CHECK(!instance->HasOwnProperty(env.local(), v8_str("bar")).FromJust()); in TEST()
19907 CHECK(!instance->HasOwnProperty(env.local(), v8_str("foo")).FromJust()); in TEST()
19908 CHECK(instance->HasOwnProperty(env.local(), v8_str("bar")).FromJust()); in TEST()
19921 ->Set(context.local(), v8_str("obj"), in TEST()
20016 Local<String> message = v8_str("Message"); in TEST()
20017 Local<String> expected_message = v8_str("Uncaught EvalError: Message"); in TEST()
20043 ->Set(context.local(), v8_str("f"), function) in THREADED_TEST()
20058 CHECK(context->Global()->Set(context.local(), v8_str("obj"), obj).FromJust()); in THREADED_TEST()
20059 obj->DefineOwnProperty(context.local(), v8_str("1"), v8_str("DONT_CHANGE"), in THREADED_TEST()
20062 obj->Set(context.local(), v8_str("1"), v8_str("foobar")).FromJust(); in THREADED_TEST()
20063 CHECK(v8_str("DONT_CHANGE") in THREADED_TEST()
20065 obj->Get(context.local(), v8_str("1")).ToLocalChecked()) in THREADED_TEST()
20067 obj->DefineOwnProperty(context.local(), v8_str("2"), v8_str("DONT_CHANGE"), in THREADED_TEST()
20070 obj->Set(context.local(), v8_num(2), v8_str("foobar")).FromJust(); in THREADED_TEST()
20071 CHECK(v8_str("DONT_CHANGE") in THREADED_TEST()
20077 obj->DefineOwnProperty(context.local(), v8_str("2000000000"), in THREADED_TEST()
20078 v8_str("DONT_CHANGE"), v8::ReadOnly) in THREADED_TEST()
20080 obj->Set(context.local(), v8_str("2000000000"), v8_str("foobar")).FromJust(); in THREADED_TEST()
20081 CHECK(v8_str("DONT_CHANGE") in THREADED_TEST()
20083 obj->Get(context.local(), v8_str("2000000000")) in THREADED_TEST()
20177 global_template->Set(v8_str("simple"), simple_object); in THREADED_TEST()
20178 global_template->Set(v8_str("protected"), protected_object); in THREADED_TEST()
20179 global_template->Set(v8_str("global"), global_object); in THREADED_TEST()
20180 global_template->Set(v8_str("proxy"), proxy_object); in THREADED_TEST()
20181 global_template->Set(v8_str("hidden"), object_with_hidden); in THREADED_TEST()
20251 Local<String> password = v8_str("Password"); in THREADED_TEST()
20257 Local<String> i = v8_str("i"); in THREADED_TEST()
20258 Local<String> o = v8_str("o"); in THREADED_TEST()
20259 Local<String> id = v8_str("id"); in THREADED_TEST()
20271 ->Set(context.local(), v8_str("func"), foreign_function) in THREADED_TEST()
20374 ->Set(env.local(), v8_str("recursion"), in TEST()
20383 v8::Script::Compile(env.local(), v8_str("recursion(0)")).ToLocalChecked(); in TEST()
20396 env->Global()->Get(env.local(), v8_str("recursion")).ToLocalChecked()); in TEST()
20512 v8::Exception::Error(v8_str("first"))); in MicrotaskExceptionOne()
20521 v8::Exception::Error(v8_str("second"))); in MicrotaskExceptionTwo()
20633 exec_state->Get(context, v8_str("break_id")).ToLocalChecked(); in DebugEventInObserver()
20636 CcTest::global()->Get(context, v8_str("f")).ToLocalChecked()); in DebugEventInObserver()
20828 CHECK(name->Equals(info.GetIsolate()->GetCurrentContext(), v8_str("foo")) in InstanceCheckedGetter()
20839 CHECK(name->Equals(info.GetIsolate()->GetCurrentContext(), v8_str("foo")) in InstanceCheckedSetter()
20913 inst->SetAccessor(v8_str("foo"), InstanceCheckedGetter, InstanceCheckedSetter, in THREADED_TEST()
20917 ->Set(context.local(), v8_str("f"), in THREADED_TEST()
20924 context->Global()->Get(context.local(), v8_str("obj")).ToLocalChecked())); in THREADED_TEST()
20931 context->Global()->Get(context.local(), v8_str("obj")).ToLocalChecked())); in THREADED_TEST()
20954 inst->SetAccessor(v8_str("foo"), InstanceCheckedGetter, InstanceCheckedSetter, in THREADED_TEST()
20958 ->Set(context.local(), v8_str("f"), in THREADED_TEST()
20965 context->Global()->Get(context.local(), v8_str("obj")).ToLocalChecked())); in THREADED_TEST()
20972 context->Global()->Get(context.local(), v8_str("obj")).ToLocalChecked())); in THREADED_TEST()
20984 proto->SetAccessor(v8_str("foo"), InstanceCheckedGetter, in THREADED_TEST()
20989 ->Set(context.local(), v8_str("f"), in THREADED_TEST()
20996 context->Global()->Get(context.local(), v8_str("obj")).ToLocalChecked())); in THREADED_TEST()
21003 context->Global()->Get(context.local(), v8_str("obj")).ToLocalChecked())); in THREADED_TEST()
21012 context->Global()->Get(context.local(), v8_str("obj")).ToLocalChecked())); in THREADED_TEST()
21070 templ->SetAccessor(v8_str("foo"), in Helper137002()
21075 ->Set(context.local(), v8_str("obj"), in Helper137002()
21104 ->Get(context.local(), v8_str("result")) in Helper137002()
21109 ->Get(context.local(), v8_str("result")) in Helper137002()
21133 templ->SetAccessor(v8_str("foo"), in THREADED_TEST()
21137 ->Set(context.local(), v8_str("obj"), in THREADED_TEST()
21191 ->Get(context.local(), v8_str("load_result")) in THREADED_TEST()
21195 ->Get(context.local(), v8_str("load_result2")) in THREADED_TEST()
21199 ->Get(context.local(), v8_str("keyed_load_result")) in THREADED_TEST()
21203 ->Get(context.local(), v8_str("keyed_load_result2")) in THREADED_TEST()
21207 ->Get(context.local(), v8_str("y_from_obj")) in THREADED_TEST()
21211 ->Get(context.local(), v8_str("y_from_subobj")) in THREADED_TEST()
21223 templ->SetAccessor(v8_str("foo"), in THREADED_TEST()
21227 ->Set(context.local(), v8_str("obj"), in THREADED_TEST()
21260 v8::Private::ForApi(isolate, v8_str("Bug"))) in THREADED_TEST()
21282 Local<v8::Private> key = v8::Private::New(isolate, v8_str("key")); in THREADED_TEST()
21309 v8::JSON::Parse(context->GetIsolate(), v8_str("{\"x\":42}")) in THREADED_TEST()
21312 global->Set(context.local(), v8_str("obj"), obj).FromJust(); in THREADED_TEST()
21321 v8::JSON::Parse(context->GetIsolate(), v8_str("42")).ToLocalChecked(); in THREADED_TEST()
21323 global->Set(context.local(), v8_str("obj"), obj).FromJust(); in THREADED_TEST()
21411 global0->Set(context0.local(), v8_str("x"), v8_num(42)).FromJust(); in TEST()
21420 global0->Set(context0.local(), v8_str("toJSON"), in TEST()
21428 ->Set(context1.local(), v8_str("other"), global0) in TEST()
21449 v8::Exception::Error(v8_str("cross context"))); in FailedAccessCheckThrows()
21513 ->Set(context1.local(), v8_str("other"), global0) in TEST()
21519 ->Set(context1.local(), v8_str("catcher"), in TEST()
21526 ->Set(context1.local(), v8_str("has_own_property"), in TEST()
21664 ->Set(env_.local(), v8_str("ShouldContinue"), func) in TestBody()
21678 proto->Set(v8_str("shouldContinue"), in TestBody()
21683 ->Set(env_.local(), v8_str("Klass"), in TestBody()
21698 proto->SetAccessorProperty(v8_str("shouldContinue"), FunctionTemplate::New( in TestBody()
21701 ->Set(env_.local(), v8_str("Klass"), in TestBody()
21716 v8_str("shouldContinue"), in TestBody()
21721 ->Set(env_.local(), v8_str("Klass"), in TestBody()
21746 proto->Set(v8_str("shouldContinue"), in TestBody()
21755 ->Set(env_.local(), v8_str("Klass"), in TestBody()
21773 ->Set(env_.local(), v8_str("WakeUpInterruptor"), in TestBody()
21780 ->Set(env_.local(), v8_str("ShouldContinue"), in TestBody()
21874 ->Set(env_.local(), v8_str("ShouldContinue"), func) in TestBody()
21950 CHECK(env->Global()->Set(env.local(), v8_str("func"), func).FromJust()); in THREADED_TEST()
21970 CHECK(env->Global()->Set(env.local(), v8_str("func2"), func2).FromJust()); in THREADED_TEST()
21984 if (i != 0) value = v8_str("escape value"); in TEST()
21990 CHECK(v8_str("escape value") in TEST()
22011 templ->SetAccessor(v8_str("x"), 0, SetterWhichExpectsThisAndHolderToDiffer); in TEST()
22013 ->Set(context.local(), v8_str("P"), in TEST()
22047 info.GetReturnValue().Set(v8_str("returned")); in OptimizationCallback()
22104 ->Set(context, v8_str("function_receiver"), function_receiver) in Run()
22121 global_holder->Set(context, v8_str("g_f"), function).FromJust(); in Run()
22122 global_holder->SetAccessorProperty(v8_str("g_acc"), function, function); in Run()
22123 function_holder->Set(context, v8_str("f"), function).FromJust(); in Run()
22124 function_holder->SetAccessorProperty(v8_str("acc"), function, function); in Run()
22225 global->Set(context.local(), v8_str("x"), function).FromJust(); in TEST()
22252 global->Set(context.local(), v8_str("x"), function).FromJust(); in TEST()
22273 global->Set(context.local(), v8_str("x"), function).FromJust(); in TEST()
22311 global->Set(context.local(), v8_str("sig_obj"), in TEST()
22314 global->Set(context.local(), v8_str("x"), in TEST()
22356 global->Set(context.local(), v8_str("sig_obj"), in TEST()
22359 global->Set(context.local(), v8_str("x"), in TEST()
22397 global->Set(context.local(), v8_str("sig_obj"), in TEST()
22400 global->Set(context.local(), v8_str("x"), in TEST()
22506 global->Get(context.local(), v8_str("f1")).ToLocalChecked()); in TEST()
22508 global->Get(context.local(), v8_str("f2")).ToLocalChecked()); in TEST()
22513 CHECK_EQ(0, global->Get(context.local(), v8_str("x1")) in TEST()
22518 CHECK_EQ(1, global->Get(context.local(), v8_str("x1")) in TEST()
22535 CHECK_EQ(0, global->Get(context.local(), v8_str("x1")) in TEST()
22539 CHECK_EQ(0, global->Get(context.local(), v8_str("x2")) in TEST()
22544 CHECK_EQ(0, global->Get(context.local(), v8_str("x1")) in TEST()
22548 CHECK_EQ(0, global->Get(context.local(), v8_str("x2")) in TEST()
22555 CHECK_EQ(0, global->Get(context.local(), v8_str("x1")) in TEST()
22559 CHECK_EQ(0, global->Get(context.local(), v8_str("x2")) in TEST()
22564 CHECK_EQ(3, global->Get(context.local(), v8_str("x1")) in TEST()
22568 CHECK_EQ(4, global->Get(context.local(), v8_str("x2")) in TEST()
22619 ->Set(current.local(), v8_str("friend"), in TEST()
22677 v8::ScriptOrigin origin(v8_str(url), v8::Integer::New(isolate, 13)); in TEST()
22678 v8::ScriptCompiler::Source script_source(v8_str("var foo;"), origin); in TEST()
22789 env->Global()->Get(env.local(), v8_str("x")).ToLocalChecked()); in TEST()
22791 x->GetOwnPropertyDescriptor(env.local(), v8_str("no_prop")) in TEST()
22795 x->GetOwnPropertyDescriptor(env.local(), v8_str("p0")).ToLocalChecked(); in TEST()
22798 ->Get(env.local(), v8_str("value")) in TEST()
22802 x->GetOwnPropertyDescriptor(env.local(), v8_str("p1")).ToLocalChecked(); in TEST()
22805 ->Get(env.local(), v8_str("set")) in TEST()
22809 ->Get(env.local(), v8_str("get")) in TEST()
22835 ->Set(context, v8_str("o"), in TEST()
22854 obj->Set(context, v8_str("key"), v8_str("value")).FromJust(); in TEST()
22855 obj->Delete(context, v8_str("key")).FromJust(); in TEST()
22857 obj->SetPrivate(context, v8::Private::New(isolate, v8_str("hidden key 2")), in TEST()
22858 v8_str("hidden value 2")) in TEST()
22874 ->Set(context, v8_str("o"), in TEST()
22950 v8::ScriptOrigin origin(v8_str("http://foo.com")); in RunStreamingTest()
22953 env.local(), &source, v8_str(full_source), origin); in RunStreamingTest()
23223 v8::ScriptOrigin origin(v8_str("http://foo.com")); in TEST()
23229 v8::ScriptCompiler::Compile(env.local(), &source, v8_str(full_source), in TEST()
23332 v8::ScriptOrigin origin(v8_str("http://foo.com")); in TEST()
23335 v8::ScriptCompiler::Compile(env.local(), &source, v8_str(full_source), in TEST()
23362 v8::Local<v8::String> source_string = v8_str(source); in TEST()
23363 v8::ScriptOrigin script_origin(v8_str(origin)); in TEST()
23382 v8::Local<v8::String> source_string = v8_str(source); in TEST()
23383 v8::ScriptOrigin script_origin(v8_str(origin)); in TEST()
23412 v8::ScriptOrigin origin(v8_str("origin")); in TestInvalidCacheData()
23413 v8::ScriptCompiler::Source source(v8_str("42"), origin, cached_data); in TestInvalidCacheData()
23439 v8::ScriptOrigin origin(v8_str("origin")); in TEST()
23440 v8::Local<v8::String> source_str = v8_str("function foo() {}"); in TEST()
23474 v8_str(" function foo() {}"); in TEST()
23554 ->Set(env.local(), v8_str("prohibited"), in TEST()
23582 CHECK(env->Global()->Set(env.local(), v8_str("object"), object).FromJust()); in TEST()
23583 CHECK(env->Global()->Set(env.local(), v8_str("proto"), proto).FromJust()); in TEST()
23584 CHECK(env->Global()->Set(env.local(), v8_str("proto2"), proto2).FromJust()); in TEST()
23726 obj_template->Set(v8_str("x"), v8::Integer::New(isolate, 42)); in TEST()
23733 global0->Set(context0, v8_str("object"), in TEST()
23760 global1->Set(context1, v8_str("object"), in TEST()
23799 obj_template->Set(v8_str("x"), v8::Integer::New(isolate, 42)); in TEST()
23806 global0->Set(context0, v8_str("object"), in TEST()
23833 global1->Set(context1, v8_str("object"), in TEST()
23954 obj->DefineOwnProperty(env.local(), v8_str("foo"), v8_num(1), v8::None) in TEST()
23956 obj->DefineOwnProperty(env.local(), v8_str("2"), v8_num(1), v8::None) in TEST()
23958 CHECK(obj->HasOwnProperty(env.local(), v8_str("foo")).FromJust()); in TEST()
23959 CHECK(obj->HasOwnProperty(env.local(), v8_str("2")).FromJust()); in TEST()
23960 CHECK(!obj->Delete(env.local(), v8_str("foo")).FromJust()); in TEST()
23983 auto func = binding->Get(env.local(), v8_str("testExtraShouldReturnFive")) in TEST()
23994 binding->Set(env.local(), v8_str("runtime"), in TEST()
23997 func = binding->Get(env.local(), v8_str("testExtraShouldCallToRuntime")) in TEST()
24019 binding->Get(env.local(), v8_str("testExperimentalExtraShouldReturnTen")) in TEST()
24030 binding->Set(env.local(), v8_str("runtime"), in TEST()
24034 v8_str("testExperimentalExtraShouldCallToRuntime")) in TEST()
24052 auto func = binding->Get(env.local(), v8_str("testExtraCanUseUtils")) in TEST()
24060 auto private_symbol = result->Get(env.local(), v8_str("privateSymbol")) in TEST()
24069 auto fulfilled_promise = result->Get(env.local(), v8_str("fulfilledPromise")) in TEST()
24077 result->Get(env.local(), v8_str("fulfilledPromise2")) in TEST()
24084 auto rejected_promise = result->Get(env.local(), v8_str("rejectedPromise")) in TEST()
24211 parent->PrototypeTemplate()->SetAccessorProperty(v8_str("age"), returns_42); in TEST()
24216 ->Set(env.local(), v8_str("Child"), in TEST()
24312 global_object->Get(env.local(), v8_str("boom")).ToLocalChecked()); in TEST()
24335 CHECK(env->Global()->Set(env.local(), v8_str("object"), object).FromJust()); in TEST()
24336 object->Set(env.local(), v8_str("length"), v8_num(2)).FromJust(); in TEST()
24337 object->Set(env.local(), 0U, v8_str("a")).FromJust(); in TEST()
24338 object->Set(env.local(), 1U, v8_str("b")).FromJust(); in TEST()
24371 env->Global()->Set(env.local(), v8_str("object"), object).FromJust(); in TEST()
24372 object->Set(env.local(), v8::Symbol::GetToStringTag(isolate), v8_str("hello")) in TEST()
24404 object_template->SetIntrinsicDataProperty(v8_str("values"), in TEST()
24409 CHECK(env->Global()->Set(env.local(), v8_str("obj1"), object).FromJust()); in TEST()
24413 object->Get(env.local(), v8_str("values")).ToLocalChecked()); in TEST()
24423 env2->Global()->Set(env2.local(), v8_str("obj2"), object2).FromJust()); in TEST()
24425 CHECK_NE(*object->Get(env2.local(), v8_str("values")).ToLocalChecked(), in TEST()
24426 *object2->Get(env2.local(), v8_str("values")).ToLocalChecked()); in TEST()
24429 object2->Get(env2.local(), v8_str("values")).ToLocalChecked()); in TEST()