• Home
  • Raw
  • Download

Lines Matching refs:v8_str

138       v8_str("m"),  in THREADED_TEST()
142 env->Global()->Set(v8_str("Fun"), fun->GetFunction()); in THREADED_TEST()
150 env->Global()->Set(v8_str("SubFun"), sub_fun->GetFunction()); in THREADED_TEST()
166 env->Global()->Set(v8_str("UnrelFun"), unrel_fun->GetFunction()); in THREADED_TEST()
182 cons->SetClassName(v8_str("Cons")); in THREADED_TEST()
187 env->Global()->Set(v8_str("Cons"), cons->GetFunction()); in THREADED_TEST()
188 env->Global()->Set(v8_str("Fun1"), fun->GetFunction()); in THREADED_TEST()
200 cons1->SetClassName(v8_str("Cons1")); in THREADED_TEST()
202 cons2->SetClassName(v8_str("Cons2")); in THREADED_TEST()
204 cons3->SetClassName(v8_str("Cons3")); in THREADED_TEST()
212 env->Global()->Set(v8_str("Cons1"), cons1->GetFunction()); in THREADED_TEST()
213 env->Global()->Set(v8_str("Cons2"), cons2->GetFunction()); in THREADED_TEST()
214 env->Global()->Set(v8_str("Cons3"), cons3->GetFunction()); in THREADED_TEST()
215 env->Global()->Set(v8_str("Fun2"), fun2->GetFunction()); in THREADED_TEST()
256 Local<Value> foo_before = obj->Get(v8_str("foo")); in THREADED_TEST()
258 Local<String> bar_str = v8_str("bar"); in THREADED_TEST()
259 obj->Set(v8_str("foo"), bar_str); in THREADED_TEST()
260 Local<Value> foo_after = obj->Get(v8_str("foo")); in THREADED_TEST()
421 Local<String> source = v8_str(c_source); in THREADED_TEST()
596 Local<String> left = v8_str(one_byte_string_1); in THREADED_TEST()
605 right = v8_str(one_byte_string_2); in THREADED_TEST()
627 global->Set(v8_str("pi"), v8_num(3.1415926)); in THREADED_TEST()
628 Local<Value> pi = global->Get(v8_str("pi")); in THREADED_TEST()
641 args.This()->Set(v8_str("x"), v8_num(1)); in construct_call()
642 args.This()->Set(v8_str("y"), v8_num(2)); in construct_call()
653 env->Global()->Set(v8_str("obj"), fun); in THREADED_TEST()
663 env->Global()->Set(v8_str("obj"), fun); in THREADED_TEST()
671 fun_templ->SetClassName(v8_str("funky")); in THREADED_TEST()
673 env->Global()->Set(v8_str("obj"), fun); in THREADED_TEST()
678 CHECK_EQ(v8_str("[object funky]"), result); in THREADED_TEST()
700 derived_instance2->Set(v8_str("__proto__"), derived_instance); in THREADED_TEST()
701 other_instance->Set(v8_str("__proto__"), derived_instance2); in THREADED_TEST()
824 Local<String> str = v8_str("3.1415926"); in THREADED_TEST()
853 v8::Handle<String> str1 = v8_str(""); in THREADED_TEST()
855 v8::Handle<String> str2 = v8_str("x"); in THREADED_TEST()
885 templ->SetAccessor(v8_str("m"), GetM); in THREADED_TEST()
903 env->Global()->Set(v8_str("p"), instance1); in THREADED_TEST()
912 env->Global()->Set(v8_str("q"), instance2); in THREADED_TEST()
939 super->InstanceTemplate()->SetAccessor(v8_str("knurd"), GetKnurd); in THREADED_TEST()
951 env->Global()->Set(v8_str("s"), super->GetFunction()); in THREADED_TEST()
952 env->Global()->Set(v8_str("base1"), base1->GetFunction()); in THREADED_TEST()
953 env->Global()->Set(v8_str("base2"), base2->GetFunction()); in THREADED_TEST()
966 env->Global()->Set(v8_str("obj"), in THREADED_TEST()
974 env->Global()->Set(v8_str("obj2"), in THREADED_TEST()
994 CHECK_EQ(v8_str("data"), info.Data()); in EchoNamedProperty()
1006 v8_str("data")); in THREADED_TEST()
1008 env->Global()->Set(v8_str("obj"), in THREADED_TEST()
1043 env->Global()->Set(v8_str("obj"), in THREADED_TEST()
1161 bottom->Set(v8_str("__proto__"), middle); in THREADED_TEST()
1162 middle->Set(v8_str("__proto__"), top); in THREADED_TEST()
1163 env->Global()->Set(v8_str("obj"), bottom); in THREADED_TEST()
1166 Script::Compile(v8_str("obj[0]"))->Run(); in THREADED_TEST()
1167 Script::Compile(v8_str("obj.x"))->Run(); in THREADED_TEST()
1170 Script::Compile(v8_str("obj[1] = 42"))->Run(); in THREADED_TEST()
1171 Script::Compile(v8_str("obj.y = 42"))->Run(); in THREADED_TEST()
1174 Script::Compile(v8_str("0 in obj"))->Run(); in THREADED_TEST()
1175 Script::Compile(v8_str("'x' in obj"))->Run(); in THREADED_TEST()
1178 Script::Compile(v8_str("delete obj[0]"))->Run(); in THREADED_TEST()
1179 Script::Compile(v8_str("delete obj.x"))->Run(); in THREADED_TEST()
1182 Script::Compile(v8_str("for (var p in obj) ;"))->Run(); in THREADED_TEST()
1189 if (v8_str("pre")->Equals(key)) { in PrePropertyHandlerGet()
1190 return v8_str("PrePropertyHandler: pre"); in PrePropertyHandlerGet()
1198 if (v8_str("pre")->Equals(key)) { in PrePropertyHandlerHas()
1213 Script::Compile(v8_str( in THREADED_TEST()
1215 v8::Handle<Value> result_pre = Script::Compile(v8_str("pre"))->Run(); in THREADED_TEST()
1216 CHECK_EQ(v8_str("PrePropertyHandler: pre"), result_pre); in THREADED_TEST()
1217 v8::Handle<Value> result_on = Script::Compile(v8_str("on"))->Run(); in THREADED_TEST()
1218 CHECK_EQ(v8_str("Object: on"), result_on); in THREADED_TEST()
1219 v8::Handle<Value> result_post = Script::Compile(v8_str("post"))->Run(); in THREADED_TEST()
1227 v8::Handle<Value> result = Script::Compile(v8_str( in THREADED_TEST()
1239 int depth = args.This()->Get(v8_str("depth"))->Int32Value(); in CallScriptRecursivelyCall()
1241 args.This()->Set(v8_str("depth"), v8::Integer::New(depth + 1)); in CallScriptRecursivelyCall()
1249 int depth = args.This()->Get(v8_str("depth"))->Int32Value(); in CallFunctionRecursivelyCall()
1254 args.This()->Set(v8_str("depth"), v8::Integer::New(depth + 1)); in CallFunctionRecursivelyCall()
1256 args.This()->Get(v8_str("callFunctionRecursively")); in CallFunctionRecursivelyCall()
1264 global->Set(v8_str("callScriptRecursively"), in THREADED_TEST()
1266 global->Set(v8_str("callFunctionRecursively"), in THREADED_TEST()
1270 env->Global()->Set(v8_str("depth"), v8::Integer::New(0)); in THREADED_TEST()
1275 env->Global()->Set(v8_str("depth"), v8::Integer::New(0)); in THREADED_TEST()
1276 Script::Compile(v8_str("callFunctionRecursively()"))->Run(); in THREADED_TEST()
1301 env->Global()->Set(v8_str("obj"), obj->NewInstance()); in THREADED_TEST()
1302 v8::Handle<Value> otto = Script::Compile(v8_str( in THREADED_TEST()
1304 CHECK_EQ(v8_str("otto"), otto); in THREADED_TEST()
1305 v8::Handle<Value> netto = Script::Compile(v8_str( in THREADED_TEST()
1307 CHECK_EQ(v8_str("netto"), netto); in THREADED_TEST()
1314 Foo->PrototypeTemplate()->Set(v8_str("plak"), v8_num(321)); in THREADED_TEST()
1316 env->Global()->Set(v8_str("Foo"), Foo->GetFunction()); in THREADED_TEST()
1317 Local<Script> script = Script::Compile(v8_str("Foo.prototype.plak")); in THREADED_TEST()
1439 v8::Local<v8::String> key = v8_str("api-test::hidden-key"); in THREADED_TEST()
1440 v8::Local<v8::String> empty = v8_str(""); in THREADED_TEST()
1441 v8::Local<v8::String> prop_name = v8_str("prop_name"); in THREADED_TEST()
1496 v8::Local<v8::String> key = v8_str("api-test::hidden-key"); in THREADED_TEST()
1515 env->Global()->Set(v8_str("ext"), ext); in THREADED_TEST()
1516 Local<Value> reext_obj = Script::Compile(v8_str("this.ext"))->Run(); in THREADED_TEST()
1546 Local<String> str = v8_str("str"); in THREADED_TEST()
1557 Local<Script> script = Script::Compile(v8_str("throw 'panama!';")); in THREADED_TEST()
1586 v8::ScriptOrigin(v8_str("6.75")); in THREADED_TEST()
1587 v8::Handle<v8::Script> script = Script::Compile(v8_str("throw 'error'"), in THREADED_TEST()
1589 script->SetData(v8_str("7.56")); in THREADED_TEST()
1600 context->Global()->Set(v8_str("foo"), v8_num(14)); in THREADED_TEST()
1601 context->Global()->Set(v8_str("12"), v8_num(92)); in THREADED_TEST()
1604 Local<Value> foo = Script::Compile(v8_str("this.foo"))->Run(); in THREADED_TEST()
1606 Local<Value> twelve = Script::Compile(v8_str("this[12]"))->Run(); in THREADED_TEST()
1608 Local<Value> sixteen = Script::Compile(v8_str("this[16]"))->Run(); in THREADED_TEST()
1610 Local<Value> thirteen = Script::Compile(v8_str("this[13]"))->Run(); in THREADED_TEST()
1613 CHECK_EQ(92, context->Global()->Get(v8_str("12"))->Int32Value()); in THREADED_TEST()
1616 CHECK_EQ(32, context->Global()->Get(v8_str("16"))->Int32Value()); in THREADED_TEST()
1619 CHECK_EQ(56, context->Global()->Get(v8_str("13"))->Int32Value()); in THREADED_TEST()
1628 Local<String> prop = v8_str("read_only"); in THREADED_TEST()
1631 Script::Compile(v8_str("read_only = 9"))->Run(); in THREADED_TEST()
1636 prop = v8_str("dont_delete"); in THREADED_TEST()
1639 Script::Compile(v8_str("delete dont_delete"))->Run(); in THREADED_TEST()
1659 Local<Value> obj = Script::Compile(v8_str("[1, 2, 3]"))->Run(); in THREADED_TEST()
1681 global->Set(v8_str("f"), v8::FunctionTemplate::New(HandleF)); in THREADED_TEST()
1733 Local<Function>::Cast(context->Global()->Get(v8_str("Foo"))); in THREADED_TEST()
1832 templ->Set(v8_str("ProvokeOutOfMemory"), in TEST()
1887 Local<Function>::Cast(context->Global()->Get(v8_str("Foo"))); in THREADED_TEST()
1942 Local<Value> obj = env->Global()->Get(v8_str("obj")); in THREADED_TEST()
1991 return v8::ThrowException(v8_str("konto")); in ThrowFromC()
2008 templ->Set(v8_str("ThrowFromC"), in THREADED_TEST()
2018 Local<Value> thrown = context->Global()->Get(v8_str("thrown")); in THREADED_TEST()
2026 templ->Set(v8_str("ThrowFromC"), in THREADED_TEST()
2045 templ->Set(v8_str("CCatcher"), in TEST()
2071 templ->Set(v8_str("ThrowFromC"), in TEST()
2085 templ->Set(v8_str("ThrowFromC"), in TEST()
2101 templ->Set(v8_str("ThrowFromC"), in THREADED_TEST()
2107 = Script::Compile(v8_str("ThrowFromC(); throw 'panama';")); in THREADED_TEST()
2123 return v8::ThrowException(v8_str("FromC")); in CThrowCountDown()
2126 Local<Value> fun = global->Get(v8_str("JSThrowCountDown")); in CThrowCountDown()
2204 templ->Set(v8_str("check"), v8::FunctionTemplate::New(JSCheck)); in TEST()
2205 templ->Set(v8_str("CThrowCountDown"), in TEST()
2227 Local<Function>::Cast(context->Global()->Get(v8_str("JSThrowCountDown"))); in TEST()
2268 templ->Set(v8_str("Throw"), v8::FunctionTemplate::New(ThrowValue)); in THREADED_TEST()
2296 Script::Compile(v8_str("throw 10"))->Run(); in THREADED_TEST()
2301 Script::Compile(v8_str("throw 0"))->Run(); in THREADED_TEST()
2312 Script::Compile(v8_str("var o = {}; with (o) { throw 42; }"))->Run(); in THREADED_TEST()
2321 CHECK(v8_str("a")->Equals(v8_str("a"))); in THREADED_TEST()
2322 CHECK(!v8_str("a")->Equals(v8_str("b"))); in THREADED_TEST()
2324 CHECK_EQ(v8_str("a"), v8_str("a")); in THREADED_TEST()
2325 CHECK_NE(v8_str("a"), v8_str("b")); in THREADED_TEST()
2331 CHECK(v8_str("a")->StrictEquals(v8_str("a"))); in THREADED_TEST()
2332 CHECK(!v8_str("a")->StrictEquals(v8_str("b"))); in THREADED_TEST()
2333 CHECK(!v8_str("5")->StrictEquals(v8_num(5))); in THREADED_TEST()
2352 Local<Script> script = Script::Compile(v8_str("x")); in THREADED_TEST()
2361 CHECK_EQ(info.Data(), v8_str("donut")); in GetXValue()
2362 CHECK_EQ(name, v8_str("x")); in GetXValue()
2370 templ->SetAccessor(v8_str("x"), GetXValue, NULL, v8_str("donut")); in THREADED_TEST()
2372 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in THREADED_TEST()
2373 Local<Script> script = Script::Compile(v8_str("obj.x")); in THREADED_TEST()
2376 CHECK_EQ(result, v8_str("x")); in THREADED_TEST()
2383 templ->SetAccessor(v8_str("x"), GetXValue, NULL, v8_str("donut")); in THREADED_TEST()
2385 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in THREADED_TEST()
2389 = Script::Compile(v8_str("var prop =Object.getOwnPropertyDescriptor( " in THREADED_TEST()
2397 = Script::Compile(v8_str("var desc = { get: function(){return 42; }," in THREADED_TEST()
2410 = Script::Compile(v8_str("var desc = { get: function(){return 43; }," in THREADED_TEST()
2431 templ->SetAccessor(v8_str("x"), GetXValue, NULL, v8_str("donut")); in THREADED_TEST()
2433 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in THREADED_TEST()
2435 Local<Script> script_desc = Script::Compile(v8_str("var prop =" in THREADED_TEST()
2443 Script::Compile(v8_str("var desc = {get: function(){return 42; }," in THREADED_TEST()
2456 Script::Compile(v8_str("var desc = {get: function(){return 43; }," in THREADED_TEST()
2485 CHECK_EQ(info.Data(), v8_str("donut")); in SetXValue()
2486 CHECK_EQ(name, v8_str("x")); in SetXValue()
2495 templ->SetAccessor(v8_str("x"), GetXValue, SetXValue, v8_str("donut")); in THREADED_TEST()
2497 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in THREADED_TEST()
2498 Local<Script> script = Script::Compile(v8_str("obj.x = 4")); in THREADED_TEST()
2522 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in THREADED_TEST()
2523 Local<Script> script = Script::Compile(v8_str("obj.x")); in THREADED_TEST()
2526 CHECK_EQ(result, v8_str("x")); in THREADED_TEST()
2535 v8::Handle<v8::Object>::Cast(proto)->Set(v8_str("x"), v8::Integer::New(23)); in SetXOnPrototypeGetter()
2549 context->Global()->Set(v8_str("F"), function_template->GetFunction()); in THREADED_TEST()
2585 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in THREADED_TEST()
2586 Local<Script> getter_script = Script::Compile(v8_str( in THREADED_TEST()
2588 Local<Script> setter_script = Script::Compile(v8_str( in THREADED_TEST()
2592 Local<Script> interceptor_setter_script = Script::Compile(v8_str( in THREADED_TEST()
2596 Local<Script> interceptor_getter_script = Script::Compile(v8_str( in THREADED_TEST()
2622 context->Global()->Set(v8_str("obj"), templ->NewInstance()); in THREADED_TEST()
2647 context->Global()->Set(v8_str("obj"), obj); in THREADED_TEST()
2671 context->Global()->Set(v8_str("obj"), obj); in THREADED_TEST()
2700 context->Global()->Set(v8_str("obj"), obj); in THREADED_TEST()
2723 context->Global()->Set(v8_str("obj"), obj); in THREADED_TEST()
2751 context->Global()->Set(v8_str("obj"), obj); in THREADED_TEST()
2781 context->Global()->Set(v8_str("obj"), obj); in THREADED_TEST()
2811 context->Global()->Set(v8_str("obj"), obj); in THREADED_TEST()
2831 templ->Set(v8_str("dummy"), v8::FunctionTemplate::New(DummyCallHandler)); in THREADED_TEST()
2833 Local<String> password = v8_str("Password"); in THREADED_TEST()
2839 global0->Set(v8_str("custom"), v8_num(1234)); in THREADED_TEST()
2840 CHECK_EQ(1234, global0->Get(v8_str("custom"))->Int32Value()); in THREADED_TEST()
2846 global1->Set(v8_str("custom"), v8_num(1234)); in THREADED_TEST()
2848 CHECK_EQ(1234, global0->Get(v8_str("custom"))->Int32Value()); in THREADED_TEST()
2849 CHECK_EQ(1234, global1->Get(v8_str("custom"))->Int32Value()); in THREADED_TEST()
2856 CHECK_EQ(0, global1->Get(v8_str("custom"))->Int32Value()); in THREADED_TEST()
2857 CHECK_EQ(0, global2->Get(v8_str("custom"))->Int32Value()); in THREADED_TEST()
2871 v8::Handle<v8::Object>::Cast(global0->Get(v8_str("Object"))); in THREADED_TEST()
2873 v8::Handle<v8::Object>::Cast(object0->Get(v8_str("toString"))); in THREADED_TEST()
2875 v8::Handle<v8::Object>::Cast(tostring0->Get(v8_str("__proto__"))); in THREADED_TEST()
2876 proto0->Set(v8_str("custom"), v8_num(1234)); in THREADED_TEST()
2882 v8::Handle<v8::Object>::Cast(global1->Get(v8_str("Object"))); in THREADED_TEST()
2884 v8::Handle<v8::Object>::Cast(object1->Get(v8_str("toString"))); in THREADED_TEST()
2886 v8::Handle<v8::Object>::Cast(tostring1->Get(v8_str("__proto__"))); in THREADED_TEST()
2887 CHECK(!proto1->Has(v8_str("custom"))); in THREADED_TEST()
2900 Local<String> source = v8_str("Object.prototype.obj = 1234;" in THREADED_TEST()
2923 env->Global()->Set(v8_str("undetectable"), obj); in THREADED_TEST()
2963 env->Global()->Set(v8_str("undetectable"), obj); in THREADED_TEST()
3004 Local<String> str = v8_str("foo"); in PersistentHandles()
3007 Local<Script> scr = Script::Compile(v8_str("")); in PersistentHandles()
3026 global_template->Set(v8_str("JSNI_Log"), in THREADED_TEST()
3030 Script::Compile(v8_str("JSNI_Log('LOG')"))->Run(); in THREADED_TEST()
3048 v8::Handle<Value> result = Script::Compile(v8_str("Foo()"))->Run(); in THREADED_TEST()
3078 v8::Handle<Value> result = Script::Compile(v8_str("UseEval1()"))->Run(); in THREADED_TEST()
3080 result = Script::Compile(v8_str("UseEval2()"))->Run(); in THREADED_TEST()
3111 v8::Handle<Value> result = Script::Compile(v8_str("UseWith1()"))->Run(); in THREADED_TEST()
3113 result = Script::Compile(v8_str("UseWith2()"))->Run(); in THREADED_TEST()
3125 v8::Handle<Value> result = Script::Compile(v8_str("Foo()"))->Run(); in THREADED_TEST()
3168 CHECK_EQ(String::New(expected), context->Global()->Get(v8_str("loaded"))); in CheckDependencies()
3197 CHECK_EQ(v8_str("undefinedACBDE"), context->Global()->Get(v8_str("loaded"))); in THREADED_TEST()
3215 args.This()->Set(v8_str("data"), args.Data()); in CallFun()
3234 if (name->Equals(v8_str("A"))) { in GetNativeFunction()
3236 } else if (name->Equals(v8_str("B"))) { in GetNativeFunction()
3238 } else if (name->Equals(v8_str("C"))) { in GetNativeFunction()
3253 CHECK_EQ(v8::Integer::New(8), Script::Compile(v8_str("Foo(0)"))->Run()); in THREADED_TEST()
3254 CHECK_EQ(v8::Integer::New(7), Script::Compile(v8_str("Foo(1)"))->Run()); in THREADED_TEST()
3255 CHECK_EQ(v8::Integer::New(6), Script::Compile(v8_str("Foo(2)"))->Run()); in THREADED_TEST()
3269 Script::Compile(v8_str("(new A()).data"))->Run()); in THREADED_TEST()
3271 Script::Compile(v8_str("(new B()).data"))->Run()); in THREADED_TEST()
3273 Script::Compile(v8_str("(new C()).data"))->Run()); in THREADED_TEST()
3346 Script::Compile(v8_str("throw Error()"))->Run(); in THREADED_TEST()
3396 prev->Set(v8_str("next"), obj); in WhammyPropertyGetter()
3417 context->Global()->Set(v8_str("whammy"), interceptor); in THREADED_TEST()
3506 global->Set(v8_str("f"), v8::FunctionTemplate::New(ArgumentsTestCallback)); in THREADED_TEST()
3508 args_fun = v8::Handle<Function>::Cast(context->Global()->Get(v8_str("f"))); in THREADED_TEST()
3527 if (!name->Equals(v8_str("foo"))) { in PDeleter()
3550 context->Global()->Set(v8_str("k"), obj->NewInstance()); in THREADED_TEST()
3559 CHECK_EQ(v8_compile("k.foo")->Run(), v8_str("foo")); in THREADED_TEST()
3572 if (name->Equals(v8_str("foo")) || in GetK()
3573 name->Equals(v8_str("bar")) || in GetK()
3574 name->Equals(v8_str("baz"))) { in GetK()
3591 result->Set(v8::Integer::New(0), v8_str("foo")); in NamedEnum()
3592 result->Set(v8::Integer::New(1), v8_str("bar")); in NamedEnum()
3593 result->Set(v8::Integer::New(2), v8_str("baz")); in NamedEnum()
3601 result->Set(v8::Integer::New(0), v8_str("0")); in IndexedEnum()
3602 result->Set(v8::Integer::New(1), v8_str("1")); in IndexedEnum()
3613 context->Global()->Set(v8_str("k"), obj->NewInstance()); in THREADED_TEST()
3640 CHECK_EQ(v8_str("5"), result->Get(v8::Integer::New(0))); in THREADED_TEST()
3641 CHECK_EQ(v8_str("10"), result->Get(v8::Integer::New(1))); in THREADED_TEST()
3642 CHECK_EQ(v8_str("140000"), result->Get(v8::Integer::New(2))); in THREADED_TEST()
3643 CHECK_EQ(v8_str("4294967295"), result->Get(v8::Integer::New(3))); in THREADED_TEST()
3646 CHECK_EQ(v8_str("0"), result->Get(v8::Integer::New(4))); in THREADED_TEST()
3647 CHECK_EQ(v8_str("1"), result->Get(v8::Integer::New(5))); in THREADED_TEST()
3649 CHECK_EQ(v8_str("a"), result->Get(v8::Integer::New(6))); in THREADED_TEST()
3650 CHECK_EQ(v8_str("b"), result->Get(v8::Integer::New(7))); in THREADED_TEST()
3651 CHECK_EQ(v8_str("c"), result->Get(v8::Integer::New(8))); in THREADED_TEST()
3652 CHECK_EQ(v8_str("4294967296"), result->Get(v8::Integer::New(9))); in THREADED_TEST()
3653 CHECK_EQ(v8_str("d"), result->Get(v8::Integer::New(10))); in THREADED_TEST()
3654 CHECK_EQ(v8_str("e"), result->Get(v8::Integer::New(11))); in THREADED_TEST()
3655 CHECK_EQ(v8_str("30000000000"), result->Get(v8::Integer::New(12))); in THREADED_TEST()
3656 CHECK_EQ(v8_str("f"), result->Get(v8::Integer::New(13))); in THREADED_TEST()
3658 CHECK_EQ(v8_str("foo"), result->Get(v8::Integer::New(14))); in THREADED_TEST()
3659 CHECK_EQ(v8_str("bar"), result->Get(v8::Integer::New(15))); in THREADED_TEST()
3660 CHECK_EQ(v8_str("baz"), result->Get(v8::Integer::New(16))); in THREADED_TEST()
3672 CHECK_EQ(info.Holder(), global->Get(v8_str("o1"))); in PGetter()
3673 if (name->Equals(v8_str("p1"))) { in PGetter()
3674 CHECK_EQ(info.This(), global->Get(v8_str("o1"))); in PGetter()
3675 } else if (name->Equals(v8_str("p2"))) { in PGetter()
3676 CHECK_EQ(info.This(), global->Get(v8_str("o2"))); in PGetter()
3677 } else if (name->Equals(v8_str("p3"))) { in PGetter()
3678 CHECK_EQ(info.This(), global->Get(v8_str("o3"))); in PGetter()
3679 } else if (name->Equals(v8_str("p4"))) { in PGetter()
3680 CHECK_EQ(info.This(), global->Get(v8_str("o4"))); in PGetter()
3689 context->Global()->Set(v8_str("o1"), obj->NewInstance()); in RunHolderTest()
3707 CHECK_EQ(info.Holder(), global->Get(v8_str("o1"))); in PGetter2()
3708 if (name->Equals(v8_str("p1"))) { in PGetter2()
3709 CHECK_EQ(info.This(), global->Get(v8_str("o1"))); in PGetter2()
3710 } else if (name->Equals(v8_str("p2"))) { in PGetter2()
3711 CHECK_EQ(info.This(), global->Get(v8_str("o2"))); in PGetter2()
3712 } else if (name->Equals(v8_str("p3"))) { in PGetter2()
3713 CHECK_EQ(info.This(), global->Get(v8_str("o3"))); in PGetter2()
3714 } else if (name->Equals(v8_str("p4"))) { in PGetter2()
3715 CHECK_EQ(info.This(), global->Get(v8_str("o4"))); in PGetter2()
3724 obj->SetAccessor(v8_str("p1"), PGetter); in THREADED_TEST()
3725 obj->SetAccessor(v8_str("p2"), PGetter); in THREADED_TEST()
3726 obj->SetAccessor(v8_str("p3"), PGetter); in THREADED_TEST()
3727 obj->SetAccessor(v8_str("p4"), PGetter); in THREADED_TEST()
3747 templ->SetAccessor(v8_str("t"), PGetter2); in THREADED_TEST()
3749 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
3753 CHECK_NE(obj, context->Global()->Get(v8_str("o"))); in THREADED_TEST()
3754 context->Global()->Set(v8_str("o2"), obj); in THREADED_TEST()
3756 Script::Compile(v8_str("o.__proto__ === o2.__proto__"))->Run(); in THREADED_TEST()
3758 context->Global()->Set(v8_str("o"), obj); in THREADED_TEST()
3765 v8::Handle<String> str = v8_str("abcde"); in THREADED_TEST()
3811 v8::Handle<String> str = v8_str("42"); in THREADED_TEST()
3815 str = v8_str("42asdf"); in THREADED_TEST()
3818 str = v8_str("-42"); in THREADED_TEST()
3821 str = v8_str("4294967295"); in THREADED_TEST()
3842 v8::Handle<String> foo = v8_str("foo"); in THREADED_TEST()
3843 v8::Handle<String> message = v8_str("message"); in THREADED_TEST()
3883 obj->SetAccessor(v8_str("y"), YGetter, YSetter); in THREADED_TEST()
3886 context->Global()->Set(v8_str("holder"), holder); in THREADED_TEST()
3954 arg_this->Get(v8_str("trouble_callee")) : in TroubleCallback()
3955 arg_this->Get(v8_str("trouble_caller")); in TroubleCallback()
3978 global->Set(v8_str("trouble"), fun->GetFunction()); in TEST()
3980 Script::Compile(v8_str("function trouble_callee() {" in TEST()
3987 Local<Value> trouble = global->Get(v8_str("trouble")); in TEST()
3989 Local<Value> trouble_callee = global->Get(v8_str("trouble_callee")); in TEST()
3991 Local<Value> trouble_caller = global->Get(v8_str("trouble_caller")); in TEST()
4017 global->Set(v8_str("trouble"), fun->GetFunction()); in TEST()
4019 Script::Compile(v8_str("function trouble() {\n" in TEST()
4023 Local<Value> trouble = global->Get(v8_str("trouble")); in TEST()
4034 Script::Compile(v8_str("This doesn't &*&@#$&*^ compile.")); in TEST()
4044 Script::Compile(v8_str("try { throw ''; } catch (e) {}"))->Run(); in TEST()
4046 Script::Compile(v8_str("try { throw ''; } finally {}"))->Run(); in TEST()
4049 Script::Compile(v8_str("(function() {" in TEST()
4053 Script::Compile(v8_str("(function()" in TEST()
4074 global0->Set(v8_str("0"), v8_num(999)); in TEST()
4075 v8::Handle<Value> foo0 = global0->Get(v8_str("foo")); in TEST()
4077 v8::Handle<Value> z0 = global0->Get(v8_str("0")); in TEST()
4088 global1->Set(v8_str("othercontext"), global0); in TEST()
4094 v8::Handle<Value> foo1 = global0->Get(v8_str("foo")); in TEST()
4097 v8::Handle<Value> z1 = global0->Get(v8_str("0")); in TEST()
4105 global2->Set(v8_str("othercontext"), global0); in TEST()
4109 v8::Handle<Value> foo2 = global0->Get(v8_str("foo")); in TEST()
4111 v8::Handle<Value> z2 = global0->Get(v8_str("0")); in TEST()
4128 Local<Value> foo = v8_str("foo"); in THREADED_TEST()
4129 Local<Value> bar = v8_str("bar"); in THREADED_TEST()
4135 Script::Compile(v8_str("spy=function(){return spy;}"))->Run(); in THREADED_TEST()
4136 Local<Value> spy = env1->Global()->Get(v8_str("spy")); in THREADED_TEST()
4140 Script::Compile(v8_str("spy2=function(){return new this.Array();}"))->Run(); in THREADED_TEST()
4141 Local<Value> spy2 = env1->Global()->Get(v8_str("spy2")); in THREADED_TEST()
4177 other_object = other->Global()->Get(v8_str("Object")); in THREADED_TEST()
4181 current->Global()->Set(v8_str("other"), other->Global()); in THREADED_TEST()
4215 other->Global()->Set(v8_str("__proto__"), current->Global()); in THREADED_TEST()
4220 current->Global()->Set(v8_str("foo"), v8_num(100)); in THREADED_TEST()
4241 Local<Value> foo = v8_str("foo"); in THREADED_TEST()
4242 Local<Value> bar = v8_str("bar"); in THREADED_TEST()
4248 env1->Global()->Set(v8_str("prop"), v8_num(3)); in THREADED_TEST()
4249 env2->Global()->Set(v8_str("env1"), env1->Global()); in THREADED_TEST()
4256 Script::Compile(v8_str("delete env1.prop"))->Run(); in THREADED_TEST()
4261 Local<Value> v = env1->Global()->Get(v8_str("prop")); in THREADED_TEST()
4274 Local<Value> foo = v8_str("foo"); in THREADED_TEST()
4275 Local<Value> bar = v8_str("bar"); in THREADED_TEST()
4281 env1->Global()->Set(v8_str("prop"), v8_num(3)); in THREADED_TEST()
4282 env2->Global()->Set(v8_str("env1"), env1->Global()); in THREADED_TEST()
4285 Local<String> test = v8_str("propertyIsEnumerable.call(env1, 'prop')"); in THREADED_TEST()
4309 Local<Value> foo = v8_str("foo"); in THREADED_TEST()
4310 Local<Value> bar = v8_str("bar"); in THREADED_TEST()
4316 env1->Global()->Set(v8_str("prop"), v8_num(3)); in THREADED_TEST()
4317 env2->Global()->Set(v8_str("env1"), env1->Global()); in THREADED_TEST()
4344 Local<Value> foo = v8_str("foo"); in TEST()
4355 global2->Set(v8_str("prop"), v8::Integer::New(1)); in TEST()
4358 env1->Global()->Set(v8_str("getProp"), in TEST()
4359 global2->Get(v8_str("getProp"))); in TEST()
4369 env3->SetSecurityToken(v8_str("bar")); in TEST()
4374 CHECK(global3->Get(v8_str("prop"))->IsUndefined()); in TEST()
4375 CHECK(global3->Get(v8_str("getProp"))->IsUndefined()); in TEST()
4376 global3->Set(v8_str("prop"), v8::Integer::New(-1)); in TEST()
4377 global3->Set(v8_str("prop2"), v8::Integer::New(2)); in TEST()
4382 Local<Value> get_prop = global1->Get(v8_str("getProp")); in TEST()
4392 Local<Value> r = global3->Get(v8_str("prop2")); in TEST()
4408 Local<Value> foo = v8_str("foo"); in TEST()
4417 env2->Global()->Set(v8_str("p"), v8::Integer::New(42)); in TEST()
4421 env1->Global()->Set(v8_str("other"), env2->Global()); in TEST()
4448 env3->Global()->Set(v8_str("p"), v8::Integer::New(24)); in TEST()
4457 env3->SetSecurityToken(v8_str("bar")); in TEST()
4533 v8_str("accessible_prop"), in THREADED_TEST()
4539 global_template->SetAccessor(v8_str("blocked_prop"), in THREADED_TEST()
4556 global1->Set(v8_str("other"), global0); in THREADED_TEST()
4620 obj_template->Set(v8_str("x"), v8::Integer::New(42)); in THREADED_TEST()
4636 global1->Set(v8_str("other"), global0); in THREADED_TEST()
4637 global1->Set(v8_str("object"), obj_template->NewInstance()); in THREADED_TEST()
4677 proto_template->SetAccessor(v8_str("accessible"), in THREADED_TEST()
4683 global_template->SetAccessor(v8_str("unreachable"), in THREADED_TEST()
4693 global->Set(v8_str("accessible"), v8_num(11)); in THREADED_TEST()
4701 global1->Set(v8_str("other"), global); in THREADED_TEST()
4765 global1->Set(v8_str("obj"), object); in TEST()
4914 global1->Set(v8_str("obj"), object); in THREADED_TEST()
4983 global1->Set(v8_str("obj"), object); in THREADED_TEST()
5038 instance->Set(v8_str("x"), v8_num(42)); in THREADED_TEST()
5039 instance->Set(v8_str("f"), in THREADED_TEST()
5044 context->Global()->Set(v8_str("i"), o); in THREADED_TEST()
5045 Local<Value> value = Script::Compile(v8_str("i.x"))->Run(); in THREADED_TEST()
5048 value = Script::Compile(v8_str("i.f()"))->Run(); in THREADED_TEST()
5069 instance_template->Set(v8_str("x"), v8_num(42)); in THREADED_TEST()
5070 instance_template->Set(v8_str("f"), in THREADED_TEST()
5079 Local<Value> value = Script::Compile(v8_str("x"))->Run(); in THREADED_TEST()
5081 value = Script::Compile(v8_str("f()"))->Run(); in THREADED_TEST()
5088 Local<Value> value = Script::Compile(v8_str("x"))->Run(); in THREADED_TEST()
5090 value = Script::Compile(v8_str("f()"))->Run(); in THREADED_TEST()
5148 proto->Set(v8_str("f"), in THREADED_TEST()
5152 proto->Set(v8_str("x"), v8_num(12)); in THREADED_TEST()
5154 instance->SetAccessor(v8_str("y"), ShadowYGetter, ShadowYSetter); in THREADED_TEST()
5157 context->Global()->Set(v8_str("__proto__"), o); in THREADED_TEST()
5160 Script::Compile(v8_str("propertyIsEnumerable(0)"))->Run(); in THREADED_TEST()
5164 value = Script::Compile(v8_str("x"))->Run(); in THREADED_TEST()
5167 value = Script::Compile(v8_str("f()"))->Run(); in THREADED_TEST()
5170 Script::Compile(v8_str("y = 42"))->Run(); in THREADED_TEST()
5172 value = Script::Compile(v8_str("y"))->Run(); in THREADED_TEST()
5183 t0->InstanceTemplate()->Set(v8_str("x"), v8_num(0)); in THREADED_TEST()
5186 t1->InstanceTemplate()->Set(v8_str("y"), v8_num(1)); in THREADED_TEST()
5189 t2->InstanceTemplate()->Set(v8_str("z"), v8_num(2)); in THREADED_TEST()
5191 t3->InstanceTemplate()->Set(v8_str("u"), v8_num(3)); in THREADED_TEST()
5199 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
5200 o0->Set(v8_str("__proto__"), o1); in THREADED_TEST()
5201 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
5202 CHECK_EQ(1, o0->Get(v8_str("y"))->Int32Value()); in THREADED_TEST()
5203 o0->Set(v8_str("__proto__"), o2); in THREADED_TEST()
5204 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
5205 CHECK_EQ(1, o0->Get(v8_str("y"))->Int32Value()); in THREADED_TEST()
5206 CHECK_EQ(2, o0->Get(v8_str("z"))->Int32Value()); in THREADED_TEST()
5207 o0->Set(v8_str("__proto__"), o3); in THREADED_TEST()
5208 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
5209 CHECK_EQ(1, o0->Get(v8_str("y"))->Int32Value()); in THREADED_TEST()
5210 CHECK_EQ(2, o0->Get(v8_str("z"))->Int32Value()); in THREADED_TEST()
5211 CHECK_EQ(3, o0->Get(v8_str("u"))->Int32Value()); in THREADED_TEST()
5216 Local<Value> proto = o0->Get(v8_str("__proto__")); in THREADED_TEST()
5218 CHECK(Local<v8::Object>::Cast(proto)->Get(v8_str("z"))->IsUndefined()); in THREADED_TEST()
5227 t0->InstanceTemplate()->Set(v8_str("x"), v8_num(0)); in THREADED_TEST()
5230 t1->InstanceTemplate()->Set(v8_str("y"), v8_num(1)); in THREADED_TEST()
5233 t2->InstanceTemplate()->Set(v8_str("z"), v8_num(2)); in THREADED_TEST()
5235 t3->InstanceTemplate()->Set(v8_str("u"), v8_num(3)); in THREADED_TEST()
5243 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
5245 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
5246 CHECK_EQ(1, o0->Get(v8_str("y"))->Int32Value()); in THREADED_TEST()
5248 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
5249 CHECK_EQ(1, o0->Get(v8_str("y"))->Int32Value()); in THREADED_TEST()
5250 CHECK_EQ(2, o0->Get(v8_str("z"))->Int32Value()); in THREADED_TEST()
5252 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
5253 CHECK_EQ(1, o0->Get(v8_str("y"))->Int32Value()); in THREADED_TEST()
5254 CHECK_EQ(2, o0->Get(v8_str("z"))->Int32Value()); in THREADED_TEST()
5255 CHECK_EQ(3, o0->Get(v8_str("u"))->Int32Value()); in THREADED_TEST()
5260 Local<Value> proto = o0->Get(v8_str("__proto__")); in THREADED_TEST()
5310 Local<v8::Object>::Cast(context->Global()->Get(v8_str("x"))); in THREADED_TEST()
5312 x->Set(v8_str("set"), v8::Integer::New(8)); in THREADED_TEST()
5313 x->Get(v8_str("get")); in THREADED_TEST()
5314 x->Set(v8_str("set"), v8::Integer::New(8)); in THREADED_TEST()
5315 x->Get(v8_str("get")); in THREADED_TEST()
5316 x->Set(v8_str("set"), v8::Integer::New(8)); in THREADED_TEST()
5317 x->Get(v8_str("get")); in THREADED_TEST()
5318 x->Set(v8_str("set"), v8::Integer::New(8)); in THREADED_TEST()
5319 x->Get(v8_str("get")); in THREADED_TEST()
5327 templ->SetClassName(v8_str("Fun")); in THREADED_TEST()
5329 context->Global()->Set(v8_str("Fun"), cons); in THREADED_TEST()
5340 templ->SetClassName(v8_str("Fun")); in THREADED_TEST()
5342 context->Global()->Set(v8_str("Fun"), cons); in THREADED_TEST()
5367 Script::Compile(v8_str("function f(x) { " in THREADED_TEST()
5378 CHECK_EQ(2, current->Global()->Get(v8_str("result1"))->Int32Value()); in THREADED_TEST()
5379 CHECK_EQ(0, current->Global()->Get(v8_str("result2"))->Int32Value()); in THREADED_TEST()
5380 CHECK_EQ(1, current->Global()->Get(v8_str("result3"))->Int32Value()); in THREADED_TEST()
5384 Script::Compile(v8_str("function f(x) { " in THREADED_TEST()
5400 Local<String> token = v8_str("<security token>"); in THREADED_TEST()
5405 current->Global()->Set(v8_str("other"), other->Global()); in THREADED_TEST()
5409 Script::Compile(v8_str("other.eval('var foo = 1234')")); in THREADED_TEST()
5411 Local<Value> foo = other->Global()->Get(v8_str("foo")); in THREADED_TEST()
5413 CHECK(!current->Global()->Has(v8_str("foo"))); in THREADED_TEST()
5418 Script::Compile(v8_str("other.eval('na = 1234')")); in THREADED_TEST()
5420 CHECK_EQ(1234, other->Global()->Get(v8_str("na"))->Int32Value()); in THREADED_TEST()
5421 CHECK(!current->Global()->Has(v8_str("na"))); in THREADED_TEST()
5427 Script::Compile(v8_str("var bar = 42; other.eval('bar');")); in THREADED_TEST()
5435 Script::Compile(v8_str("(function() { " in THREADED_TEST()
5445 other->Global()->Set(v8_str("bis"), v8_num(1234)); in THREADED_TEST()
5446 script = Script::Compile(v8_str("other.eval('bis')")); in THREADED_TEST()
5452 other->Global()->Set(v8_str("t"), other->Global()); in THREADED_TEST()
5453 script = Script::Compile(v8_str("other.eval('this == t')")); in THREADED_TEST()
5461 Script::Compile(v8_str("with({x:2}){other.eval('x')}")); in THREADED_TEST()
5469 Script::Compile(v8_str("other.y = 1; eval.call(other, 'y')")); in THREADED_TEST()
5498 context1->Global()->Set(v8_str("fun"), fun); in THREADED_TEST()
5518 Local<String> token = v8_str("<security token>"); in THREADED_TEST()
5523 current->Global()->Set(v8_str("other"), other->Global()); in THREADED_TEST()
5527 Script::Compile(v8_str("other.eval('new Date(42)')")); in THREADED_TEST()
5556 context->Global()->Set(v8_str("obj"), instance); in THREADED_TEST()
5656 context->Global()->Set(v8_str("constructor"), function); in THREADED_TEST()
5688 context->Global()->Set(v8_str("constructor"), function); in THREADED_TEST()
5721 context->Global()->Set(v8_str("o"), templ->NewInstance()); in CheckInterceptorLoadIC()
5730 CHECK(v8_str("x")->Equals(name)); in InterceptorLoadICGetter()
5753 return v8_str("x")->Equals(name) in InterceptorLoadXICGetter()
5900 templ->SetAccessor(v8_str("y"), Return239); in THREADED_TEST()
5902 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
5917 templ_p->SetAccessor(v8_str("y"), Return239); in THREADED_TEST()
5920 context->Global()->Set(v8_str("o"), templ_o->NewInstance()); in THREADED_TEST()
5921 context->Global()->Set(v8_str("p"), templ_p->NewInstance()); in THREADED_TEST()
5937 templ->SetAccessor(v8_str("y"), Return239); in THREADED_TEST()
5940 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
5966 templ_p->SetAccessor(v8_str("y"), Return239); in THREADED_TEST()
5969 context->Global()->Set(v8_str("o"), templ_o->NewInstance()); in THREADED_TEST()
5970 context->Global()->Set(v8_str("p"), templ_p->NewInstance()); in THREADED_TEST()
5994 templ_p->SetAccessor(v8_str("y"), Return239, SetOnThis); in THREADED_TEST()
5997 context->Global()->Set(v8_str("o"), templ_o->NewInstance()); in THREADED_TEST()
5998 context->Global()->Set(v8_str("p"), templ_p->NewInstance()); in THREADED_TEST()
6026 templ_p->SetAccessor(v8_str("y"), Return239, SetOnThis); in THREADED_TEST()
6029 context->Global()->Set(v8_str("o"), templ_o->NewInstance()); in THREADED_TEST()
6030 context->Global()->Set(v8_str("p"), templ_p->NewInstance()); in THREADED_TEST()
6052 CHECK(v8_str("x")->Equals(name)); in InterceptorLoadICGetter0()
6066 CHECK(v8_str("x")->Equals(key)); in InterceptorStoreICSetter()
6079 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
6092 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
6111 CHECK(v8_str("x")->Equals(name)); in InterceptorCallICGetter()
6122 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
6141 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
6156 CHECK(v8_str("x")->Equals(name)); in InterceptorCallICGetter4()
6169 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
6189 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
6213 if (v8_str("x")->Equals(name)) in InterceptorCallICGetter5()
6227 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
6248 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
6270 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
6300 context->Global()->Set(v8_str("o"), templ->NewInstance()); in THREADED_TEST()
6326 context->Global()->Set(v8_str("o"), templ_o->NewInstance()); in THREADED_TEST()
6362 CHECK(args.Data()->Equals(v8_str("method_data"))); in FastApiCallback_TrivialSignature()
6370 CHECK(args.Data()->Equals(v8_str("method_data"))); in FastApiCallback_SimpleSignature()
6373 CHECK(args.Holder()->HasRealNamedProperty(v8_str("foo"))); in FastApiCallback_SimpleSignature()
6393 v8_str("method_data"), in THREADED_TEST()
6396 proto_templ->Set(v8_str("method"), method_templ); in THREADED_TEST()
6404 context->Global()->Set(v8_str("o"), fun->NewInstance()); in THREADED_TEST()
6410 CHECK_EQ(42, context->Global()->Get(v8_str("result"))->Int32Value()); in THREADED_TEST()
6420 v8_str("method_data"), in THREADED_TEST()
6423 proto_templ->Set(v8_str("method"), method_templ); in THREADED_TEST()
6431 context->Global()->Set(v8_str("o"), fun->NewInstance()); in THREADED_TEST()
6440 CHECK_EQ(42, context->Global()->Get(v8_str("result"))->Int32Value()); in THREADED_TEST()
6450 v8_str("method_data"), in THREADED_TEST()
6453 proto_templ->Set(v8_str("method"), method_templ); in THREADED_TEST()
6461 context->Global()->Set(v8_str("o"), fun->NewInstance()); in THREADED_TEST()
6475 CHECK_EQ(40, context->Global()->Get(v8_str("result"))->Int32Value()); in THREADED_TEST()
6476 CHECK_EQ(42, context->Global()->Get(v8_str("saved_result"))->Int32Value()); in THREADED_TEST()
6486 v8_str("method_data"), in THREADED_TEST()
6489 proto_templ->Set(v8_str("method"), method_templ); in THREADED_TEST()
6497 context->Global()->Set(v8_str("o"), fun->NewInstance()); in THREADED_TEST()
6511 CHECK_EQ(40, context->Global()->Get(v8_str("result"))->Int32Value()); in THREADED_TEST()
6512 CHECK_EQ(42, context->Global()->Get(v8_str("saved_result"))->Int32Value()); in THREADED_TEST()
6522 v8_str("method_data"), in THREADED_TEST()
6525 proto_templ->Set(v8_str("method"), method_templ); in THREADED_TEST()
6533 context->Global()->Set(v8_str("o"), fun->NewInstance()); in THREADED_TEST()
6549 CHECK_EQ(v8_str("TypeError: Illegal invocation"), in THREADED_TEST()
6551 CHECK_EQ(42, context->Global()->Get(v8_str("saved_result"))->Int32Value()); in THREADED_TEST()
6560 v8_str("method_data"), in THREADED_TEST()
6563 proto_templ->Set(v8_str("method"), method_templ); in THREADED_TEST()
6568 context->Global()->Set(v8_str("o"), fun->NewInstance()); in THREADED_TEST()
6575 CHECK_EQ(42, context->Global()->Get(v8_str("result"))->Int32Value()); in THREADED_TEST()
6583 v8_str("method_data"), in THREADED_TEST()
6586 proto_templ->Set(v8_str("method"), method_templ); in THREADED_TEST()
6591 context->Global()->Set(v8_str("o"), fun->NewInstance()); in THREADED_TEST()
6601 CHECK_EQ(42, context->Global()->Get(v8_str("result"))->Int32Value()); in THREADED_TEST()
6609 v8_str("method_data"), in THREADED_TEST()
6612 proto_templ->Set(v8_str("method"), method_templ); in THREADED_TEST()
6617 context->Global()->Set(v8_str("o"), fun->NewInstance()); in THREADED_TEST()
6631 CHECK_EQ(40, context->Global()->Get(v8_str("result"))->Int32Value()); in THREADED_TEST()
6632 CHECK_EQ(42, context->Global()->Get(v8_str("saved_result"))->Int32Value()); in THREADED_TEST()
6641 if (v8_str("x")->Equals(name) && interceptor_call_count++ < 20) { in InterceptorICRefErrorGetter()
6685 if (v8_str("x")->Equals(name) && ++interceptor_ic_exception_get_count < 20) { in InterceptorICExceptionGetter()
6766 context->Global()->Set(v8_str("obj"), obj); in THREADED_TEST()
6781 context->Global()->Set(v8_str("obj"), obj); in THREADED_TEST()
6810 parent_instance_templ->SetAccessor(v8_str("f"), ParentGetter); in THREADED_TEST()
6819 child_instance_templ->SetAccessor(v8_str("f"), ChildGetter); in THREADED_TEST()
6821 child_instance_templ->SetAccessor(v8_str("g"), ParentGetter); in THREADED_TEST()
6822 child_instance_templ->SetAccessor(v8_str("g"), ChildGetter); in THREADED_TEST()
6827 child_proto_templ->SetAccessor(v8_str("h"), ParentGetter, 0, in THREADED_TEST()
6833 child_instance_templ->SetAccessor(v8_str("i"), ChildGetter, 0, in THREADED_TEST()
6842 context->Global()->Set(v8_str("o"), instance); in THREADED_TEST()
6877 context->Global()->Set(v8_str("f"), templ->GetFunction()); in THREADED_TEST()
6888 templ->SetClassName(v8_str("MyClass")); in THREADED_TEST()
6892 Local<String> customized_tostring = v8_str("customized toString"); in THREADED_TEST()
6906 CHECK(value->IsString() && value->Equals(v8_str("[object MyClass]"))); in THREADED_TEST()
6910 CHECK(value->IsString() && value->Equals(v8_str("[object global]"))); in THREADED_TEST()
6915 CHECK(value->IsString() && value->Equals(v8_str("[object Object]"))); in THREADED_TEST()
7100 return v8_str("foo"); in ThrowInJSNoCatch()
7114 env->Global()->Set(v8_str("throw_in_js"), fun); in TEST()
7136 env->Global()->Set(v8_str("throw_in_js"), fun); in TEST()
7173 env->Global()->Set(v8_str("unlock_for_a_moment"), fun); in THREADED_TEST()
7187 env->Global()->Set(v8_str("unlock_for_a_moment"), fun); in THREADED_TEST()
7520 t->Set(v8_str("asdf"), v8::FunctionTemplate::New(FunctionNameCallback)); in THREADED_TEST()
7521 context->Global()->Set(v8_str("obj"), t->NewInstance()); in THREADED_TEST()
7600 templ->Set(v8_str("x"), v8::True()); in THREADED_TEST()
7602 context->Global()->Set(v8_str("obj"), instance); in THREADED_TEST()
7631 templ->Set(v8_str("a"), v8_str("a")); in THREADED_TEST()
7643 templ->Set(v8_str(buf), v8::Number::New(k)); in THREADED_TEST()
7649 context->Global()->Set(v8_str("obj_1"), instance_1); in THREADED_TEST()
7655 context->Global()->Set(v8_str("obj_2"), instance_2); in THREADED_TEST()
7694 context->Global()->Set(v8_str("a"), v8_num(1)); in THREADED_TEST()
7701 Local<Function>::Cast(context->Global()->Get(v8_str("f1"))); in THREADED_TEST()
7703 Local<Function>::Cast(context->Global()->Get(v8_str("f2"))); in THREADED_TEST()
7705 Local<Function>::Cast(context->Global()->Get(v8_str("g1"))); in THREADED_TEST()
7707 Local<Function>::Cast(context->Global()->Get(v8_str("g2"))); in THREADED_TEST()
7709 Local<Function>::Cast(context->Global()->Get(v8_str("h"))); in THREADED_TEST()
7792 context->Global()->Set(v8_str("tmp"), v8::True()); in THREADED_TEST()
7793 context->Global()->Delete(v8_str("tmp")); in THREADED_TEST()
7799 context->Global()->Set(v8_str("tmp"), v8::True()); in THREADED_TEST()
7800 context->Global()->Delete(v8_str("tmp")); in THREADED_TEST()
7814 Local<String> token = v8_str("<security token>"); in THREADED_TEST()
7827 context1->Global()->Set(v8_str("other"), context0->Global()); in THREADED_TEST()
8084 obj->Set(v8_str("gamma"), v8_str("cloneme")); in TEST()
8086 CHECK_EQ(v8_str("hello"), obj->Get(v8_str("alpha"))); in TEST()
8087 CHECK_EQ(v8::Integer::New(123), obj->Get(v8_str("beta"))); in TEST()
8088 CHECK_EQ(v8_str("cloneme"), obj->Get(v8_str("gamma"))); in TEST()
8092 CHECK_EQ(v8_str("hello"), clone->Get(v8_str("alpha"))); in TEST()
8093 CHECK_EQ(v8::Integer::New(123), clone->Get(v8_str("beta"))); in TEST()
8094 CHECK_EQ(v8_str("cloneme"), clone->Get(v8_str("gamma"))); in TEST()
8097 clone->Set(v8_str("beta"), v8::Integer::New(456)); in TEST()
8098 CHECK_EQ(v8::Integer::New(123), obj->Get(v8_str("beta"))); in TEST()
8099 CHECK_EQ(v8::Integer::New(456), clone->Get(v8_str("beta"))); in TEST()
8171 env->Global()->Set(v8_str("lhs"), lhs); in THREADED_TEST()
8172 env->Global()->Set(v8_str("rhs"), rhs); in THREADED_TEST()
8196 env->Global()->Get(v8_str("cons"))); in THREADED_TEST()
8198 env->Global()->Get(v8_str("slice"))); in THREADED_TEST()
8200 env->Global()->Get(v8_str("slice_on_cons"))); in THREADED_TEST()
8369 v8::Handle<v8::Object>::Cast(global->Get(v8_str("__proto__"))); in TEST()
8370 global_proto->Set(v8_str("x"), v8::Integer::New(0), v8::ReadOnly); in TEST()
8371 global_proto->Set(v8_str("y"), v8::Integer::New(0), v8::ReadOnly); in TEST()
8581 CHECK(context->Global()->ForceDelete(v8_str("foo"))); in THREADED_TEST()
8614 Local<String> token = v8_str("<security token>"); in THREADED_TEST()
8623 calling_context0->Global()->Set(v8_str("callback"), in THREADED_TEST()
8630 calling_context1->Global()->Set(v8_str("context0"), in THREADED_TEST()
8638 calling_context2->Global()->Set(v8_str("context1"), in THREADED_TEST()
8729 obj->Set(v8_str("field"), v8::Int32::New(1503)); in THREADED_TEST()
8730 context->Global()->Set(v8_str("pixels"), obj); in THREADED_TEST()
8872 CHECK_EQ(77, v8::Object::Cast(*result)->Get(v8_str("0"))->Int32Value()); in THREADED_TEST()
8878 CHECK_EQ(77, v8::Object::Cast(*result)->Get(v8_str("0"))->Int32Value()); in THREADED_TEST()
8879 CHECK_EQ(23, v8::Object::Cast(*result)->Get(v8_str("1"))->Int32Value()); in THREADED_TEST()
8945 obj->Set(v8_str("field"), v8::Int32::New(1503)); in ExternalArrayTestHelper()
8946 context->Global()->Set(v8_str("ext_array"), obj); in ExternalArrayTestHelper()
9141 CHECK_EQ(77, v8::Object::Cast(*result)->Get(v8_str("0"))->Int32Value()); in ExternalArrayTestHelper()
9147 CHECK_EQ(77, v8::Object::Cast(*result)->Get(v8_str("0"))->Int32Value()); in ExternalArrayTestHelper()
9148 CHECK_EQ(23, v8::Object::Cast(*result)->Get(v8_str("1"))->Int32Value()); in ExternalArrayTestHelper()
9173 context->Global()->Set(v8_str("large_array"), large_obj); in ExternalArrayTestHelper()
9382 env->Global()->Set(v8_str("get_stack_limit"), fun); in TEST()
9407 env->Global()->Set(v8_str("get_stack_limit"), fun); in TEST()
9720 info.This()->Set(v8_str("y"), v8_num(23)); in SetterWhichSetsYOnThisTo23()
9727 templ->SetAccessor(v8_str("x"), in THREADED_TEST()
9731 context->Global()->Set(v8_str("P"), templ->NewInstance()); in THREADED_TEST()
9743 script = v8::Script::Compile(v8_str("new C1();")); in THREADED_TEST()
9746 CHECK_EQ(42, c1->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
9747 CHECK_EQ(23, c1->Get(v8_str("y"))->Int32Value()); in THREADED_TEST()
9750 script = v8::Script::Compile(v8_str("new C2();")); in THREADED_TEST()
9753 CHECK_EQ(42, c2->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
9754 CHECK_EQ(23, c2->Get(v8_str("y"))->Int32Value()); in THREADED_TEST()
9767 if (name->Equals(v8_str("x"))) { in NamedPropertySetterWhichSetsYOnThisTo23()
9768 info.This()->Set(v8_str("y"), v8_num(23)); in NamedPropertySetterWhichSetsYOnThisTo23()
9780 context->Global()->Set(v8_str("P"), templ->NewInstance()); in THREADED_TEST()
9792 script = v8::Script::Compile(v8_str("new C1();")); in THREADED_TEST()
9795 CHECK_EQ(23, c1->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
9796 CHECK_EQ(42, c1->Get(v8_str("y"))->Int32Value()); in THREADED_TEST()
9799 script = v8::Script::Compile(v8_str("new C2();")); in THREADED_TEST()
9802 CHECK_EQ(23, c2->Get(v8_str("x"))->Int32Value()); in THREADED_TEST()
9803 CHECK_EQ(42, c2->Get(v8_str("y"))->Int32Value()); in THREADED_TEST()