Lines Matching refs:v8_str

204     CHECK_EQ(v8_str("TypeError: Illegal invocation"),  in TestSignature()
228 fun_proto->Set(v8_str("prop_sig"), callback_sig); in THREADED_TEST()
229 fun_proto->Set(v8_str("prop"), callback); in THREADED_TEST()
231 v8_str("accessor_sig"), callback_sig, callback_sig); in THREADED_TEST()
232 fun_proto->SetAccessorProperty(v8_str("accessor"), callback, callback); in THREADED_TEST()
237 env->Global()->Set(v8_str("Fun"), fun->GetFunction()); in THREADED_TEST()
238 env->Global()->Set(v8_str("UnrelFun"), unrel_fun->GetFunction()); in THREADED_TEST()
239 env->Global()->Set(v8_str("fun_instance"), fun_instance); in THREADED_TEST()
240 env->Global()->Set(v8_str("sub_fun_instance"), sub_fun_instance); in THREADED_TEST()
290 cons->SetClassName(v8_str("Cons")); in THREADED_TEST()
298 env->Global()->Set(v8_str("Cons"), cons->GetFunction()); in THREADED_TEST()
299 env->Global()->Set(v8_str("Fun1"), fun->GetFunction()); in THREADED_TEST()
311 cons1->SetClassName(v8_str("Cons1")); in THREADED_TEST()
313 cons2->SetClassName(v8_str("Cons2")); in THREADED_TEST()
315 cons3->SetClassName(v8_str("Cons3")); in THREADED_TEST()
326 env->Global()->Set(v8_str("Cons1"), cons1->GetFunction()); in THREADED_TEST()
327 env->Global()->Set(v8_str("Cons2"), cons2->GetFunction()); in THREADED_TEST()
328 env->Global()->Set(v8_str("Cons3"), cons3->GetFunction()); in THREADED_TEST()
329 env->Global()->Set(v8_str("Fun2"), fun2->GetFunction()); in THREADED_TEST()
372 Local<Value> foo_before = obj->Get(v8_str("foo")); in THREADED_TEST()
374 Local<String> bar_str = v8_str("bar"); in THREADED_TEST()
375 obj->Set(v8_str("foo"), bar_str); in THREADED_TEST()
376 Local<Value> foo_after = obj->Get(v8_str("foo")); in THREADED_TEST()
389 Local<String> bar_str = v8_str("bar"); in THREADED_TEST()
397 CHECK_EQ(v8_str("a"), value->Get(0)); in THREADED_TEST()
398 CHECK_EQ(v8_str("b"), value->Get(1)); in THREADED_TEST()
566 Local<String> source = v8_str(c_source); in THREADED_TEST()
869 Local<String> left = v8_str(one_byte_string_1); in THREADED_TEST()
885 right = v8_str(one_byte_string_2); in THREADED_TEST()
912 global->Set(v8_str("pi"), v8_num(3.1415926)); in THREADED_TEST()
913 Local<Value> pi = global->Get(v8_str("pi")); in THREADED_TEST()
948 info.GetReturnValue().Set(v8_str("bad value")); in handle_callback_impl()
966 info.This()->Set(v8_str("x"), v8_num(1)); in construct_callback()
967 info.This()->Set(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 env->Global()->Set(v8_str("obj"), fun); in TestFunctionTemplateInitializer()
1010 env->Global()->Set(v8_str("obj"), fun); in TestFunctionTemplateInitializer()
1027 fun_templ->SetClassName(v8_str("funky")); in TestFunctionTemplateAccessor()
1028 fun_templ->InstanceTemplate()->SetAccessor(v8_str("m"), accessor); in TestFunctionTemplateAccessor()
1030 env->Global()->Set(v8_str("obj"), fun); in TestFunctionTemplateAccessor()
1032 CHECK_EQ(v8_str("[object funky]"), result); in TestFunctionTemplateAccessor()
1070 (*env)->Global()->Set(v8_str("callback_object"), object); in TestSimpleCallback()
1177 (*env)->Global()->Set(v8_str("callback_object"), object); in TestFastReturnValues()
1261 env->Global()->Set(v8_str("obj"), fun); in THREADED_TEST()
1270 env->Global()->Set(v8_str("obj"), fun); in THREADED_TEST()
1279 env->Global()->Set(v8_str("obj"), fun); in THREADED_TEST()
1303 obj->Set(v8_str("func"), in TestExternalPointerWrapping()
1305 env->Global()->Set(v8_str("obj"), obj); in TestExternalPointerWrapping()
1379 derived_instance2->Set(v8_str("__proto__"), derived_instance); in THREADED_TEST()
1380 other_instance->Set(v8_str("__proto__"), derived_instance2); in THREADED_TEST()
1731 Local<String> str = v8_str("3.1415926"); in THREADED_TEST()
1746 date.As<v8::Date>()->Set(v8_str("property"), in THREADED_TEST()
1748 CHECK_EQ(42, date.As<v8::Date>()->Get(v8_str("property"))->Int32Value()); in THREADED_TEST()
1764 v8::Handle<String> str1 = v8_str(""); in THREADED_TEST()
1766 v8::Handle<String> str2 = v8_str("x"); in THREADED_TEST()
1798 templ->SetAccessor(v8_str("m"), GetM); in THREADED_TEST()
1816 env->Global()->Set(v8_str("p"), instance1); in THREADED_TEST()
1825 env->Global()->Set(v8_str("q"), instance2); in THREADED_TEST()
1855 super->InstanceTemplate()->SetAccessor(v8_str("knurd"), GetKnurd); in THREADED_TEST()
1867 env->Global()->Set(v8_str("s"), super->GetFunction()); in THREADED_TEST()
1868 env->Global()->Set(v8_str("base1"), base1->GetFunction()); in THREADED_TEST()
1869 env->Global()->Set(v8_str("base2"), base2->GetFunction()); in THREADED_TEST()
1882 env->Global()->Set(v8_str("obj"), in THREADED_TEST()
1890 env->Global()->Set(v8_str("obj2"), in THREADED_TEST()
1910 CHECK_EQ(v8_str("data"), info.Data()); in EchoNamedProperty()
1922 self->Get(String::Concat(v8_str("accessor_"), name))); in SimpleAccessorGetter()
1928 self->Set(String::Concat(v8_str("accessor_"), name), value); in SimpleAccessorSetter()
1969 info.GetReturnValue().Set(self->GetHiddenValue(v8_str(name_str + i))); in InterceptorGetter()
2020 AddAccessor(parent, v8_str("age"), in THREADED_TEST()
2024 env->Global()->Set(v8_str("Child"), child->GetFunction()); in THREADED_TEST()
2046 i::Handle<i::String> name(v8::Utils::OpenHandle(*v8_str("length"))); in THREADED_TEST()
2058 env->Global()->Set(v8_str("Constructor"), templ->GetFunction()); in THREADED_TEST()
2076 env->Global()->Set(v8_str("Child"), child->GetFunction()); in THREADED_TEST()
2098 env->Global()->Set(v8_str("Child"), child->GetFunction()); in THREADED_TEST()
2114 AddAccessor(templ, v8_str("age"), in THREADED_TEST()
2118 env->Global()->Set(v8_str("Obj"), templ->GetFunction()); in THREADED_TEST()
2132 AddAccessor(templ, v8_str("age"), in THREADED_TEST()
2136 env->Global()->Set(v8_str("Obj"), templ->GetFunction()); in THREADED_TEST()
2152 AddAccessor(parent, v8_str("age"), in THREADED_TEST()
2156 env->Global()->Set(v8_str("Child"), child->GetFunction()); in THREADED_TEST()
2172 AddAccessor(parent, v8_str("age"), in THREADED_TEST()
2176 env->Global()->Set(v8_str("Child"), child->GetFunction()); in THREADED_TEST()
2192 env->Global()->Set(v8_str("Obj"), templ->GetFunction()); in THREADED_TEST()
2217 env->Global()->Set(v8_str("Obj"), templ->GetFunction()); in THREADED_TEST()
2244 env->Global()->Set(v8_str("Child"), child->GetFunction()); in THREADED_TEST()
2262 env->Global()->Set(v8_str("Child"), child->GetFunction()); in THREADED_TEST()
2280 v8_str("data")); in THREADED_TEST()
2282 env->Global()->Set(v8_str("obj"), in THREADED_TEST()
2319 env->Global()->Set(v8_str("obj"), in THREADED_TEST()
2442 env->Global()->Set(v8_str("obj"), bottom); in THREADED_PROFILED_TEST()
2469 if (v8_str("pre")->Equals(key)) { in PrePropertyHandlerGet()
2470 info.GetReturnValue().Set(v8_str("PrePropertyHandler: pre")); in PrePropertyHandlerGet()
2478 if (v8_str("pre")->Equals(key)) { in PrePropertyHandlerQuery()
2494 CHECK_EQ(v8_str("PrePropertyHandler: pre"), result_pre); in THREADED_TEST()
2496 CHECK_EQ(v8_str("Object: on"), result_on); in THREADED_TEST()
2517 int depth = args.This()->Get(v8_str("depth"))->Int32Value(); in CallScriptRecursivelyCall()
2519 args.This()->Set(v8_str("depth"), in CallScriptRecursivelyCall()
2528 int depth = args.This()->Get(v8_str("depth"))->Int32Value(); in CallFunctionRecursivelyCall()
2533 args.This()->Set(v8_str("depth"), in CallFunctionRecursivelyCall()
2536 args.This()->Get(v8_str("callFunctionRecursively")); in CallFunctionRecursivelyCall()
2546 global->Set(v8_str("callScriptRecursively"), in THREADED_TEST()
2548 global->Set(v8_str("callFunctionRecursively"), in THREADED_TEST()
2552 env->Global()->Set(v8_str("depth"), v8::Integer::New(isolate, 0)); in THREADED_TEST()
2557 env->Global()->Set(v8_str("depth"), v8::Integer::New(isolate, 0)); in THREADED_TEST()
2586 env->Global()->Set(v8_str("obj"), obj->NewInstance()); in THREADED_TEST()
2589 CHECK_EQ(v8_str("otto"), otto); in THREADED_TEST()
2592 CHECK_EQ(v8_str("netto"), netto); in THREADED_TEST()
2600 Foo->PrototypeTemplate()->Set(v8_str("plak"), v8_num(321)); in THREADED_TEST()
2602 env->Global()->Set(v8_str("Foo"), Foo->GetFunction()); in THREADED_TEST()
2824 v8::Symbol::New(isolate, v8_str("my-symbol")); in THREADED_TEST()
2826 v8::Symbol::New(isolate, v8_str("sym3")); in THREADED_TEST()
2844 CHECK(sym2->Name()->Equals(v8_str("my-symbol"))); in THREADED_TEST()
2946 v8::Private::New(isolate, v8_str("my-private")); in THREADED_TEST()
3002 v8::Local<String> name = v8_str("my-symbol"); in THREADED_TEST()
3016 v8::Local<Value> sym2 = env->Global()->Get(v8_str("sym2")); in THREADED_TEST()
3031 v8::Local<Value> value = env->Global()->Get(v8_str("sym")); in CheckWellKnownSymbol()
3050 v8::Local<String> name = v8_str("my-private"); in THREADED_TEST()
3062 v8::Local<Value> intern = env->Global()->Get(v8_str("intern")); in THREADED_TEST()
3105 env->Global()->Set(v8_str("ab"), ab); in THREADED_TEST()
3179 env->Global()->Set(v8_str("ab3"), ab3); in THREADED_TEST()
3337 v8::Local<v8::String> key = v8_str("api-test::hidden-key"); in THREADED_TEST()
3338 v8::Local<v8::String> empty = v8_str(""); in THREADED_TEST()
3339 v8::Local<v8::String> prop_name = v8_str("prop_name"); in THREADED_TEST()
3392 v8::Local<v8::String> key = v8_str("hidden"); in THREADED_TEST()
3426 v8::Local<v8::String> key = v8_str("api-test::hidden-key"); in THREADED_TEST()
3445 env->Global()->Set(v8_str("ext"), ext); in THREADED_TEST()
3477 global.Reset(isolate, v8_str("str")); in THREADED_TEST()
3486 global.Reset(isolate, v8_str("str")); in THREADED_TEST()
3501 global.Reset(isolate, v8_str("str")); in THREADED_TEST()
3512 global.Reset(isolate, v8_str("longer")); in THREADED_TEST()
3529 global.Reset(isolate, v8_str("str")); in THREADED_TEST()
3567 global.Reset(isolate, v8_str("str")); in THREADED_TEST()
3758 v8::Local<String> local = v8::Local<String>::New(isolate, v8_str("str")); in THREADED_TEST()
3774 global1.Reset(isolate, v8_str("str")); in THREADED_TEST()
3775 global2.Reset(isolate, v8_str("str2")); in THREADED_TEST()
3809 v8::Local<String>::New(CcTest::isolate(), v8_str("str")); in THREADED_TEST()
4202 v8_str("x"), Local<Value>::New(iso, g2s1.handle)); in TEST()
4206 v8_str("x"), Local<Value>::New(iso, g3s1.handle)); in TEST()
4210 v8_str("x"), Local<Value>::New(iso, g1s1.handle)); in TEST()
4236 v8_str("x"), Local<Value>::New(iso, g2s1.handle)); in TEST()
4240 v8_str("x"), Local<Value>::New(iso, g3s1.handle)); in TEST()
4244 v8_str("x"), Local<Value>::New(iso, g1s1.handle)); in TEST()
4275 Get(v8_str("a"))->Equals(v8_str("b"))); in TEST()
4332 v8::Object::Cast(*data)->GetHiddenValue(v8_str("hidden key")); in check_message_2()
4333 CHECK(v8_str("hidden value")->Equals(hidden_property)); in check_message_2()
4345 v8::Local<v8::Value> error = v8::Exception::Error(v8_str("custom error")); in TEST()
4346 v8::Object::Cast(*error)->SetHiddenValue(v8_str("hidden key"), in TEST()
4347 v8_str("hidden value")); in TEST()
4348 context->Global()->Set(v8_str("error"), error); in TEST()
4372 v8::ScriptOrigin(v8_str("6.75"), in TEST()
4376 v8::Handle<v8::Script> script = Script::Compile(v8_str("throw 'error'"), in TEST()
4401 v8::ScriptOrigin(v8_str("6.75"), in TEST()
4405 v8::Handle<v8::Script> script = Script::Compile(v8_str("throw 'error'"), in TEST()
4438 v8::ScriptOrigin(v8_str("6.75"), in TEST()
4442 v8::Handle<v8::Script> script = Script::Compile(v8_str("throw 'error'"), in TEST()
4452 v8::ScriptOrigin(v8_str("6.75"), in TEST()
4456 script = Script::Compile(v8_str("throw 'error'"), in TEST()
4469 context->Global()->Set(v8_str("foo"), v8_num(14)); in THREADED_TEST()
4470 context->Global()->Set(v8_str("12"), v8_num(92)); in THREADED_TEST()
4483 CHECK_EQ(92, context->Global()->Get(v8_str("12"))->Int32Value()); in THREADED_TEST()
4487 CHECK_EQ(32, context->Global()->Get(v8_str("16"))->Int32Value()); in THREADED_TEST()
4491 CHECK_EQ(56, context->Global()->Get(v8_str("13"))->Int32Value()); in THREADED_TEST()
4500 Local<String> prop = v8_str("none"); in THREADED_TEST()
4504 prop = v8_str("read_only"); in THREADED_TEST()
4513 prop = v8_str("dont_delete"); in THREADED_TEST()
4520 prop = v8_str("dont_enum"); in THREADED_TEST()
4524 prop = v8_str("absent"); in THREADED_TEST()
4582 global->Set(v8_str("f"), v8::FunctionTemplate::New(isolate, HandleF)); in THREADED_TEST()
4637 Local<Function>::Cast(context->Global()->Get(v8_str("Foo"))); in THREADED_TEST()
4639 Local<Function>::Cast(context->Global()->Get(v8_str("ReturnThisSloppy"))); in THREADED_TEST()
4641 Local<Function>::Cast(context->Global()->Get(v8_str("ReturnThisStrict"))); in THREADED_TEST()
4686 Local<v8::Value> r4 = ReturnThisSloppy->Call(v8_str("hello"), 0, NULL); in THREADED_TEST()
4688 CHECK(r4.As<v8::StringObject>()->ValueOf()->StrictEquals(v8_str("hello"))); in THREADED_TEST()
4699 Local<v8::Value> r9 = ReturnThisStrict->Call(v8_str("hello"), 0, NULL); in THREADED_TEST()
4700 CHECK(r9->StrictEquals(v8_str("hello"))); in THREADED_TEST()
4719 Local<Function>::Cast(context->Global()->Get(v8_str("Foo"))); in THREADED_TEST()
4772 Local<Value> obj = env->Global()->Get(v8_str("obj")); in THREADED_TEST()
4778 obj = env->Global()->Get(v8_str("obj")); in THREADED_TEST()
4784 obj = env->Global()->Get(v8_str("obj")); in THREADED_TEST()
4790 obj = env->Global()->Get(v8_str("obj")); in THREADED_TEST()
4796 obj = env->Global()->Get(v8_str("obj")); in THREADED_TEST()
4802 obj = env->Global()->Get(v8_str("obj")); in THREADED_TEST()
4808 obj = env->Global()->Get(v8_str("obj")); in THREADED_TEST()
4820 Local<Value> obj = env->Global()->Get(v8_str("obj")); in THREADED_TEST()
4825 obj = env->Global()->Get(v8_str("obj")); in THREADED_TEST()
4830 obj = env->Global()->Get(v8_str("obj")); in THREADED_TEST()
4835 obj = env->Global()->Get(v8_str("obj")); in THREADED_TEST()
4840 obj = env->Global()->Get(v8_str("obj")); in THREADED_TEST()
4845 obj = env->Global()->Get(v8_str("obj")); in THREADED_TEST()
4850 obj = env->Global()->Get(v8_str("obj")); in THREADED_TEST()
4855 obj = env->Global()->Get(v8_str("obj")); in THREADED_TEST()
4860 obj = env->Global()->Get(v8_str("obj")); in THREADED_TEST()
4874 Local<Value> obj = env->Global()->Get(v8_str("obj")); in THREADED_TEST()
4923 args.GetIsolate()->ThrowException(v8_str("konto")); in ThrowFromC()
4944 templ->Set(v8_str("ThrowFromC"), in THREADED_TEST()
4954 Local<Value> thrown = context->Global()->Get(v8_str("thrown")); in THREADED_TEST()
4963 templ->Set(v8_str("ThrowFromC"), in THREADED_TEST()
4983 templ->Set(v8_str("CCatcher"), in TEST()
5001 CHECK(message->Get()->Equals(v8_str(reference_error))); in check_reference_error_message()
5019 templ->Set(v8_str("fail"), v8::FunctionTemplate::New(isolate, Fail)); in TEST()
5043 CHECK(string->Equals(v8_str("Whoops"))); in TEST()
5057 CHECK(message->Get()->Equals(v8_str(uncaught_error))); in check_custom_error_tostring()
5084 CHECK(message->Get()->Equals(v8_str(uncaught_error))); in check_custom_error_message()
5144 templ->Set(v8_str("ThrowFromC"), in TEST()
5159 templ->Set(v8_str("ThrowFromC"), in TEST()
5191 templ->Set(v8_str("ThrowFromC"), in THREADED_TEST()
5211 args.GetIsolate()->ThrowException(v8_str("FromC")); in CThrowCountDown()
5216 Local<Value> fun = global->Get(v8_str("JSThrowCountDown")); in CThrowCountDown()
5295 templ->Set(v8_str("check"), v8::FunctionTemplate::New(isolate, JSCheck)); in TEST()
5296 templ->Set(v8_str("CThrowCountDown"), in TEST()
5318 Local<Function>::Cast(context->Global()->Get(v8_str("JSThrowCountDown"))); in TEST()
5360 templ->Set(v8_str("Throw"), v8::FunctionTemplate::New(isolate, ThrowValue)); in THREADED_TEST()
5430 v8_str("native_with_try_catch"), in THREADED_TEST()
5452 CcTest::isolate()->ThrowException(v8_str("E1")); in TryCatchNested1Helper()
5527 templ->Set(v8_str("TryCatchMixedNestingHelper"), in TEST()
5538 args.GetIsolate()->ThrowException(v8_str("boom")); in TryCatchNativeHelper()
5549 templ->Set(v8_str("TryCatchNativeHelper"), in TEST()
5561 args.GetIsolate()->ThrowException(v8_str("boom")); in TryCatchNativeResetHelper()
5574 templ->Set(v8_str("TryCatchNativeResetHelper"), in TEST()
5587 CHECK(v8_str("a")->Equals(v8_str("a"))); in THREADED_TEST()
5588 CHECK(!v8_str("a")->Equals(v8_str("b"))); in THREADED_TEST()
5590 CHECK_EQ(v8_str("a"), v8_str("a")); in THREADED_TEST()
5591 CHECK_NE(v8_str("a"), v8_str("b")); in THREADED_TEST()
5597 CHECK(v8_str("a")->StrictEquals(v8_str("a"))); in THREADED_TEST()
5598 CHECK(!v8_str("a")->StrictEquals(v8_str("b"))); in THREADED_TEST()
5599 CHECK(!v8_str("5")->StrictEquals(v8_num(5))); in THREADED_TEST()
5613 CHECK(v8_str("a")->SameValue(v8_str("a"))); in THREADED_TEST()
5614 CHECK(!v8_str("a")->SameValue(v8_str("b"))); in THREADED_TEST()
5615 CHECK(!v8_str("5")->SameValue(v8_num(5))); in THREADED_TEST()
5637 CHECK_EQ(info.Data(), v8_str("donut")); in GetXValue()
5638 CHECK_EQ(name, v8_str("x")); in GetXValue()
5648 templ->SetAccessor(v8_str("x"), GetXValue, NULL, v8_str("donut")); in THREADED_TEST()
5649 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in THREADED_TEST()
5653 CHECK_EQ(result, v8_str("x")); in THREADED_TEST()
5663 templ->SetAccessor(v8_str("x"), GetXValue, NULL, v8_str("donut")); in THREADED_TEST()
5664 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in THREADED_TEST()
5711 templ->SetAccessor(v8_str("x"), GetXValue, NULL, v8_str("donut")); in THREADED_TEST()
5713 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in THREADED_TEST()
5757 return v8::Handle<v8::Object>::Cast((*context)->Global()->Get(v8_str(name))); in GetGlobalProperty()
5767 context->Global()->Set(v8_str("obj1"), templ->NewInstance()); in THREADED_TEST()
5774 SetAccessor(v8_str("x"), GetXValue, NULL, v8_str("donut"))); in THREADED_TEST()
5780 SetAccessor(v8_str("x"), GetXValue, NULL, v8_str("donut"))); in THREADED_TEST()
5804 SetAccessor(v8_str("x"), GetXValue, NULL, v8_str("donut"))); in THREADED_TEST()
5806 SetAccessor(v8_str("x"), GetXValue, NULL, v8_str("donut"))); in THREADED_TEST()
5827 SetAccessor(v8_str("x"), GetXValue, NULL, v8_str("donut"))); in THREADED_TEST()
5829 SetAccessor(v8_str("x"), GetXValue, NULL, v8_str("donut"))); in THREADED_TEST()
5842 context->Global()->Set(v8_str("obj1"), templ->NewInstance()); in THREADED_TEST()
5846 v8_str("x"), in THREADED_TEST()
5848 v8_str("donut"), v8::DEFAULT, v8::DontDelete)); in THREADED_TEST()
5850 v8_str("x"), in THREADED_TEST()
5852 v8_str("donut"), v8::DEFAULT, v8::DontDelete)); in THREADED_TEST()
5861 SetAccessor(v8_str("x"), GetXValue, NULL, v8_str("donut"))); in THREADED_TEST()
5863 SetAccessor(v8_str("x"), GetXValue, NULL, v8_str("donut"))); in THREADED_TEST()
5887 CHECK_EQ(info.Data(), v8_str("donut")); in Get239Value()
5888 CHECK_EQ(name, v8_str("239")); in Get239Value()
5899 context->Global()->Set(v8_str("obj1"), templ->NewInstance()); in THREADED_TEST()
5903 v8_str("239"), in THREADED_TEST()
5905 v8_str("donut"))); in THREADED_TEST()
5907 v8_str("239"), in THREADED_TEST()
5909 v8_str("donut"))); in THREADED_TEST()
5925 CHECK_EQ(info.Data(), v8_str("donut")); in SetXValue()
5926 CHECK_EQ(name, v8_str("x")); in SetXValue()
5936 templ->SetAccessor(v8_str("x"), GetXValue, SetXValue, v8_str("donut")); in THREADED_TEST()
5938 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in THREADED_TEST()
5953 templ->SetAccessor(v8_str("x"), NULL, SetXValue, v8_str("donut")); in THREADED_TEST()
5955 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in THREADED_TEST()
5970 templ->SetAccessor(v8_str("x"), in THREADED_TEST()
5973 v8_str("donut")); in THREADED_TEST()
5975 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in THREADED_TEST()
5997 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in THREADED_TEST()
6001 CHECK_EQ(result, v8_str("x")); in THREADED_TEST()
6013 context->Global()->Set(v8_str("interceptor_obj"), templ->NewInstance()); in THREADED_TEST()
6017 CHECK_EQ(result, v8_str("x")); in THREADED_TEST()
6033 CHECK_EQ(result, v8_str("x")); in THREADED_TEST()
6047 context1->Global()->Set(v8_str("interceptor_obj"), object); in THREADED_TEST()
6058 context2->Global()->Set(v8_str("interceptor_obj"), object); in THREADED_TEST()
6067 CHECK_EQ(result, v8_str("x")); in THREADED_TEST()
6083 proto.As<v8::Object>()->Set(v8_str("x"), in SetXOnPrototypeGetter()
6099 context->Global()->Set(v8_str("F"), function_template->GetFunction()); in THREADED_TEST()
6136 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in THREADED_TEST()
6205 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in THREADED_TEST()
6261 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in THREADED_TEST()
6284 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in THREADED_TEST()
6306 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in THREADED_TEST()
6332 context->Global()->Set(v8_str("obj"), obj); in THREADED_TEST()
6359 context->Global()->Set(v8_str("obj"), obj); in THREADED_TEST()
6397 context->Global()->Set(v8_str("obj"), obj); in THREADED_TEST()
6421 context->Global()->Set(v8_str("obj"), obj); in THREADED_TEST()
6461 context->Global()->Set(v8_str("obj"), obj); in THREADED_TEST()
6491 context->Global()->Set(v8_str("obj"), obj); in THREADED_TEST()
6522 context->Global()->Set(v8_str("obj"), obj); in THREADED_TEST()
6553 context->Global()->Set(v8_str("obj"), obj); in THREADED_TEST()
6574 templ->Set(v8_str("dummy"), v8::FunctionTemplate::New(isolate, in THREADED_TEST()
6577 Local<String> password = v8_str("Password"); in THREADED_TEST()
6583 global0->Set(v8_str("custom"), v8_num(1234)); in THREADED_TEST()
6584 CHECK_EQ(1234, global0->Get(v8_str("custom"))->Int32Value()); in THREADED_TEST()
6590 global1->Set(v8_str("custom"), v8_num(1234)); in THREADED_TEST()
6592 CHECK_EQ(1234, global0->Get(v8_str("custom"))->Int32Value()); in THREADED_TEST()
6593 CHECK_EQ(1234, global1->Get(v8_str("custom"))->Int32Value()); in THREADED_TEST()
6600 CHECK_EQ(0, global1->Get(v8_str("custom"))->Int32Value()); in THREADED_TEST()
6601 CHECK_EQ(0, global2->Get(v8_str("custom"))->Int32Value()); in THREADED_TEST()
6615 global0->Get(v8_str("Object")).As<v8::Object>(); in THREADED_TEST()
6617 object0->Get(v8_str("toString")).As<v8::Object>(); in THREADED_TEST()
6619 tostring0->Get(v8_str("__proto__")).As<v8::Object>(); in THREADED_TEST()
6620 proto0->Set(v8_str("custom"), v8_num(1234)); in THREADED_TEST()
6626 global1->Get(v8_str("Object")).As<v8::Object>(); in THREADED_TEST()
6628 object1->Get(v8_str("toString")).As<v8::Object>(); in THREADED_TEST()
6630 tostring1->Get(v8_str("__proto__")).As<v8::Object>(); in THREADED_TEST()
6631 CHECK(!proto1->Has(v8_str("custom"))); in THREADED_TEST()
6644 Local<String> source = v8_str("Object.prototype.obj = 1234;" in THREADED_TEST()
6667 env->Global()->Set(v8_str("undetectable"), obj); in THREADED_TEST()
6711 env->Global()->Set(v8_str("undetectable"), obj); in THREADED_TEST()
6755 env->Global()->Set(v8_str("undetectable"), obj); in THREADED_TEST()
6757 Local<String> source = v8_str("undetectable.x = 42;" in THREADED_TEST()
6766 source = v8_str("Object.preventExtensions(undetectable);"); in THREADED_TEST()
6771 source = v8_str("undetectable.y = 2000;"); in THREADED_TEST()
6785 env->Global()->Set(v8_str("undetectable"), obj); in THREADED_TEST()
6827 env->Global()->Set(v8_str("undetectable"), obj); in TEST()
6828 env->Global()->Set(v8_str("detectable"), v8_str("bar")); in TEST()
6859 Local<String> str = v8_str("foo"); in TEST()
6881 global_template->Set(v8_str("JSNI_Log"), in THREADED_TEST()
7203 context->Global()->Get(v8_str("loaded"))); in CheckDependencies()
7232 CHECK_EQ(v8_str("undefinedACBDE"), context->Global()->Get(v8_str("loaded"))); in THREADED_TEST()
7250 args.This()->Set(v8_str("data"), args.Data()); in CallFun()
7271 if (name->Equals(v8_str("A"))) { in GetNativeFunctionTemplate()
7274 } else if (name->Equals(v8_str("B"))) { in GetNativeFunctionTemplate()
7277 } else if (name->Equals(v8_str("C"))) { in GetNativeFunctionTemplate()
7485 o->Set(v8_str("x"), v8::Integer::New(isolate, 1)); in THREADED_TEST()
7486 v8::Local<String> y_str = v8_str("y"); in THREADED_TEST()
7499 v8::Local<String> y_str = v8_str("y"); in THREADED_TEST()
7500 CHECK_EQ(v8::Integer::New(isolate, 1), o->Get(v8_str("x"))); in THREADED_TEST()
7528 global->Set(v8_str("f"), in THREADED_TEST()
7531 args_fun = context->Global()->Get(v8_str("f")).As<Function>(); in THREADED_TEST()
7548 if (!name->Equals(v8_str("foo"))) { in PDeleter()
7573 context->Global()->Set(v8_str("k"), obj->NewInstance()); in THREADED_TEST()
7582 CHECK_EQ(v8_compile("k.foo")->Run(), v8_str("foo")); in THREADED_TEST()
7596 if (name->Equals(v8_str("foo")) || in GetK()
7597 name->Equals(v8_str("bar")) || in GetK()
7598 name->Equals(v8_str("baz"))) { in GetK()
7614 result->Set(v8::Integer::New(info.GetIsolate(), 0), v8_str("foo")); in NamedEnum()
7615 result->Set(v8::Integer::New(info.GetIsolate(), 1), v8_str("bar")); in NamedEnum()
7616 result->Set(v8::Integer::New(info.GetIsolate(), 2), v8_str("baz")); in NamedEnum()
7624 result->Set(v8::Integer::New(info.GetIsolate(), 0), v8_str("0")); in IndexedEnum()
7625 result->Set(v8::Integer::New(info.GetIsolate(), 1), v8_str("1")); in IndexedEnum()
7637 context->Global()->Set(v8_str("k"), obj->NewInstance()); in THREADED_TEST()
7664 CHECK_EQ(v8_str("5"), result->Get(v8::Integer::New(isolate, 0))); in THREADED_TEST()
7665 CHECK_EQ(v8_str("10"), result->Get(v8::Integer::New(isolate, 1))); in THREADED_TEST()
7666 CHECK_EQ(v8_str("140000"), result->Get(v8::Integer::New(isolate, 2))); in THREADED_TEST()
7667 CHECK_EQ(v8_str("4294967295"), result->Get(v8::Integer::New(isolate, 3))); in THREADED_TEST()
7670 CHECK_EQ(v8_str("0"), result->Get(v8::Integer::New(isolate, 4))); in THREADED_TEST()
7671 CHECK_EQ(v8_str("1"), result->Get(v8::Integer::New(isolate, 5))); in THREADED_TEST()
7673 CHECK_EQ(v8_str("a"), result->Get(v8::Integer::New(isolate, 6))); in THREADED_TEST()
7674 CHECK_EQ(v8_str("b"), result->Get(v8::Integer::New(isolate, 7))); in THREADED_TEST()
7675 CHECK_EQ(v8_str("c"), result->Get(v8::Integer::New(isolate, 8))); in THREADED_TEST()
7676 CHECK_EQ(v8_str("4294967296"), result->Get(v8::Integer::New(isolate, 9))); in THREADED_TEST()
7677 CHECK_EQ(v8_str("d"), result->Get(v8::Integer::New(isolate, 10))); in THREADED_TEST()
7678 CHECK_EQ(v8_str("e"), result->Get(v8::Integer::New(isolate, 11))); in THREADED_TEST()
7679 CHECK_EQ(v8_str("30000000000"), result->Get(v8::Integer::New(isolate, 12))); in THREADED_TEST()
7680 CHECK_EQ(v8_str("f"), result->Get(v8::Integer::New(isolate, 13))); in THREADED_TEST()
7682 CHECK_EQ(v8_str("foo"), result->Get(v8::Integer::New(isolate, 14))); in THREADED_TEST()
7683 CHECK_EQ(v8_str("bar"), result->Get(v8::Integer::New(isolate, 15))); in THREADED_TEST()
7684 CHECK_EQ(v8_str("baz"), result->Get(v8::Integer::New(isolate, 16))); in THREADED_TEST()
7698 CHECK_EQ(info.Holder(), global->Get(v8_str("o1"))); in PGetter()
7699 if (name->Equals(v8_str("p1"))) { in PGetter()
7700 CHECK_EQ(info.This(), global->Get(v8_str("o1"))); in PGetter()
7701 } else if (name->Equals(v8_str("p2"))) { in PGetter()
7702 CHECK_EQ(info.This(), global->Get(v8_str("o2"))); in PGetter()
7703 } else if (name->Equals(v8_str("p3"))) { in PGetter()
7704 CHECK_EQ(info.This(), global->Get(v8_str("o3"))); in PGetter()
7705 } else if (name->Equals(v8_str("p4"))) { in PGetter()
7706 CHECK_EQ(info.This(), global->Get(v8_str("o4"))); in PGetter()
7714 context->Global()->Set(v8_str("o1"), obj->NewInstance()); in RunHolderTest()
7733 CHECK_EQ(info.Holder(), global->Get(v8_str("o1"))); in PGetter2()
7734 if (name->Equals(v8_str("p1"))) { in PGetter2()
7735 CHECK_EQ(info.This(), global->Get(v8_str("o1"))); in PGetter2()
7736 } else if (name->Equals(v8_str("p2"))) { in PGetter2()
7737 CHECK_EQ(info.This(), global->Get(v8_str("o2"))); in PGetter2()
7738 } else if (name->Equals(v8_str("p3"))) { in PGetter2()
7739 CHECK_EQ(info.This(), global->Get(v8_str("o3"))); in PGetter2()
7740 } else if (name->Equals(v8_str("p4"))) { in PGetter2()
7741 CHECK_EQ(info.This(), global->Get(v8_str("o4"))); in PGetter2()
7750 obj->SetAccessor(v8_str("p1"), PGetter); in THREADED_TEST()
7751 obj->SetAccessor(v8_str("p2"), PGetter); in THREADED_TEST()
7752 obj->SetAccessor(v8_str("p3"), PGetter); in THREADED_TEST()
7753 obj->SetAccessor(v8_str("p4"), PGetter); in THREADED_TEST()
7775 templ->SetAccessor(v8_str("t"), PGetter2); in THREADED_TEST()
7777 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
7781 CHECK_NE(obj, context->Global()->Get(v8_str("o"))); in THREADED_TEST()
7782 context->Global()->Set(v8_str("o2"), obj); in THREADED_TEST()
7786 context->Global()->Set(v8_str("o"), obj); in THREADED_TEST()
7826 v8::Handle<String> str = v8_str("abcde"); in THREADED_TEST()
7828 v8::Handle<String> str2 = v8_str("abc\303\260\342\230\203"); in THREADED_TEST()
7859 Handle<String> left_tree = global->Get(v8_str("left")).As<String>(); in THREADED_TEST()
7860 Handle<String> right_tree = global->Get(v8_str("right")).As<String>(); in THREADED_TEST()
8137 Local<v8::Array>::Cast(context->Global()->Get(v8_str(name))); in Utf16Helper()
8139 Local<v8::Array>::Cast(context->Global()->Get(v8_str(lengths_name))); in Utf16Helper()
8164 Local<v8::Array>::Cast(context->Global()->Get(v8_str(name))); in WriteUtf8Helper()
8166 Local<v8::Array>::Cast(context->Global()->Get(v8_str(lengths_name))); in WriteUtf8Helper()
8198 Handle<String> roundtrip = v8_str(buffer); in WriteUtf8Helper()
8351 Local<Value> s0 = global->Get(v8_str("sym0")); in THREADED_TEST()
8352 Local<Value> s0b = global->Get(v8_str("sym0b")); in THREADED_TEST()
8353 Local<Value> s1 = global->Get(v8_str("sym1")); in THREADED_TEST()
8354 Local<Value> s2 = global->Get(v8_str("sym2")); in THREADED_TEST()
8355 Local<Value> s3 = global->Get(v8_str("sym3")); in THREADED_TEST()
8356 Local<Value> s4 = global->Get(v8_str("sym4")); in THREADED_TEST()
8371 v8::Handle<String> str = v8_str("42"); in THREADED_TEST()
8375 str = v8_str("42asdf"); in THREADED_TEST()
8378 str = v8_str("-42"); in THREADED_TEST()
8381 str = v8_str("4294967295"); in THREADED_TEST()
8402 v8::Handle<String> foo = v8_str("foo"); in THREADED_TEST()
8403 v8::Handle<String> message = v8_str("message"); in THREADED_TEST()
8442 obj->SetAccessor(v8_str("y"), YGetter, YSetter); in THREADED_TEST()
8445 context->Global()->Set(v8_str("holder"), holder); in THREADED_TEST()
8487 arg_this->Get(v8_str("trouble_callee")) : in TroubleCallback()
8488 arg_this->Get(v8_str("trouble_caller")); in TroubleCallback()
8514 global->Set(v8_str("trouble"), fun->GetFunction()); in TEST()
8524 Local<Value> trouble = global->Get(v8_str("trouble")); in TEST()
8526 Local<Value> trouble_callee = global->Get(v8_str("trouble_callee")); in TEST()
8528 Local<Value> trouble_caller = global->Get(v8_str("trouble_caller")); in TEST()
8557 global->Set(v8_str("trouble"), fun->GetFunction()); in TEST()
8565 Local<Value> trouble = global->Get(v8_str("trouble")); in TEST()
8614 templ->Set(v8_str("CEvaluate"), in TEST()
8684 global0->Set(v8_str("0"), v8_num(999)); in TEST()
8685 v8::Handle<Value> foo0 = global0->Get(v8_str("foo")); in TEST()
8687 v8::Handle<Value> z0 = global0->Get(v8_str("0")); in TEST()
8698 global1->Set(v8_str("othercontext"), global0); in TEST()
8704 v8::Handle<Value> foo1 = global0->Get(v8_str("foo")); in TEST()
8707 v8::Handle<Value> z1 = global0->Get(v8_str("0")); in TEST()
8715 global2->Set(v8_str("othercontext"), global0); in TEST()
8719 v8::Handle<Value> foo2 = global0->Get(v8_str("foo")); in TEST()
8721 v8::Handle<Value> z2 = global0->Get(v8_str("0")); in TEST()
8735 Local<Value> foo = v8_str("foo"); in THREADED_TEST()
8736 Local<Value> bar = v8_str("bar"); in THREADED_TEST()
8743 Local<Value> spy = env1->Global()->Get(v8_str("spy")); in THREADED_TEST()
8748 Local<Value> spy2 = env1->Global()->Get(v8_str("spy2")); in THREADED_TEST()
8782 other_object = other->Global()->Get(v8_str("Object")); in THREADED_TEST()
8786 current->Global()->Set(v8_str("other"), other->Global()); in THREADED_TEST()
8816 other->Global()->Set(v8_str("__proto__"), current->Global()); in THREADED_TEST()
8821 current->Global()->Set(v8_str("foo"), v8_num(100)); in THREADED_TEST()
8869 context->Global()->Set(v8_str("obj"), object_template->NewInstance()); in TEST()
8880 CHECK(CompileRun("obj.foo")->ToString()->Equals(v8_str("1001"))); in TEST()
8884 CHECK(CompileRun("obj[0]")->ToString()->Equals(v8_str("1002"))); in TEST()
8894 Local<Value> foo = v8_str("foo"); in THREADED_TEST()
8895 Local<Value> bar = v8_str("bar"); in THREADED_TEST()
8901 env1->Global()->Set(v8_str("prop"), v8_num(3)); in THREADED_TEST()
8902 env2->Global()->Set(v8_str("env1"), env1->Global()); in THREADED_TEST()
8914 Local<Value> v = env1->Global()->Get(v8_str("prop")); in THREADED_TEST()
8925 Local<Value> foo = v8_str("foo"); in THREADED_TEST()
8926 Local<Value> bar = v8_str("bar"); in THREADED_TEST()
8932 env1->Global()->Set(v8_str("prop"), v8_num(3)); in THREADED_TEST()
8933 env2->Global()->Set(v8_str("env1"), env1->Global()); in THREADED_TEST()
8936 Local<String> test = v8_str("propertyIsEnumerable.call(env1, 'prop')"); in THREADED_TEST()
8958 Local<Value> foo = v8_str("foo"); in THREADED_TEST()
8959 Local<Value> bar = v8_str("bar"); in THREADED_TEST()
8965 env1->Global()->Set(v8_str("prop"), v8_num(3)); in THREADED_TEST()
8966 env2->Global()->Set(v8_str("env1"), env1->Global()); in THREADED_TEST()
8999 Local<Value> foo = v8_str("foo"); in TEST()
9010 global2->Set(v8_str("prop"), v8::Integer::New(env2->GetIsolate(), 1)); in TEST()
9013 env1->Global()->Set(v8_str("getProp"), in TEST()
9014 global2->Get(v8_str("getProp"))); in TEST()
9024 env3->SetSecurityToken(v8_str("bar")); in TEST()
9029 CHECK(global3->Get(v8_str("prop"))->IsUndefined()); in TEST()
9030 CHECK(global3->Get(v8_str("getProp"))->IsUndefined()); in TEST()
9031 global3->Set(v8_str("prop"), v8::Integer::New(env3->GetIsolate(), -1)); in TEST()
9032 global3->Set(v8_str("prop2"), v8::Integer::New(env3->GetIsolate(), 2)); in TEST()
9037 Local<Value> get_prop = global1->Get(v8_str("getProp")); in TEST()
9047 Local<Value> r = global3->Get(v8_str("prop2")); in TEST()
9060 Local<Value> foo = v8_str("foo"); in TEST()
9069 env2->Global()->Set(v8_str("p"), v8::Integer::New(env2->GetIsolate(), 42)); in TEST()
9073 env1->Global()->Set(v8_str("other"), env2->Global()); in TEST()
9102 env3->Global()->Set(v8_str("p"), v8::Integer::New(env3->GetIsolate(), 24)); in TEST()
9111 env3->SetSecurityToken(v8_str("bar")); in TEST()
9123 info.GetIsolate()->GetCurrentContext()->Global()->Get(v8_str("x"))); in GetThisX()
9135 v8_str("this_x"), FunctionTemplate::New(env1->GetIsolate(), GetThisX)); in TEST()
9139 Local<Value> foo = v8_str("foo"); in TEST()
9145 env1->Global()->Set(v8_str("x"), v8_str("env1_x")); in TEST()
9149 env2->Global()->Set(v8_str("x"), v8_str("env2_x")); in TEST()
9154 env1->Global()->Set(v8_str("bound_x"), CompileRun("bound_x")); in TEST()
9155 env1->Global()->Set(v8_str("get_x"), CompileRun("get_x")); in TEST()
9156 env1->Global()->Set(v8_str("get_x_w"), CompileRun("get_x_w")); in TEST()
9158 v8_str("this_x"), in TEST()
9168 CHECK_EQ(v8_str("env2_x"), result); in TEST()
9174 CHECK_EQ(v8_str("env2_x"), result); in TEST()
9184 env2->Global()->Set(v8_str("x"), v8_str("env3_x")); in TEST()
9185 env2->Global()->Set(v8_str("env1"), env1->Global()); in TEST()
9198 CHECK_EQ(v8_str("env2_x"), results->Get(i + 0)); in TEST()
9199 CHECK_EQ(v8_str("env1_x"), results->Get(i + 1)); in TEST()
9200 CHECK_EQ(v8_str("env3_x"), results->Get(i + 2)); in TEST()
9201 CHECK_EQ(v8_str("env2_x"), results->Get(i + 3)); in TEST()
9217 CHECK_EQ(v8_str("env2_x"), results->Get(i + 0)); in TEST()
9218 CHECK_EQ(v8_str("env3_x"), results->Get(i + 1)); in TEST()
9219 CHECK_EQ(v8_str("env3_x"), results->Get(i + 2)); in TEST()
9220 CHECK_EQ(v8_str("env2_x"), results->Get(i + 3)); in TEST()
9235 CHECK_EQ(v8_str("env2_x"), results->Get(i + 0)); in TEST()
9236 CHECK_EQ(v8_str("env1_x"), results->Get(i + 1)); in TEST()
9237 CHECK_EQ(v8_str("env3_x"), results->Get(i + 2)); in TEST()
9238 CHECK_EQ(v8_str("env2_x"), results->Get(i + 3)); in TEST()
9311 v8_str("accessible_prop"), in TEST()
9318 global_template->SetAccessor(v8_str("blocked_prop"), in TEST()
9324 v8_str("blocked_js_prop"), in TEST()
9342 Local<Value> getter = global0->Get(v8_str("getter")); in TEST()
9343 Local<Value> setter = global0->Get(v8_str("setter")); in TEST()
9346 global0->Set(239, v8_str("239")); in TEST()
9354 Local<Value> el_getter = global0->Get(v8_str("el_getter")); in TEST()
9355 Local<Value> el_setter = global0->Get(v8_str("el_setter")); in TEST()
9363 global1->Set(v8_str("other"), global0); in TEST()
9487 v8_str("accessible_prop"), in TEST()
9494 global_template->SetAccessor(v8_str("blocked_prop"), in TEST()
9508 global1->Set(v8_str("other"), global0); in TEST()
9564 obj_template->Set(v8_str("x"), v8::Integer::New(isolate, 42)); in THREADED_TEST()
9580 global1->Set(v8_str("other"), global0); in THREADED_TEST()
9581 global1->Set(v8_str("object"), obj_template->NewInstance()); in THREADED_TEST()
9610 env->Global()->Set(v8_str("prohibited"), obj_template->NewInstance()); in TEST()
9633 result->Set(0, v8_str("x")); in NamedPropertyEnumerator()
9645 obj_template->Set(v8_str("7"), v8::Integer::New(CcTest::isolate(), 7)); in THREADED_TEST()
9646 obj_template->Set(v8_str("x"), v8::Integer::New(CcTest::isolate(), 42)); in THREADED_TEST()
9654 global->Set(v8_str("object"), obj_template->NewInstance()); in THREADED_TEST()
9664 CHECK_EQ(v8_str("7"), result_array->Get(0)); in THREADED_TEST()
9665 CHECK_EQ(v8_str("[object Object]"), result_array->Get(1)); in THREADED_TEST()
9666 CHECK_EQ(v8_str("x"), result_array->Get(2)); in THREADED_TEST()
9690 proto_template->SetAccessor(v8_str("accessible"), in THREADED_TEST()
9696 global_template->SetAccessor(v8_str("unreachable"), in THREADED_TEST()
9706 global->Set(v8_str("accessible"), v8_num(11)); in THREADED_TEST()
9714 global1->Set(v8_str("other"), global); in THREADED_TEST()
9778 global1->Set(v8_str("obj"), object); in TEST()
9927 global1->Set(v8_str("obj"), object); in THREADED_TEST()
10001 global1->Set(v8_str("obj"), object); in THREADED_TEST()
10056 instance->Set(v8_str("x"), v8_num(42)); in THREADED_TEST()
10057 instance->Set(v8_str("f"), in THREADED_TEST()
10062 context->Global()->Set(v8_str("i"), o); in THREADED_TEST()
10088 instance_template->Set(v8_str("x"), v8_num(42)); in THREADED_TEST()
10089 instance_template->Set(v8_str("f"), in THREADED_TEST()
10171 env->Global()->Set(v8_str("foo"), foo); in THREADED_TEST()
10229 proto->Set(v8_str("f"), in THREADED_TEST()
10233 proto->Set(v8_str("x"), v8_num(12)); in THREADED_TEST()
10235 instance->SetAccessor(v8_str("y"), ShadowYGetter, ShadowYSetter); in THREADED_TEST()
10238 context->Global()->Set(v8_str("__proto__"), o); in THREADED_TEST()
10265 t0->InstanceTemplate()->Set(v8_str("x"), v8_num(0)); in THREADED_TEST()
10268 t1->InstanceTemplate()->Set(v8_str("y"), v8_num(1)); in THREADED_TEST()
10271 t2->InstanceTemplate()->Set(v8_str("z"), v8_num(2)); in THREADED_TEST()
10273 t3->InstanceTemplate()->Set(v8_str("u"), v8_num(3)); in THREADED_TEST()
10281 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
10282 o0->Set(v8_str("__proto__"), o1); in THREADED_TEST()
10283 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
10284 CHECK_EQ(1, o0->Get(v8_str("y"))->Int32Value()); in THREADED_TEST()
10285 o0->Set(v8_str("__proto__"), o2); in THREADED_TEST()
10286 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
10287 CHECK_EQ(1, o0->Get(v8_str("y"))->Int32Value()); in THREADED_TEST()
10288 CHECK_EQ(2, o0->Get(v8_str("z"))->Int32Value()); in THREADED_TEST()
10289 o0->Set(v8_str("__proto__"), o3); in THREADED_TEST()
10290 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
10291 CHECK_EQ(1, o0->Get(v8_str("y"))->Int32Value()); in THREADED_TEST()
10292 CHECK_EQ(2, o0->Get(v8_str("z"))->Int32Value()); in THREADED_TEST()
10293 CHECK_EQ(3, o0->Get(v8_str("u"))->Int32Value()); in THREADED_TEST()
10298 Local<Value> proto = o0->Get(v8_str("__proto__")); in THREADED_TEST()
10300 CHECK(proto.As<v8::Object>()->Get(v8_str("z"))->IsUndefined()); in THREADED_TEST()
10313 ht->InstanceTemplate()->Set(v8_str("x"), v8_num(0)); in THREADED_TEST()
10318 o->Set(v8_str("__proto__"), h); in THREADED_TEST()
10319 h->Set(v8_str("__proto__"), p); in THREADED_TEST()
10322 o->Set(v8_str("x"), v8_num(7)); in THREADED_TEST()
10323 CHECK_EQ(7, o->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
10324 CHECK_EQ(7, h->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
10325 CHECK(p->Get(v8_str("x"))->IsUndefined()); in THREADED_TEST()
10328 o->Set(v8_str("y"), v8_num(6)); in THREADED_TEST()
10329 CHECK_EQ(6, o->Get(v8_str("y"))->Int32Value()); in THREADED_TEST()
10330 CHECK(h->Get(v8_str("y"))->IsUndefined()); in THREADED_TEST()
10331 CHECK(p->Get(v8_str("y"))->IsUndefined()); in THREADED_TEST()
10335 p->Set(v8_str("z"), v8_num(8)); in THREADED_TEST()
10336 CHECK_EQ(8, o->Get(v8_str("z"))->Int32Value()); in THREADED_TEST()
10337 CHECK_EQ(8, h->Get(v8_str("z"))->Int32Value()); in THREADED_TEST()
10338 CHECK_EQ(8, p->Get(v8_str("z"))->Int32Value()); in THREADED_TEST()
10339 o->Set(v8_str("z"), v8_num(9)); in THREADED_TEST()
10340 CHECK_EQ(9, o->Get(v8_str("z"))->Int32Value()); in THREADED_TEST()
10341 CHECK_EQ(8, h->Get(v8_str("z"))->Int32Value()); in THREADED_TEST()
10342 CHECK_EQ(8, p->Get(v8_str("z"))->Int32Value()); in THREADED_TEST()
10353 t->InstanceTemplate()->Set(v8_str("foo"), v8_num(75)); in THREADED_TEST()
10360 o->Set(v8_str("foo"), v8_num(42)); in THREADED_TEST()
10371 t0->InstanceTemplate()->Set(v8_str("x"), v8_num(0)); in THREADED_TEST()
10374 t1->InstanceTemplate()->Set(v8_str("y"), v8_num(1)); in THREADED_TEST()
10377 t2->InstanceTemplate()->Set(v8_str("z"), v8_num(2)); in THREADED_TEST()
10379 t3->InstanceTemplate()->Set(v8_str("u"), v8_num(3)); in THREADED_TEST()
10387 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
10389 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
10390 CHECK_EQ(1, o0->Get(v8_str("y"))->Int32Value()); in THREADED_TEST()
10392 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
10393 CHECK_EQ(1, o0->Get(v8_str("y"))->Int32Value()); in THREADED_TEST()
10394 CHECK_EQ(2, o0->Get(v8_str("z"))->Int32Value()); in THREADED_TEST()
10396 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
10397 CHECK_EQ(1, o0->Get(v8_str("y"))->Int32Value()); in THREADED_TEST()
10398 CHECK_EQ(2, o0->Get(v8_str("z"))->Int32Value()); in THREADED_TEST()
10399 CHECK_EQ(3, o0->Get(v8_str("u"))->Int32Value()); in THREADED_TEST()
10404 Local<Value> proto = o0->Get(v8_str("__proto__")); in THREADED_TEST()
10434 t1->InstanceTemplate()->Set(v8_str("foo"), v8_num(1)); in THREADED_TEST()
10437 t2->InstanceTemplate()->Set(v8_str("fuz1"), v8_num(2)); in THREADED_TEST()
10438 t2->InstanceTemplate()->Set(v8_str("objects"), v8::Object::New(isolate)); in THREADED_TEST()
10439 t2->InstanceTemplate()->Set(v8_str("fuz2"), v8_num(2)); in THREADED_TEST()
10442 t3->InstanceTemplate()->Set(v8_str("boo"), v8_num(3)); in THREADED_TEST()
10444 t4->InstanceTemplate()->Set(v8_str("baz"), v8_num(4)); in THREADED_TEST()
10450 t2->InstanceTemplate()->Set(v8_str(name_buf.start()), v8_num(2)); in THREADED_TEST()
10465 context->Global()->Set(v8_str("obj"), o4); in THREADED_TEST()
10491 i1->SetAccessor(v8_str("foo"), in THREADED_TEST()
10493 i1->SetAccessor(v8_str("bar"), in THREADED_TEST()
10495 i1->SetAccessor(v8_str("baz"), in THREADED_TEST()
10497 i1->Set(v8_str("n1"), v8_num(1)); in THREADED_TEST()
10498 i1->Set(v8_str("n2"), v8_num(2)); in THREADED_TEST()
10507 t2->InstanceTemplate()->Set(v8_str("mine"), v8_num(4)); in THREADED_TEST()
10513 v8::Symbol::New(context->GetIsolate(), v8_str("s1")); in THREADED_TEST()
10516 v8_str("h1"), v8::Integer::New(context->GetIsolate(), 2013)); in THREADED_TEST()
10520 context->Global()->Set(v8_str("obj"), o2); in THREADED_TEST()
10521 context->Global()->Set(v8_str("sym"), sym); in THREADED_TEST()
10542 t1->PrototypeTemplate()->Set(v8_str("x"), v8::Integer::New(isolate, 42)); in THREADED_TEST()
10544 context->Global()->Set(v8_str("func1"), t1->GetFunction()); in THREADED_TEST()
10556 t2->PrototypeTemplate()->Set(v8_str("x"), v8::Integer::New(isolate, 42)); in THREADED_TEST()
10557 context->Global()->Set(v8_str("func2"), t2->GetFunction()); in THREADED_TEST()
10598 context->Global()->Set(v8_str("fun"), fun); in THREADED_TEST()
10622 Local<v8::Object>::Cast(context->Global()->Get(v8_str("x"))); in THREADED_TEST()
10624 x->Set(v8_str("set"), v8::Integer::New(isolate, 8)); in THREADED_TEST()
10625 x->Get(v8_str("get")); in THREADED_TEST()
10626 x->Set(v8_str("set"), v8::Integer::New(isolate, 8)); in THREADED_TEST()
10627 x->Get(v8_str("get")); in THREADED_TEST()
10628 x->Set(v8_str("set"), v8::Integer::New(isolate, 8)); in THREADED_TEST()
10629 x->Get(v8_str("get")); in THREADED_TEST()
10630 x->Set(v8_str("set"), v8::Integer::New(isolate, 8)); in THREADED_TEST()
10631 x->Get(v8_str("get")); in THREADED_TEST()
10640 templ->SetClassName(v8_str("Fun")); in THREADED_TEST()
10642 context->Global()->Set(v8_str("Fun"), cons); in THREADED_TEST()
10667 This->Set(v8_str("a"), args[0]); in ConstructorCallback()
10687 context->Global()->Set(v8_str("obj"), instance); in THREADED_TEST()
10702 value = object1->Get(v8_str("a")); in THREADED_TEST()
10715 Local<Value> args2[] = { v8_str("tipli") }; in THREADED_TEST()
10719 value = object2->Get(v8_str("a")); in THREADED_TEST()
10735 value = object3->Get(v8_str("a")); in THREADED_TEST()
10745 value = object4->Get(v8_str("a")); in THREADED_TEST()
10754 value = object5->Get(v8_str("a")); in THREADED_TEST()
10762 context->Global()->Set(v8_str("obj2"), instance); in THREADED_TEST()
10785 context->Global()->Set(v8_str("obj3"), instance); in THREADED_TEST()
10809 context->Global()->Set(v8_str("obj4"), instance1); in THREADED_TEST()
10829 context->Global()->Set(v8_str("obj5"), instance2); in THREADED_TEST()
10852 templ->SetClassName(v8_str("Fun")); in THREADED_TEST()
10854 context->Global()->Set(v8_str("Fun"), cons); in THREADED_TEST()
10890 CHECK_EQ(2, current->Global()->Get(v8_str("result1"))->Int32Value()); in THREADED_TEST()
10891 CHECK_EQ(0, current->Global()->Get(v8_str("result2"))->Int32Value()); in THREADED_TEST()
10892 CHECK_EQ(1, current->Global()->Get(v8_str("result3"))->Int32Value()); in THREADED_TEST()
10903 CHECK_EQ(2, current->Global()->Get(v8_str("result4"))->Int32Value()); in THREADED_TEST()
10914 Local<String> token = v8_str("<security token>"); in THREADED_TEST()
10919 current->Global()->Set(v8_str("other"), other->Global()); in THREADED_TEST()
10924 Local<Value> foo = other->Global()->Get(v8_str("foo")); in THREADED_TEST()
10926 CHECK(!current->Global()->Has(v8_str("foo"))); in THREADED_TEST()
10932 CHECK_EQ(1234, other->Global()->Get(v8_str("na"))->Int32Value()); in THREADED_TEST()
10933 CHECK(!current->Global()->Has(v8_str("na"))); in THREADED_TEST()
10956 other->Global()->Set(v8_str("bis"), v8_num(1234)); in THREADED_TEST()
10963 other->Global()->Set(v8_str("t"), other->Global()); in THREADED_TEST()
11008 context1->Global()->Set(v8_str("fun"), fun); in THREADED_TEST()
11025 Local<String> token = v8_str("<security token>"); in THREADED_TEST()
11030 current->Global()->Set(v8_str("other"), other->Global()); in THREADED_TEST()
11069 context->Global()->Set(v8_str("obj"), instance); in THREADED_TEST()
11122 context->Global()->Set(v8_str("obj2"), instance); in THREADED_TEST()
11152 context->Global()->Set(v8_str("obj3"), instance); in THREADED_TEST()
11187 instance->CallAsFunction(v8_str("hello"), 0, NULL); in THREADED_TEST()
11204 context->Global()->Get(v8_str("ReturnThisSloppy"))); in THREADED_TEST()
11207 context->Global()->Get(v8_str("ReturnThisStrict"))); in THREADED_TEST()
11220 ReturnThisSloppy->CallAsFunction(v8_str("hello"), 0, NULL); in THREADED_TEST()
11222 CHECK(a4.As<v8::StringObject>()->ValueOf()->StrictEquals(v8_str("hello"))); in THREADED_TEST()
11238 ReturnThisStrict->CallAsFunction(v8_str("hello"), 0, NULL); in THREADED_TEST()
11239 CHECK(a9->StrictEquals(v8_str("hello"))); in THREADED_TEST()
11347 context->Global()->Set(v8_str("constructor"), function); in THREADED_TEST()
11379 context->Global()->Set(v8_str("constructor"), function); in THREADED_TEST()
11412 templ->SetNamedPropertyHandler(getter, 0, 0, 0, 0, v8_str("data")); in CheckInterceptorLoadIC()
11414 context->Global()->Set(v8_str("o"), templ->NewInstance()); in CheckInterceptorLoadIC()
11426 CHECK_EQ(v8_str("data"), info.Data()); in InterceptorLoadICGetter()
11427 CHECK_EQ(v8_str("x"), name); in InterceptorLoadICGetter()
11452 v8_str("x")->Equals(name) ? in InterceptorLoadXICGetter()
11627 templ->SetAccessor(v8_str("y"), Return239Callback); in THREADED_TEST()
11629 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
11658 templ_p->SetAccessor(v8_str("y"), Return239Callback); in THREADED_TEST()
11661 context->Global()->Set(v8_str("o"), templ_o->NewInstance()); in THREADED_TEST()
11662 context->Global()->Set(v8_str("p"), templ_p->NewInstance()); in THREADED_TEST()
11691 templ->SetAccessor(v8_str("y"), Return239Callback); in THREADED_TEST()
11694 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
11721 templ_p->SetAccessor(v8_str("y"), Return239Callback); in THREADED_TEST()
11724 context->Global()->Set(v8_str("o"), templ_o->NewInstance()); in THREADED_TEST()
11725 context->Global()->Set(v8_str("p"), templ_p->NewInstance()); in THREADED_TEST()
11750 templ_p->SetAccessor(v8_str("y"), Return239Callback, SetOnThis); in THREADED_TEST()
11753 context->Global()->Set(v8_str("o"), templ_o->NewInstance()); in THREADED_TEST()
11754 context->Global()->Set(v8_str("p"), templ_p->NewInstance()); in THREADED_TEST()
11783 templ_p->SetAccessor(v8_str("y"), Return239Callback, SetOnThis); in THREADED_TEST()
11786 context->Global()->Set(v8_str("o"), templ_o->NewInstance()); in THREADED_TEST()
11787 context->Global()->Set(v8_str("p"), templ_p->NewInstance()); in THREADED_TEST()
11810 CHECK(v8_str("x")->Equals(name)); in InterceptorLoadICGetter0()
11826 CHECK(v8_str("x")->Equals(key)); in InterceptorStoreICSetter()
11839 0, 0, 0, v8_str("data")); in THREADED_TEST()
11841 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
11855 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
11875 CHECK(v8_str("x")->Equals(name)); in InterceptorCallICGetter()
11887 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
11907 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
11923 CHECK(v8_str("x")->Equals(name)); in InterceptorCallICGetter4()
11937 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
11958 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
11986 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
12004 if (v8_str("x")->Equals(name)) in InterceptorCallICGetter5()
12018 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
12038 if (v8_str("x")->Equals(name)) in InterceptorCallICGetter6()
12052 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
12083 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
12114 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
12141 context->Global()->Set(v8_str("o"), templ_o->NewInstance()); in THREADED_TEST()
12182 CHECK(args.Data()->Equals(v8_str("method_data"))); in FastApiCallback_TrivialSignature()
12193 CHECK(args.Data()->Equals(v8_str("method_data"))); in FastApiCallback_SimpleSignature()
12196 CHECK(args.Holder()->HasRealNamedProperty(v8_str("foo"))); in FastApiCallback_SimpleSignature()
12232 context->Global()->Set(v8_str("nativeobject"), nativeobject_obj); in THREADED_TEST()
12246 args.GetIsolate()->ThrowException(v8_str("g")); in ThrowingDirectApiCallback()
12260 context->Global()->Set(v8_str("nativeobject"), nativeobject_obj); in THREADED_TEST()
12270 CHECK_EQ(v8_str("ggggg"), result); in THREADED_TEST()
12279 return v8_str("Direct Getter Result"); in DoDirectGetter()
12296 obj->SetAccessor(v8_str("p1"), accessor); in LoadICFastApi_DirectCall_GCMoveStub()
12297 context->Global()->Set(v8_str("o1"), obj->NewInstance()); in LoadICFastApi_DirectCall_GCMoveStub()
12305 CHECK_EQ(v8_str("Direct Getter Result"), result); in LoadICFastApi_DirectCall_GCMoveStub()
12318 info.GetIsolate()->ThrowException(v8_str("g")); in ThrowingDirectGetterCallback()
12327 obj->SetAccessor(v8_str("p1"), ThrowingDirectGetterCallback); in THREADED_TEST()
12328 context->Global()->Set(v8_str("o1"), obj->NewInstance()); in THREADED_TEST()
12335 CHECK_EQ(v8_str("ggggg"), result); in THREADED_TEST()
12348 v8_str("method_data"), in THREADED_PROFILED_TEST()
12351 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12359 context->Global()->Set(v8_str("o"), fun->NewInstance()); in THREADED_PROFILED_TEST()
12365 CHECK_EQ(42, context->Global()->Get(v8_str("result"))->Int32Value()); in THREADED_PROFILED_TEST()
12377 isolate, FastApiCallback_SimpleSignature, v8_str("method_data"), in THREADED_PROFILED_TEST()
12380 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12389 context->Global()->Set(v8_str("o"), fun->NewInstance()); in THREADED_PROFILED_TEST()
12398 CHECK_EQ(42, context->Global()->Get(v8_str("result"))->Int32Value()); in THREADED_PROFILED_TEST()
12410 isolate, FastApiCallback_SimpleSignature, v8_str("method_data"), in THREADED_PROFILED_TEST()
12413 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12422 context->Global()->Set(v8_str("o"), fun->NewInstance()); in THREADED_PROFILED_TEST()
12436 CHECK_EQ(40, context->Global()->Get(v8_str("result"))->Int32Value()); in THREADED_PROFILED_TEST()
12437 CHECK_EQ(42, context->Global()->Get(v8_str("saved_result"))->Int32Value()); in THREADED_PROFILED_TEST()
12449 isolate, FastApiCallback_SimpleSignature, v8_str("method_data"), in THREADED_PROFILED_TEST()
12452 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12461 context->Global()->Set(v8_str("o"), fun->NewInstance()); in THREADED_PROFILED_TEST()
12475 CHECK_EQ(40, context->Global()->Get(v8_str("result"))->Int32Value()); in THREADED_PROFILED_TEST()
12476 CHECK_EQ(42, context->Global()->Get(v8_str("saved_result"))->Int32Value()); in THREADED_PROFILED_TEST()
12488 isolate, FastApiCallback_SimpleSignature, v8_str("method_data"), in THREADED_PROFILED_TEST()
12491 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12500 context->Global()->Set(v8_str("o"), fun->NewInstance()); in THREADED_PROFILED_TEST()
12517 CHECK_EQ(v8_str("TypeError: undefined is not a function"), in THREADED_PROFILED_TEST()
12519 CHECK_EQ(42, context->Global()->Get(v8_str("saved_result"))->Int32Value()); in THREADED_PROFILED_TEST()
12531 isolate, FastApiCallback_SimpleSignature, v8_str("method_data"), in THREADED_PROFILED_TEST()
12534 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12543 context->Global()->Set(v8_str("o"), fun->NewInstance()); in THREADED_PROFILED_TEST()
12559 CHECK_EQ(v8_str("TypeError: Illegal invocation"), in THREADED_PROFILED_TEST()
12561 CHECK_EQ(42, context->Global()->Get(v8_str("saved_result"))->Int32Value()); in THREADED_PROFILED_TEST()
12574 v8_str("method_data"), in THREADED_PROFILED_TEST()
12577 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12583 context->Global()->Set(v8_str("o"), fun->NewInstance()); in THREADED_PROFILED_TEST()
12590 CHECK_EQ(42, context->Global()->Get(v8_str("result"))->Int32Value()); in THREADED_PROFILED_TEST()
12600 isolate, FastApiCallback_SimpleSignature, v8_str("method_data"), in THREADED_PROFILED_TEST()
12603 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12610 context->Global()->Set(v8_str("o"), fun->NewInstance()); in THREADED_PROFILED_TEST()
12620 CHECK_EQ(42, context->Global()->Get(v8_str("result"))->Int32Value()); in THREADED_PROFILED_TEST()
12630 isolate, FastApiCallback_SimpleSignature, v8_str("method_data"), in THREADED_PROFILED_TEST()
12633 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12640 context->Global()->Set(v8_str("o"), fun->NewInstance()); in THREADED_PROFILED_TEST()
12654 CHECK_EQ(40, context->Global()->Get(v8_str("result"))->Int32Value()); in THREADED_PROFILED_TEST()
12655 CHECK_EQ(42, context->Global()->Get(v8_str("saved_result"))->Int32Value()); in THREADED_PROFILED_TEST()
12665 isolate, FastApiCallback_SimpleSignature, v8_str("method_data"), in THREADED_PROFILED_TEST()
12668 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12675 context->Global()->Set(v8_str("o"), fun->NewInstance()); in THREADED_PROFILED_TEST()
12692 CHECK_EQ(v8_str("TypeError: undefined is not a function"), in THREADED_PROFILED_TEST()
12694 CHECK_EQ(42, context->Global()->Get(v8_str("saved_result"))->Int32Value()); in THREADED_PROFILED_TEST()
12704 isolate, FastApiCallback_SimpleSignature, v8_str("method_data"), in THREADED_PROFILED_TEST()
12707 proto_templ->Set(v8_str("method"), method_templ); in THREADED_PROFILED_TEST()
12714 context->Global()->Set(v8_str("o"), fun->NewInstance()); in THREADED_PROFILED_TEST()
12730 CHECK_EQ(v8_str("TypeError: Illegal invocation"), in THREADED_PROFILED_TEST()
12732 CHECK_EQ(42, context->Global()->Get(v8_str("saved_result"))->Int32Value()); in THREADED_PROFILED_TEST()
12742 if (v8_str("x")->Equals(name)) { in InterceptorKeyedCallICGetter()
12756 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
12768 CHECK_EQ(42*5 + 40*5, context->Global()->Get(v8_str("result"))->Int32Value()); in THREADED_TEST()
12781 context->Global()->Set(v8_str("proto1"), templ->NewInstance()); in THREADED_TEST()
12797 CHECK_EQ(42*5 + 40*5, context->Global()->Get(v8_str("result"))->Int32Value()); in THREADED_TEST()
12809 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
12824 CHECK_EQ(42*5 + 40*5, context->Global()->Get(v8_str("result"))->Int32Value()); in THREADED_TEST()
12835 context->Global()->Set(v8_str("o"), templ_o->NewInstance()); in THREADED_TEST()
12849 CHECK_EQ(3, context->Global()->Get(v8_str("result"))->Int32Value()); in THREADED_TEST()
12850 CHECK_EQ(239, context->Global()->Get(v8_str("saved_result"))->Int32Value()); in THREADED_TEST()
12861 context->Global()->Set(v8_str("proto"), templ_o->NewInstance()); in THREADED_TEST()
12873 CHECK_EQ(42*5 + 40*5, context->Global()->Get(v8_str("result"))->Int32Value()); in THREADED_TEST()
12884 context->Global()->Set(v8_str("o"), templ_o->NewInstance()); in THREADED_TEST()
12896 CHECK_EQ(42*5 + 40*5, context->Global()->Get(v8_str("result"))->Int32Value()); in THREADED_TEST()
12906 if (v8_str("x")->Equals(name) && interceptor_call_count++ < 20) { in InterceptorICRefErrorGetter()
12950 if (v8_str("x")->Equals(name) && ++interceptor_ic_exception_get_count < 20) { in InterceptorICExceptionGetter()
13036 context->Global()->Set(v8_str("obj"), obj); in THREADED_TEST()
13053 context->Global()->Set(v8_str("obj"), obj); in THREADED_TEST()
13066 env->Global()->Set(v8_str("obj"), in THREADED_TEST()
13087 instance_templ->SetAccessor(v8_str("f"), ThrowingGetter); in THREADED_TEST()
13102 Local<Value> result = instance->GetRealNamedProperty(v8_str("f")); in THREADED_TEST()
13107 result = another->GetRealNamedProperty(v8_str("f")); in THREADED_TEST()
13112 result = another->GetRealNamedPropertyInPrototypeChain(v8_str("f")); in THREADED_TEST()
13117 result = another->Get(v8_str("f")); in THREADED_TEST()
13122 result = with_js_getter->GetRealNamedProperty(v8_str("f")); in THREADED_TEST()
13127 result = with_js_getter->Get(v8_str("f")); in THREADED_TEST()
13161 if (--call_depth) CcTest::isolate()->ThrowException(v8_str("ThrowViaApi")); in ThrowViaApi()
13181 context->Global()->Set(v8_str("func"), func); in THREADED_TEST()
13227 parent_instance_templ->SetAccessor(v8_str("f"), ParentGetter); in THREADED_TEST()
13236 child_instance_templ->SetAccessor(v8_str("f"), ChildGetter); in THREADED_TEST()
13238 child_instance_templ->SetAccessor(v8_str("g"), ParentGetter); in THREADED_TEST()
13239 child_instance_templ->SetAccessor(v8_str("g"), ChildGetter); in THREADED_TEST()
13244 child_proto_templ->SetAccessor(v8_str("h"), ParentGetter, 0, in THREADED_TEST()
13250 child_instance_templ->SetAccessor(v8_str("i"), ChildGetter, 0, in THREADED_TEST()
13259 context->Global()->Set(v8_str("o"), instance); in THREADED_TEST()
13293 context->Global()->Set(v8_str("f"), templ->GetFunction()); in THREADED_TEST()
13305 templ->SetClassName(v8_str("MyClass")); in THREADED_TEST()
13309 Local<String> customized_tostring = v8_str("customized toString"); in THREADED_TEST()
13323 CHECK(value->IsString() && value->Equals(v8_str("[object MyClass]"))); in THREADED_TEST()
13327 CHECK(value->IsString() && value->Equals(v8_str("[object global]"))); in THREADED_TEST()
13332 CHECK(value->IsString() && value->Equals(v8_str("[object Object]"))); in THREADED_TEST()
13347 Local<v8::Value> p = context->Global()->Get(v8_str("p")); in THREADED_TEST()
13349 v8_str("Parent"))); in THREADED_TEST()
13351 Local<v8::Value> c = context->Global()->Get(v8_str("c")); in THREADED_TEST()
13353 v8_str("Child"))); in THREADED_TEST()
13355 Local<v8::Value> x = context->Global()->Get(v8_str("x")); in THREADED_TEST()
13357 v8_str("outer.inner"))); in THREADED_TEST()
13557 args.GetReturnValue().Set(v8_str("foo")); in ThrowInJSNoCatch()
13573 env->Global()->Set(v8_str("throw_in_js"), fun); in TEST()
13595 env->Global()->Set(v8_str("throw_in_js"), fun); in TEST()
13631 env->Global()->Set(v8_str("unlock_for_a_moment"), fun); in THREADED_TEST()
13645 env->Global()->Set(v8_str("unlock_for_a_moment"), fun); in THREADED_TEST()
13749 Local<Value> value = data.GetValue()->Get(v8_str("key")); in WeakApiCallback()
13765 obj->Set(v8_str("key"), v8::Integer::New(isolate, 231)); in TEST()
14151 t->Set(v8_str("asdf"), v8::FunctionTemplate::New(isolate, RuntimeCallback)); in RunLoopInNewEnv()
14152 env->Global()->Set(v8_str("obj"), t->NewInstance()); in RunLoopInNewEnv()
14166 v8::Utils::OpenHandle(*env->Global()->Get(v8_str("bar")))); in RunLoopInNewEnv()
14171 v8::Utils::OpenHandle(*env->Global()->Get(v8_str("foo")))); in RunLoopInNewEnv()
14431 v8::Utils::OpenHandle(*env->Global()->Get(v8_str("bar"))))->code()); in UNINITIALIZED_TEST()
14433 v8::Utils::OpenHandle(*env->Global()->Get(v8_str("foo"))))->code()); in UNINITIALIZED_TEST()
14566 v8::Local<v8::String> source = v8_str( in THREADED_TEST()
14631 t->Set(v8_str("asdf"), in THREADED_TEST()
14633 context->Global()->Set(v8_str("obj"), t->NewInstance()); in THREADED_TEST()
14774 templ->Set(v8_str("x"), v8::True(isolate)); in THREADED_TEST()
14776 context->Global()->Set(v8_str("obj"), instance); in THREADED_TEST()
14806 templ->Set(v8_str("a"), v8_str("a")); in THREADED_TEST()
14818 templ->Set(v8_str(buf), v8::Number::New(isolate, k)); in THREADED_TEST()
14824 context->Global()->Set(v8_str("obj_1"), instance_1); in THREADED_TEST()
14830 context->Global()->Set(v8_str("obj_2"), instance_2); in THREADED_TEST()
14874 context->Global()->Set(v8_str("a"), v8_num(1)); in THREADED_TEST()
14881 Local<Function>::Cast(context->Global()->Get(v8_str("f1"))); in THREADED_TEST()
14883 Local<Function>::Cast(context->Global()->Get(v8_str("f2"))); in THREADED_TEST()
14885 Local<Function>::Cast(context->Global()->Get(v8_str("g1"))); in THREADED_TEST()
14887 Local<Function>::Cast(context->Global()->Get(v8_str("g2"))); in THREADED_TEST()
14889 Local<Function>::Cast(context->Global()->Get(v8_str("h"))); in THREADED_TEST()
14957 context->Global()->Set(v8_str("a"), v8_num(1)); in THREADED_TEST()
14970 f1 = Local<Function>::Cast(context->Global()->Get(v8_str("f1"))); in THREADED_TEST()
14971 f2 = Local<Function>::Cast(context->Global()->Get(v8_str("f2"))); in THREADED_TEST()
14972 g1 = Local<Function>::Cast(context->Global()->Get(v8_str("g1"))); in THREADED_TEST()
14973 g2 = Local<Function>::Cast(context->Global()->Get(v8_str("g2"))); in THREADED_TEST()
14974 h = Local<Function>::Cast(context->Global()->Get(v8_str("h"))); in THREADED_TEST()
15012 f1 = Local<Function>::Cast(hidden_global->Get(v8_str("f1"))); in THREADED_TEST()
15013 f2 = Local<Function>::Cast(hidden_global->Get(v8_str("f2"))); in THREADED_TEST()
15014 g1 = Local<Function>::Cast(hidden_global->Get(v8_str("g1"))); in THREADED_TEST()
15015 g2 = Local<Function>::Cast(hidden_global->Get(v8_str("g2"))); in THREADED_TEST()
15016 CHECK(hidden_global->Get(v8_str("h")).IsEmpty()); in THREADED_TEST()
15037 v8::ScriptCompiler::Source source(v8_str(script)); in TEST()
15067 context->Global()->Set(v8_str("tmp"), v8::True(CcTest::isolate())); in THREADED_TEST()
15068 context->Global()->Delete(v8_str("tmp")); in THREADED_TEST()
15074 context->Global()->Set(v8_str("tmp"), v8::True(CcTest::isolate())); in THREADED_TEST()
15075 context->Global()->Delete(v8_str("tmp")); in THREADED_TEST()
15090 Local<String> token = v8_str("<security token>"); in THREADED_TEST()
15103 context1->Global()->Set(v8_str("other"), context0->Global()); in THREADED_TEST()
15127 obj->Set(v8_str("gamma"), v8_str("cloneme")); in TEST()
15129 CHECK_EQ(v8_str("hello"), obj->Get(v8_str("alpha"))); in TEST()
15130 CHECK_EQ(v8::Integer::New(isolate, 123), obj->Get(v8_str("beta"))); in TEST()
15131 CHECK_EQ(v8_str("cloneme"), obj->Get(v8_str("gamma"))); in TEST()
15135 CHECK_EQ(v8_str("hello"), clone->Get(v8_str("alpha"))); in TEST()
15136 CHECK_EQ(v8::Integer::New(isolate, 123), clone->Get(v8_str("beta"))); in TEST()
15137 CHECK_EQ(v8_str("cloneme"), clone->Get(v8_str("gamma"))); in TEST()
15140 clone->Set(v8_str("beta"), v8::Integer::New(isolate, 456)); in TEST()
15141 CHECK_EQ(v8::Integer::New(isolate, 123), obj->Get(v8_str("beta"))); in TEST()
15142 CHECK_EQ(v8::Integer::New(isolate, 456), clone->Get(v8_str("beta"))); in TEST()
15217 env->Global()->Set(v8_str("lhs"), lhs); in THREADED_TEST()
15218 env->Global()->Set(v8_str("rhs"), rhs); in THREADED_TEST()
15258 env->Global()->Get(v8_str("cons"))); in THREADED_TEST()
15260 env->Global()->Get(v8_str("slice"))); in THREADED_TEST()
15262 env->Global()->Get(v8_str("slice_on_cons"))); in THREADED_TEST()
15343 v8::Local<v8::String> string = v8_str(one_byte_content); in TEST()
15345 CcTest::global()->Set(v8_str("a"), string); in TEST()
15374 v8::Handle<v8::Object>::Cast(global->Get(v8_str("__proto__"))); in TEST()
15375 global_proto->ForceSet(v8_str("x"), v8::Integer::New(isolate, 0), in TEST()
15377 global_proto->ForceSet(v8_str("y"), v8::Integer::New(isolate, 0), in TEST()
15598 CHECK(context->Global()->ForceDelete(v8_str("foo"))); in THREADED_TEST()
15617 v8::Local<v8::Value> foo = ctx1->Global()->Get(v8_str("foo")); in TEST()
15619 ctx2->Global()->Set(v8_str("o"), foo); in TEST()
15688 Local<String> token = v8_str("<security token>"); in THREADED_TEST()
15697 calling_context0->Global()->Set(v8_str("callback"), in THREADED_TEST()
15704 calling_context1->Global()->Set(v8_str("context0"), in THREADED_TEST()
15712 calling_context2->Global()->Set(v8_str("context1"), in THREADED_TEST()
15797 obj->Set(v8_str("field"), v8::Int32::New(CcTest::isolate(), 1503)); in THREADED_TEST()
15798 context->Global()->Set(v8_str("pixels"), obj); in THREADED_TEST()
15951 CHECK_EQ(77, v8::Object::Cast(*result)->Get(v8_str("0"))->Int32Value()); in THREADED_TEST()
15957 CHECK_EQ(77, v8::Object::Cast(*result)->Get(v8_str("0"))->Int32Value()); in THREADED_TEST()
15958 CHECK_EQ(23, v8::Object::Cast(*result)->Get(v8_str("1"))->Int32Value()); in THREADED_TEST()
16202 context->Global()->Set(v8_str("pixels"), obj); in THREADED_TEST()
16254 obj->Set(v8_str("field"), in ObjectWithExternalArrayTestHelper()
16256 context->Global()->Set(v8_str("ext_array"), obj); in ObjectWithExternalArrayTestHelper()
16536 CHECK_EQ(77, v8::Object::Cast(*result)->Get(v8_str("0"))->Int32Value()); in ObjectWithExternalArrayTestHelper()
16542 CHECK_EQ(77, v8::Object::Cast(*result)->Get(v8_str("0"))->Int32Value()); in ObjectWithExternalArrayTestHelper()
16543 CHECK_EQ(23, v8::Object::Cast(*result)->Get(v8_str("1"))->Int32Value()); in ObjectWithExternalArrayTestHelper()
16716 context->Global()->Set(v8_str("large_array"), large_obj); in ExternalArrayTestHelper()
16785 obj2->Set(v8_str("ee_test_field"), in ExternalArrayTestHelper()
16787 obj2->Set(v8_str(""), v8::Int32::New(context->GetIsolate(), 1503)); in ExternalArrayTestHelper()
16792 context->Global()->Set(v8_str("ext_array"), obj2); in ExternalArrayTestHelper()
16800 obj2->Set(v8_str("ee_test_field_2"), in ExternalArrayTestHelper()
16806 obj2->Set(v8_str(""), v8::Int32::New(context->GetIsolate(), 1503)); in ExternalArrayTestHelper()
16807 context->Global()->Set(v8_str("ext_array"), obj2); in ExternalArrayTestHelper()
16815 obj2->Set(v8_str("ee_test_field_2"), in ExternalArrayTestHelper()
16822 context->Global()->Set(v8_str("ext_array"), obj2); in ExternalArrayTestHelper()
16831 obj2->Set(v8_str("ee_test_field3"), in ExternalArrayTestHelper()
16835 context->Global()->Set(v8_str("ext_array"), obj2); in ExternalArrayTestHelper()
16842 obj3->Set(v8_str("ee_test_field3"), in ExternalArrayTestHelper()
16847 context->Global()->Set(v8_str("ext_array"), obj3); in ExternalArrayTestHelper()
16855 obj3->Set(v8_str("ee_test_field4"), in ExternalArrayTestHelper()
16864 obj2->Set(v8_str("ee_test_field4"), in ExternalArrayTestHelper()
16866 context->Global()->Set(v8_str("ext_array"), obj2); in ExternalArrayTestHelper()
17284 templ->Set(v8_str("AnalyzeStackInNativeCode"), in TEST()
17363 Local<Value> trouble = global->Get(v8_str("bar")); in TEST()
17528 v8::Handle<v8::String> url = v8_str("eval_url"); in AnalyzeStackOfEvalWithSourceURL()
17542 templ->Set(v8_str("AnalyzeStackOfEvalWithSourceURL"), in TEST()
17586 templ->Set(v8_str("AnalyzeScriptIdInStack"), in TEST()
17611 v8::Handle<v8::String> url = v8_str("url"); in AnalyzeStackOfInlineScriptWithSourceURL()
17625 templ->Set(v8_str("AnalyzeStackOfInlineScriptWithSourceURL"), in TEST()
17657 v8::Handle<v8::String> url = v8_str("source_url"); in AnalyzeStackOfDynamicScriptWithSourceURL()
17671 templ->Set(v8_str("AnalyzeStackOfDynamicScriptWithSourceURL"), in TEST()
17918 env->Global()->Set(v8_str("get_stack_limit"), fun); in TEST()
17940 env->Global()->Set(v8_str("get_stack_limit"), fun); in TEST()
18624 Local<Object>::Cast(info.This())->Set(v8_str("y"), v8_num(23)); in SetterWhichSetsYOnThisTo23()
18632 if (!name->Equals(v8_str("foo"))) return; in FooGetInterceptor()
18642 if (!name->Equals(v8_str("foo"))) return; in FooSetInterceptor()
18643 Local<Object>::Cast(info.This())->Set(v8_str("y"), v8_num(23)); in FooSetInterceptor()
18652 templ->SetAccessor(v8_str("x"), GetterWhichReturns42, in TEST()
18655 context->Global()->Set(v8_str("P"), templ->NewInstance()); in TEST()
18670 CHECK_EQ(42, c1->Get(v8_str("x"))->Int32Value()); in TEST()
18671 CHECK_EQ(23, c1->Get(v8_str("y"))->Int32Value()); in TEST()
18677 CHECK_EQ(42, c2->Get(v8_str("x"))->Int32Value()); in TEST()
18678 CHECK_EQ(23, c2->Get(v8_str("y"))->Int32Value()); in TEST()
18694 if (name->Equals(v8_str("x"))) { in NamedPropertySetterWhichSetsYOnThisTo23()
18695 Local<Object>::Cast(info.This())->Set(v8_str("y"), v8_num(23)); in NamedPropertySetterWhichSetsYOnThisTo23()
18707 context->Global()->Set(v8_str("P"), templ->NewInstance()); in THREADED_TEST()
18722 CHECK_EQ(23, c1->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
18723 CHECK_EQ(42, c1->Get(v8_str("y"))->Int32Value()); in THREADED_TEST()
18729 CHECK_EQ(23, c2->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
18730 CHECK_EQ(42, c2->Get(v8_str("y"))->Int32Value()); in THREADED_TEST()
18748 prototype->Set(v8_str("y"), v8_num(42)); in TEST()
18749 context->Global()->Set(v8_str("P"), prototype); in TEST()
18759 CHECK_EQ(23, c1->Get(v8_str("x"))->Int32Value()); in TEST()
18760 CHECK_EQ(42, c1->Get(v8_str("y"))->Int32Value()); in TEST()
18765 templ->SetAccessor(v8_str("x"), GetterWhichReturns42, in TEST()
18767 context->Global()->Set(v8_str("P"), templ->NewInstance()); in TEST()
18775 CHECK_EQ(42, c1->Get(v8_str("x"))->Int32Value()); in TEST()
18776 CHECK_EQ(23, c1->Get(v8_str("y"))->Int32Value()); in TEST()
19270 context0->Global()->Set(v8_str("x"), v8_num(42)); in TEST()
19276 context1->Global()->Set(v8_str("other"), global0); in TEST()
19306 global0->SetAccessor(v8_str("x"), GetXValue, NULL, v8_str("x"))); in TEST()
19320 CHECK_EQ(false, global0->HasRealNamedProperty(v8_str("x"))); in TEST()
19321 CHECK_EQ(false, global0->HasRealNamedCallbackProperty(v8_str("x"))); in TEST()
19789 CHECK(context->Global()->ForceDelete(v8_str("cell"))); in TEST()
19809 context->Global()->ForceSet(v8_str("cell"), v8_str("value"), v8::DontDelete); in TEST()
19817 CHECK(context->Global()->ForceDelete(v8_str("cell"))); in TEST()
19912 v8::Handle<v8::RegExp> re = v8::RegExp::New(v8_str("foo"), v8::RegExp::kNone); in TEST()
19914 CHECK(re->GetSource()->Equals(v8_str("foo"))); in TEST()
19917 re = v8::RegExp::New(v8_str("bar"), in TEST()
19921 CHECK(re->GetSource()->Equals(v8_str("bar"))); in TEST()
19925 re = v8::RegExp::New(v8_str("baz"), in TEST()
19929 CHECK(re->GetSource()->Equals(v8_str("baz"))); in TEST()
19935 CHECK(re->GetSource()->Equals(v8_str("quux"))); in TEST()
19940 CHECK(re->GetSource()->Equals(v8_str("quux"))); in TEST()
19948 re = v8::RegExp::New(v8_str("foobar"), v8::RegExp::kNone); in TEST()
19950 CHECK(re->GetSource()->Equals(v8_str("foobar"))); in TEST()
19953 re = v8::RegExp::New(v8_str("foobarbaz"), in TEST()
19957 CHECK(re->GetSource()->Equals(v8_str("foobarbaz"))); in TEST()
19961 context->Global()->Set(v8_str("re"), re); in TEST()
19965 re->Set(v8_str("property"), v8::Integer::New(context->GetIsolate(), 32)); in TEST()
19970 re = v8::RegExp::New(v8_str("foo["), v8::RegExp::kNone); in TEST()
19973 context->Global()->Set(v8_str("ex"), try_catch.Exception()); in TEST()
19999 info.GetReturnValue().Set(v8_str("42!")); in Getter()
20005 result->Set(0, v8_str("universalAnswer")); in Enumerator()
20018 context->Global()->Set(v8_str("o"), tmpl->NewInstance()); in TEST()
20022 CHECK_EQ(v8_str("universalAnswer"), result->Get(0)); in TEST()
20045 Set(v8_str("context_id"), v8::Integer::New(context->GetIsolate(), id)); in InstallContextId()
20050 CHECK_EQ(expected, object->Get(v8_str("context_id"))->Int32Value()); in CheckContextId()
20157 if (index == 42) info.GetReturnValue().Set(v8_str("yes")); in HasOwnPropertyIndexedPropertyGetter()
20164 if (property->Equals(v8_str("foo"))) info.GetReturnValue().Set(v8_str("yes")); in HasOwnPropertyNamedPropertyGetter()
20177 if (property->Equals(v8_str("foo"))) info.GetReturnValue().Set(1); in HasOwnPropertyNamedPropertyQuery()
20184 if (property->Equals(v8_str("bar"))) info.GetReturnValue().Set(1); in HasOwnPropertyNamedPropertyQuery2()
20191 info.GetReturnValue().Set(v8_str("yes")); in HasOwnPropertyAccessorGetter()
20213 CHECK(object->Has(v8_str("foo"))); in TEST()
20214 CHECK(!object->HasOwnProperty(v8_str("foo"))); in TEST()
20215 CHECK(object->HasOwnProperty(v8_str("bar"))); in TEST()
20216 CHECK(object->Has(v8_str("baz"))); in TEST()
20217 CHECK(!object->HasOwnProperty(v8_str("baz"))); in TEST()
20218 CHECK(object->HasOwnProperty(v8_str("bla"))); in TEST()
20224 CHECK(!instance->HasOwnProperty(v8_str("42"))); in TEST()
20225 CHECK(instance->HasOwnProperty(v8_str("foo"))); in TEST()
20226 CHECK(!instance->HasOwnProperty(v8_str("bar"))); in TEST()
20232 CHECK(instance->HasOwnProperty(v8_str("42"))); in TEST()
20233 CHECK(!instance->HasOwnProperty(v8_str("43"))); in TEST()
20234 CHECK(!instance->HasOwnProperty(v8_str("foo"))); in TEST()
20240 CHECK(instance->HasOwnProperty(v8_str("foo"))); in TEST()
20241 CHECK(!instance->HasOwnProperty(v8_str("bar"))); in TEST()
20247 CHECK(instance->HasOwnProperty(v8_str("42"))); in TEST()
20248 CHECK(!instance->HasOwnProperty(v8_str("41"))); in TEST()
20252 templ->SetAccessor(v8_str("foo"), HasOwnPropertyAccessorGetter); in TEST()
20254 CHECK(instance->HasOwnProperty(v8_str("foo"))); in TEST()
20255 CHECK(!instance->HasOwnProperty(v8_str("bar"))); in TEST()
20263 CHECK(!instance->HasOwnProperty(v8_str("foo"))); in TEST()
20264 CHECK(instance->HasOwnProperty(v8_str("bar"))); in TEST()
20277 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in TEST()
20367 Handle<String> message = v8_str("Message") ; in TEST()
20368 Handle<String> expected_message = v8_str("Uncaught EvalError: Message"); in TEST()
20391 context->Global()->Set(v8_str("f"), function); in THREADED_TEST()
20405 context->Global()->Set(v8_str("obj"), obj); in THREADED_TEST()
20406 obj->ForceSet(v8_str("1"), v8_str("DONT_CHANGE"), v8::ReadOnly); in THREADED_TEST()
20407 obj->Set(v8_str("1"), v8_str("foobar")); in THREADED_TEST()
20408 CHECK_EQ(v8_str("DONT_CHANGE"), obj->Get(v8_str("1"))); in THREADED_TEST()
20409 obj->ForceSet(v8_num(2), v8_str("DONT_CHANGE"), v8::ReadOnly); in THREADED_TEST()
20410 obj->Set(v8_num(2), v8_str("foobar")); in THREADED_TEST()
20411 CHECK_EQ(v8_str("DONT_CHANGE"), obj->Get(v8_num(2))); in THREADED_TEST()
20414 obj->ForceSet(v8_str("2000000000"), v8_str("DONT_CHANGE"), v8::ReadOnly); in THREADED_TEST()
20415 obj->Set(v8_str("2000000000"), v8_str("foobar")); in THREADED_TEST()
20416 CHECK_EQ(v8_str("DONT_CHANGE"), obj->Get(v8_str("2000000000"))); in THREADED_TEST()
20525 global_template->Set(v8_str("simple"), simple_object); in THREADED_TEST()
20526 global_template->Set(v8_str("protected"), protected_object); in THREADED_TEST()
20527 global_template->Set(v8_str("global"), global_object); in THREADED_TEST()
20528 global_template->Set(v8_str("proxy"), proxy_object); in THREADED_TEST()
20529 global_template->Set(v8_str("hidden"), object_with_hidden); in THREADED_TEST()
20530 global_template->Set(v8_str("phidden"), object_with_protected_hidden); in THREADED_TEST()
20560 env->Global()->Set(v8_str("Intercept"), intercept->GetFunction()); in THREADED_TEST()
20615 Local<String> password = v8_str("Password"); in THREADED_TEST()
20621 Local<String> i = v8_str("i"); in THREADED_TEST()
20622 Local<String> o = v8_str("o"); in THREADED_TEST()
20623 Local<String> id = v8_str("id"); in THREADED_TEST()
20634 context->Global()->Set(v8_str("func"), foreign_function); in THREADED_TEST()
20719 env->Global()->Set(v8_str("recursion"), in TEST()
20740 Local<Function>::Cast(env->Global()->Get(v8_str("recursion"))); in TEST()
20855 v8::Exception::Error(v8_str("first"))); in MicrotaskExceptionOne()
20864 v8::Exception::Error(v8_str("second"))); in MicrotaskExceptionTwo()
20971 Handle<Value> break_id = exec_state->Get(v8_str("break_id")); in DebugEventInObserver()
20974 CcTest::global()->Get(v8_str("f"))->ToObject()); in DebugEventInObserver()
21163 CHECK_EQ(name, v8_str("foo")); in InstanceCheckedGetter()
21173 CHECK_EQ(name, v8_str("foo")); in InstanceCheckedSetter()
21245 inst->SetAccessor(v8_str("foo"), in THREADED_TEST()
21251 context->Global()->Set(v8_str("f"), templ->GetFunction()); in THREADED_TEST()
21255 CHECK(templ->HasInstance(context->Global()->Get(v8_str("obj")))); in THREADED_TEST()
21261 CHECK(!templ->HasInstance(context->Global()->Get(v8_str("obj")))); in THREADED_TEST()
21274 inst->SetAccessor(v8_str("foo"), in THREADED_TEST()
21280 context->Global()->Set(v8_str("f"), templ->GetFunction()); in THREADED_TEST()
21284 CHECK(templ->HasInstance(context->Global()->Get(v8_str("obj")))); in THREADED_TEST()
21290 CHECK(!templ->HasInstance(context->Global()->Get(v8_str("obj")))); in THREADED_TEST()
21302 proto->SetAccessor(v8_str("foo"), InstanceCheckedGetter, in THREADED_TEST()
21306 context->Global()->Set(v8_str("f"), templ->GetFunction()); in THREADED_TEST()
21310 CHECK(templ->HasInstance(context->Global()->Get(v8_str("obj")))); in THREADED_TEST()
21316 CHECK(!templ->HasInstance(context->Global()->Get(v8_str("obj")))); in THREADED_TEST()
21324 CHECK(templ->HasInstance(context->Global()->Get(v8_str("obj")))); in THREADED_TEST()
21381 templ->SetAccessor(v8_str("foo"), in Helper137002()
21385 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in Helper137002()
21411 CHECK(context->Global()->Get(v8_str("result"))->IsUndefined()); in Helper137002()
21414 context->Global()->Get(v8_str("result"))->Int32Value()); in Helper137002()
21435 templ->SetAccessor(v8_str("foo"), in THREADED_TEST()
21438 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in THREADED_TEST()
21489 CHECK(context->Global()->Get(v8_str("load_result"))->IsUndefined()); in THREADED_TEST()
21490 CHECK(context->Global()->Get(v8_str("load_result2"))->IsUndefined()); in THREADED_TEST()
21491 CHECK(context->Global()->Get(v8_str("keyed_load_result"))->IsUndefined()); in THREADED_TEST()
21492 CHECK(context->Global()->Get(v8_str("keyed_load_result2"))->IsUndefined()); in THREADED_TEST()
21493 CHECK(context->Global()->Get(v8_str("y_from_obj"))->IsUndefined()); in THREADED_TEST()
21494 CHECK(context->Global()->Get(v8_str("y_from_subobj"))->IsUndefined()); in THREADED_TEST()
21504 templ->SetAccessor(v8_str("foo"), in THREADED_TEST()
21507 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in THREADED_TEST()
21552 context->Global()->Set(v8_str("Bug"), templ->GetFunction()); in THREADED_TEST()
21564 obj->DeleteHiddenValue(v8_str("Bug")); in THREADED_TEST()
21609 Local<Value> obj = v8::JSON::Parse(v8_str("{\"x\":42}")); in THREADED_TEST()
21611 global->Set(v8_str("obj"), obj); in THREADED_TEST()
21619 Local<Value> obj = v8::JSON::Parse(v8_str("42")); in THREADED_TEST()
21621 global->Set(v8_str("obj"), obj); in THREADED_TEST()
21728 global0->Set(v8_str("x"), v8_num(42)); in TEST()
21737 global0->Set(v8_str("toJSON"), toJSON->GetFunction()); in TEST()
21742 context1->Global()->Set(v8_str("other"), global0); in TEST()
21749 array->Set(0, v8_str("a")); in TEST()
21750 array->Set(1, v8_str("b")); in TEST()
21751 context1->Global()->Set(v8_str("array"), array); in TEST()
21772 v8::Exception::Error(v8_str("cross context"))); in FailedAccessCheckThrows()
21830 context1->Global()->Set(v8_str("other"), global0); in TEST()
21834 context1->Global()->Set(v8_str("catcher"), catcher_fun->GetFunction()); in TEST()
21838 context1->Global()->Set(v8_str("has_own_property"), in TEST()
21879 context->Global()->Set(v8_str("Bug"), templ->GetFunction()); in THREADED_TEST()
21895 env->Global()->Set(v8_str("Obj"), templ->GetFunction()); in THREADED_TEST()
21921 env->Global()->Set(v8_str("Obj"), templ->GetFunction()); in THREADED_TEST()
21944 env->Global()->Set(v8_str("Obj"), templ->GetFunction()); in THREADED_TEST()
21964 env->Global()->Set(v8_str("Obj"), templ->GetFunction()); in THREADED_TEST()
22079 env_->Global()->Set(v8_str("ShouldContinue"), func); in TestBody()
22092 proto->Set(v8_str("shouldContinue"), Function::New( in TestBody()
22094 env_->Global()->Set(v8_str("Klass"), t->GetFunction()); in TestBody()
22107 proto->SetAccessorProperty(v8_str("shouldContinue"), FunctionTemplate::New( in TestBody()
22109 env_->Global()->Set(v8_str("Klass"), t->GetFunction()); in TestBody()
22122 v8_str("shouldContinue"), in TestBody()
22126 env_->Global()->Set(v8_str("Klass"), t->GetFunction()); in TestBody()
22149 proto->Set(v8_str("shouldContinue"), Function::New( in TestBody()
22154 env_->Global()->Set(v8_str("Klass"), t->GetFunction()); in TestBody()
22171 env_->Global()->Set(v8_str("WakeUpInterruptor"), Function::New( in TestBody()
22176 env_->Global()->Set(v8_str("ShouldContinue"), Function::New( in TestBody()
22264 env_->Global()->Set(v8_str("ShouldContinue"), func); in TestBody()
22321 env->Global()->Set(v8_str("func"), func); in THREADED_TEST()
22339 env->Global()->Set(v8_str("func2"), func2); in THREADED_TEST()
22353 if (i != 0) value = v8_str("escape value"); in TEST()
22359 CHECK_EQ(v8_str("escape value"), values[i]); in TEST()
22378 templ->SetAccessor(v8_str("x"), 0, SetterWhichExpectsThisAndHolderToDiffer); in TEST()
22379 context->Global()->Set(v8_str("P"), templ->NewInstance()); in TEST()
22409 info.GetReturnValue().Set(v8_str("returned")); in OptimizationCallback()
22464 context->Global()->Set(v8_str("function_receiver"), function_receiver); in Run()
22479 global_holder->Set(v8_str("g_f"), function); in Run()
22480 global_holder->SetAccessorProperty(v8_str("g_acc"), function, function); in Run()
22481 function_holder->Set(v8_str("f"), function); in Run()
22482 function_holder->SetAccessorProperty(v8_str("acc"), function, function); in Run()
22628 Handle<Function> f1 = Handle<Function>::Cast(global->Get(v8_str("f1"))); in TEST()
22629 Handle<Function> f2 = Handle<Function>::Cast(global->Get(v8_str("f2"))); in TEST()
22632 CHECK_EQ(0, global->Get(v8_str("x1"))->Int32Value()); in TEST()
22634 CHECK_EQ(1, global->Get(v8_str("x1"))->Int32Value()); in TEST()
22638 CHECK_EQ(0, global->Get(v8_str("x2"))->Int32Value()); in TEST()
22641 CHECK_EQ(0, global->Get(v8_str("x2"))->Int32Value()); in TEST()
22643 CHECK_EQ(2, global->Get(v8_str("x2"))->Int32Value()); in TEST()
22647 CHECK_EQ(1, global->Get(v8_str("x1"))->Int32Value()); in TEST()
22657 CHECK_EQ(0, global->Get(v8_str("x1"))->Int32Value()); in TEST()
22658 CHECK_EQ(0, global->Get(v8_str("x2"))->Int32Value()); in TEST()
22662 CHECK_EQ(0, global->Get(v8_str("x1"))->Int32Value()); in TEST()
22663 CHECK_EQ(0, global->Get(v8_str("x2"))->Int32Value()); in TEST()
22666 CHECK_EQ(1, global->Get(v8_str("x1"))->Int32Value()); in TEST()
22667 CHECK_EQ(2, global->Get(v8_str("x2"))->Int32Value()); in TEST()
22674 CHECK_EQ(0, global->Get(v8_str("x1"))->Int32Value()); in TEST()
22675 CHECK_EQ(0, global->Get(v8_str("x2"))->Int32Value()); in TEST()
22677 CHECK_EQ(3, global->Get(v8_str("x1"))->Int32Value()); in TEST()
22678 CHECK_EQ(4, global->Get(v8_str("x2"))->Int32Value()); in TEST()
22684 CHECK_EQ(0, global->Get(v8_str("x1"))->Int32Value()); in TEST()
22685 CHECK_EQ(0, global->Get(v8_str("x2"))->Int32Value()); in TEST()
22687 CHECK_EQ(3, global->Get(v8_str("x1"))->Int32Value()); in TEST()
22688 CHECK_EQ(4, global->Get(v8_str("x2"))->Int32Value()); in TEST()
22716 Handle<Function> f1 = Handle<Function>::Cast(global->Get(v8_str("f1"))); in TEST()
22717 Handle<Function> f2 = Handle<Function>::Cast(global->Get(v8_str("f2"))); in TEST()
22721 CHECK(global->Get(v8_str("x1"))->IsNumber()); in TEST()
22722 CHECK_EQ(0, global->Get(v8_str("x1"))->Int32Value()); in TEST()
22724 CHECK(!global->Get(v8_str("x1"))->IsNumber()); in TEST()
22725 CHECK_EQ(p, global->Get(v8_str("x1"))); in TEST()
22730 CHECK_EQ(0, global->Get(v8_str("x1"))->Int32Value()); in TEST()
22732 CHECK_EQ(1, global->Get(v8_str("x1"))->Int32Value()); in TEST()
22742 CHECK_EQ(0, global->Get(v8_str("x1"))->Int32Value()); in TEST()
22743 CHECK_EQ(0, global->Get(v8_str("x2"))->Int32Value()); in TEST()
22745 CHECK_EQ(0, global->Get(v8_str("x1"))->Int32Value()); in TEST()
22746 CHECK_EQ(0, global->Get(v8_str("x2"))->Int32Value()); in TEST()
22750 CHECK_EQ(0, global->Get(v8_str("x1"))->Int32Value()); in TEST()
22751 CHECK_EQ(0, global->Get(v8_str("x2"))->Int32Value()); in TEST()
22753 CHECK_EQ(3, global->Get(v8_str("x1"))->Int32Value()); in TEST()
22754 CHECK_EQ(4, global->Get(v8_str("x2"))->Int32Value()); in TEST()
22801 current->Global()->Set(v8_str("friend"), templ->NewInstance()); in TEST()
22857 v8::ScriptOrigin origin(v8_str(url), v8::Integer::New(isolate, 13)); in TEST()
22858 v8::ScriptCompiler::Source script_source(v8_str("var foo;"), origin); in TEST()
22964 Local<Object> x = Local<Object>::Cast(env->Global()->Get(v8_str("x"))); in TEST()
22965 Local<Value> desc = x->GetOwnPropertyDescriptor(v8_str("no_prop")); in TEST()
22967 desc = x->GetOwnPropertyDescriptor(v8_str("p0")); in TEST()
22968 CHECK_EQ(v8_num(12), Local<Object>::Cast(desc)->Get(v8_str("value"))); in TEST()
22969 desc = x->GetOwnPropertyDescriptor(v8_str("p1")); in TEST()
22971 Local<Function>::Cast(Local<Object>::Cast(desc)->Get(v8_str("set"))); in TEST()
22973 Local<Function>::Cast(Local<Object>::Cast(desc)->Get(v8_str("get"))); in TEST()
22992 context->Global()->Set(v8_str("o"), object_template->NewInstance()); in TEST()
23009 obj->Set(v8_str("key"), v8_str("value")); in TEST()
23010 obj->Delete(v8_str("key")); in TEST()
23012 obj->SetHiddenValue(v8_str("hidden key 2"), v8_str("hidden value 2")); in TEST()
23027 context->Global()->Set(v8_str("o"), object_template->NewInstance()); in TEST()
23096 v8::ScriptOrigin origin(v8_str("http://foo.com")); in RunStreamingTest()
23103 isolate, &source, v8_str(full_source), origin); in RunStreamingTest()