Lines Matching refs:env2
2507 LocalContext env2(NULL, Local<ObjectTemplate>(), global_proxy); in GlobalProxyIdentityHash() local
9017 v8::Local<Context> env2 = Context::New(env1->GetIsolate()); in THREADED_TEST() local
9039 env2->SetSecurityToken(foo); in THREADED_TEST()
9041 Context::Scope scope_env2(env2); in THREADED_TEST()
9043 ->Call(env2, env2->Global(), 0, NULL) in THREADED_TEST()
9049 env2->SetSecurityToken(bar); in THREADED_TEST()
9050 Context::Scope scope_env2(env2); in THREADED_TEST()
9054 CHECK(Function::Cast(*spy2)->Call(env2, env2->Global(), 0, NULL).IsEmpty()); in THREADED_TEST()
9180 v8::Local<Context> env2 = Context::New(env1->GetIsolate()); in THREADED_TEST() local
9187 env2->SetSecurityToken(foo); in THREADED_TEST()
9191 CHECK(env2->Global()->Set(env2, v8_str("env1"), env1->Global()).FromJust()); in THREADED_TEST()
9194 env2->SetSecurityToken(bar); in THREADED_TEST()
9196 Context::Scope scope_env2(env2); in THREADED_TEST()
9213 v8::Local<Context> env2 = Context::New(env1->GetIsolate()); in THREADED_TEST() local
9220 env2->SetSecurityToken(foo); in THREADED_TEST()
9224 CHECK(env2->Global()->Set(env2, v8_str("env1"), env1->Global()).FromJust()); in THREADED_TEST()
9229 Context::Scope scope_env2(env2); in THREADED_TEST()
9235 env2->SetSecurityToken(bar); in THREADED_TEST()
9237 Context::Scope scope_env2(env2); in THREADED_TEST()
9247 v8::Local<Context> env2 = Context::New(env1->GetIsolate()); in THREADED_TEST() local
9254 env2->SetSecurityToken(foo); in THREADED_TEST()
9258 CHECK(env2->Global()->Set(env2, v8_str("env1"), env1->Global()).FromJust()); in THREADED_TEST()
9264 env2->SetSecurityToken(bar); in THREADED_TEST()
9266 Context::Scope scope_env2(env2); in THREADED_TEST()
9286 v8::Local<Context> env2 = Context::New(env1->GetIsolate()); in THREADED_TEST() local
9293 env2->SetSecurityToken(foo); in THREADED_TEST()
9297 CHECK(env2->Global()->Set(env2, v8_str("env1"), env1->Global()).FromJust()); in THREADED_TEST()
9303 env2->SetSecurityToken(bar); in THREADED_TEST()
9305 Context::Scope scope_env2(env2); in THREADED_TEST()
9326 v8::Local<Context> env2 = Context::New(env1->GetIsolate()); in TEST() local
9333 env2->SetSecurityToken(foo); in TEST()
9336 env2->Enter(); in TEST()
9339 Local<v8::Object> global2 = env2->Global(); in TEST()
9340 CHECK(global2->Set(env2, v8_str("prop"), in TEST()
9341 v8::Integer::New(env2->GetIsolate(), 1)) in TEST()
9347 global2->Get(env2, v8_str("getProp")).ToLocalChecked()) in TEST()
9351 env2->Exit(); in TEST()
9352 env2->DetachGlobal(); in TEST()
9398 v8::Local<Context> env2 = Context::New(env1->GetIsolate()); in TEST() local
9404 env2->SetSecurityToken(foo); in TEST()
9408 v8::Context::Scope scope(env2); in TEST()
9409 CHECK(env2->Global() 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()
9425 Local<v8::Object> global2 = env2->Global(); in TEST()
9426 env2->DetachGlobal(); in TEST()
9481 v8::Local<Context> env2 = in TEST() local
9488 env2->SetSecurityToken(foo); in TEST()
9495 v8::Context::Scope scope(env2); in TEST()
9496 CHECK(env2->Global()->Set(env2, v8_str("x"), v8_str("env2_x")).FromJust()); in TEST()
9516 Local<Object> env2_global = env2->Global(); in TEST()
9517 env2->DetachGlobal(); in TEST()
9530 env2 = Context::New(env1->GetIsolate(), 0, v8::Local<v8::ObjectTemplate>(), in TEST()
9532 env2->SetSecurityToken(foo); in TEST()
9534 v8::Context::Scope scope(env2); 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()
9550 ->Equals(env2, results->Get(env2, i + 0).ToLocalChecked()) in TEST()
9553 ->Equals(env2, results->Get(env2, i + 1).ToLocalChecked()) in TEST()
9556 ->Equals(env2, results->Get(env2, i + 2).ToLocalChecked()) in TEST()
9559 ->Equals(env2, results->Get(env2, i + 3).ToLocalChecked()) in TEST()
24419 LocalContext env2; in TEST() local
24421 object_template->NewInstance(env2.local()).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()
24431 auto ctx2 = v8::Utils::OpenHandle(*env2.local()); in TEST()