Home | History | Annotate | Download | only in cctest

Lines Matching refs:Get

256   Local<Value> foo_before = obj->Get(v8_str("foo"));
260 Local<Value> foo_after = obj->Get(v8_str("foo"));
628 Local<Value> pi = global->Get(v8_str("pi"));
1165 // Indexed and named get.
1239 int depth = args.This()->Get(v8_str("depth"))->Int32Value();
1249 int depth = args.This()->Get(v8_str("depth"))->Int32Value();
1256 args.This()->Get(v8_str("callFunctionRecursively"));
1458 CHECK(obj->Get(empty)->IsUndefined());
1462 CHECK_EQ(2003, obj->Get(empty)->Int32Value());
1470 CHECK_EQ(2008, obj->Get(prop_name)->Int32Value());
1612 CHECK_EQ(92, context->Global()->Get(v8::Integer::New(12))->Int32Value());
1613 CHECK_EQ(92, context->Global()->Get(v8_str("12"))->Int32Value());
1614 CHECK_EQ(92, context->Global()->Get(v8_num(12))->Int32Value());
1615 CHECK_EQ(32, context->Global()->Get(v8::Integer::New(16))->Int32Value());
1616 CHECK_EQ(32, context->Global()->Get(v8_str("16"))->Int32Value());
1617 CHECK_EQ(32, context->Global()->Get(v8_num(16))->Int32Value());
1618 CHECK_EQ(56, context->Global()->Get(v8::Integer::New(13))->Int32Value());
1619 CHECK_EQ(56, context->Global()->Get(v8_str("13"))->Int32Value());
1620 CHECK_EQ(56, context->Global()->Get(v8_num(13))->Int32Value());
1630 CHECK_EQ(7, context->Global()->Get(prop)->Int32Value());
1632 CHECK_EQ(7, context->Global()->Get(prop)->Int32Value());
1634 CHECK_EQ(7, context->Global()->Get(prop)->Int32Value());
1638 CHECK_EQ(13, context->Global()->Get(prop)->Int32Value());
1640 CHECK_EQ(13, context->Global()->Get(prop)->Int32Value());
1649 CHECK(array->Get(v8::Integer::New(0))->IsUndefined());
1651 CHECK(array->Get(v8::Integer::New(100))->IsUndefined());
1658 CHECK_EQ(7, array->Get(v8::Integer::New(2))->Int32Value());
1662 CHECK_EQ(1, arr->Get(v8::Integer::New(0))->Int32Value());
1663 CHECK_EQ(2, arr->Get(v8::Integer::New(1))->Int32Value());
1664 CHECK_EQ(3, arr->Get(v8::Integer::New(2))->Int32Value());
1693 CHECK_EQ(11, a1->Get(v8::Integer::New(0))->Int32Value());
1699 CHECK_EQ(12, a2->Get(v8::Integer::New(0))->Int32Value());
1700 CHECK_EQ(13, a2->Get(v8::Integer::New(1))->Int32Value());
1706 CHECK_EQ(14, a3->Get(v8::Integer::New(0))->Int32Value());
1707 CHECK_EQ(15, a3->Get(v8::Integer::New(1))->Int32Value());
1708 CHECK_EQ(16, a3->Get(v8::Integer::New(2))->Int32Value());
1714 CHECK_EQ(17, a4->Get(v8::Integer::New(0))->Int32Value());
1715 CHECK_EQ(18, a4->Get(v8::Integer::New(1))->Int32Value());
1716 CHECK_EQ(19, a4->Get(v8::Integer::New(2))->Int32Value());
1717 CHECK_EQ(20, a4->Get(v8::Integer::New(3))->Int32Value());
1733 Local<Function>::Cast(context->Global()->Get(v8_str("Foo")));
1742 CHECK_EQ(1.1, a1->Get(v8::Integer::New(0))->NumberValue());
1748 CHECK_EQ(2.2, a2->Get(v8::Integer::New(0))->NumberValue());
1749 CHECK_EQ(3.3, a2->Get(v8::Integer::New(1))->NumberValue());
1756 CHECK_EQ(4.4, a3->Get(v8::Integer::New(0))->NumberValue());
1757 CHECK_EQ(5.5, a3->Get(v8::Integer::New(1))->NumberValue());
1758 CHECK_EQ(6.6, a3->Get(v8::Integer::New(2))->NumberValue());
1766 CHECK_EQ(7.7, a4->Get(v8::Integer::New(0))->NumberValue());
1767 CHECK_EQ(8.8, a4->Get(v8::Integer::New(1))->NumberValue());
1768 CHECK_EQ(9.9, a4->Get(v8::Integer::New(2))->NumberValue());
1769 CHECK_EQ(10.11, a4->Get(v8::Integer::New(3))->NumberValue());
1887 Local<Function>::Cast(context->Global()->Get(v8_str("Foo")));
1896 CHECK_EQ(1.1, a1->Get(v8::Integer::New(0))->NumberValue());
1902 CHECK_EQ(2.2, a2->Get(v8::Integer::New(0))->NumberValue());
1903 CHECK_EQ(3.3, a2->Get(v8::Integer::New(1))->NumberValue());
1910 CHECK_EQ(4.4, a3->Get(v8::Integer::New(0))->NumberValue());
1911 CHECK_EQ(5.5, a3->Get(v8::Integer::New(1))->NumberValue());
1912 CHECK_EQ(6.6, a3->Get(v8::Integer::New(2))->NumberValue());
1920 CHECK_EQ(7.7, a4->Get(v8::Integer::New(0))->NumberValue());
1921 CHECK_EQ(8.8, a4->Get(v8::Integer::New(1))->NumberValue());
1922 CHECK_EQ(9.9, a4->Get(v8::Integer::New(2))->NumberValue());
1923 CHECK_EQ(10.11, a4->Get(v8::Integer::New(3))->NumberValue());
1942 Local<Value> obj = env->Global()->Get(v8_str("obj"));
2018 Local<Value> thrown = context->Global()->Get(v8_str("thrown"));
2061 message->Get();
2126 Local<Value> fun = global->Get(v8_str("JSThrowCountDown"));
2227 Local<Function>::Cast(context->Global()->Get(v8_str("JSThrowCountDown")));
2281 CHECK(result->Get(v8::Integer::New(0))->IsString());
2282 CHECK(result->Get(v8::Integer::New(1))->IsNumber());
2283 CHECK_EQ(1, result->Get(v8::Integer::New(1))->Int32Value());
2284 CHECK(result->Get(v8::Integer::New(2))->IsNumber());
2285 CHECK_EQ(0, result->Get(v8::Integer::New(2))->Int32Value());
2286 CHECK(result->Get(v8::Integer::New(3))->IsNull());
2287 CHECK(result->Get(v8::Integer::New(4))->IsUndefined());
2395 // Redefine get - but still configurable
2397 = Script::Compile(v8_str("var desc = { get: function(){return 42; },"
2410 = Script::Compile(v8_str("var desc = { get: function(){return 43; },"
2443 Script::Compile(v8_str("var desc = {get: function(){return 42; },"
2456 Script::Compile(v8_str("var desc = {get: function(){return 43; },"
2533 // Set x on the prototype object and do not handle the get request.
2840 CHECK_EQ(1234, global0->Get(v8_str("custom"))->Int32Value());
2848 CHECK_EQ(1234, global0->Get(v8_str("custom"))->Int32Value());
2849 CHECK_EQ(1234, global1->Get(v8_str("custom"))->Int32Value());
2856 CHECK_EQ(0, global1->Get(v8_str("custom"))->Int32Value());
2857 CHECK_EQ(0, global2->Get(v8_str("custom"))->Int32Value());
2871 v8::Handle<v8::Object>::Cast(global0->Get(v8_str("Object")));
2873 v8::Handle<v8::Object>::Cast(object0->Get(v8_str("toString")));
2875 v8::Handle<v8::Object>::Cast(tostring0->Get(v8_str("__proto__")));
2882 v8::Handle<v8::Object>::Cast(global1->Get(v8_str("Object")));
2884 v8::Handle<v8::Object>::Cast(object1->Get(v8_str("toString")));
2886 v8::Handle<v8::Object>::Cast(tostring1->Get(v8_str("__proto__")));
3168 CHECK_EQ(String::New(expected), context->Global()->Get(v8_str("loaded")));
3197 CHECK_EQ(v8_str("undefinedACBDE"), context->Global()->Get(v8_str("loaded")));
3508 args_fun = v8::Handle<Function>::Cast(context->Global()->Get(v8_str("f")));
3632 // Check that we get all the property names returned including the
3640 CHECK_EQ(v8_str("5"), result->Get(v8::Integer::New(0)));
3641 CHECK_EQ(v8_str("10"), result->Get(v8::Integer::New(1)));
3642 CHECK_EQ(v8_str("140000"), result->Get(v8::Integer::New(2)));
3643 CHECK_EQ(v8_str("4294967295"), result->Get(v8::Integer::New(3)));
3646 CHECK_EQ(v8_str("0"), result->Get(v8::Integer::New(4)));
3647 CHECK_EQ(v8_str("1"), result->Get(v8::Integer::New(5)));
3649 CHECK_EQ(v8_str("a"), result->Get(v8::Integer::New(6)));
3650 CHECK_EQ(v8_str("b"), result->Get(v8::Integer::New(7)));
3651 CHECK_EQ(v8_str("c"), result->Get(v8::Integer::New(8)));
3652 CHECK_EQ(v8_str("4294967296"), result->Get(v8::Integer::New(9)));
3653 CHECK_EQ(v8_str("d"), result->Get(v8::Integer::New(10)));
3654 CHECK_EQ(v8_str("e"), result->Get(v8::Integer::New(11)));
3655 CHECK_EQ(v8_str("30000000000"), result->Get(v8::Integer::New(12)));
3656 CHECK_EQ(v8_str("f"), result->Get(v8::Integer::New(13)));
3658 CHECK_EQ(v8_str("foo"), result->Get(v8::Integer::New(14)));
3659 CHECK_EQ(v8_str("bar"), result->Get(v8::Integer::New(15)));
3660 CHECK_EQ(v8_str("baz"), result->Get(v8::Integer::New(16)));
3672 CHECK_EQ(info.Holder(), global->Get(v8_str("o1")));
3674 CHECK_EQ(info.This(), global->Get(v8_str("o1")));
3676 CHECK_EQ(info.This(), global->Get(v8_str("o2")));
3678 CHECK_EQ(info.This(), global->Get(v8_str("o3")));
3680 CHECK_EQ(info.This(), global->Get(v8_str("o4")));
3707 CHECK_EQ(info.Holder(), global->Get(v8_str("o1")));
3709 CHECK_EQ(info.This(), global->Get(v8_str("o1")));
3711 CHECK_EQ(info.This(), global->Get(v8_str("o2")));
3713 CHECK_EQ(info.This(), global->Get(v8_str("o3")));
3715 CHECK_EQ(info.This(), global->Get(v8_str("o4")));
3753 CHECK_NE(obj, context->Global()->Get(v8_str("o")));
3847 CHECK(v8::Handle<v8::Object>::Cast(range_error)->Get(message)->Equals(foo));
3851 v8::Handle<v8::Object>::Cast(reference_error)->Get(message)->Equals(foo));
3854 CHECK(v8::Handle<v8::Object>::Cast(syntax_error)->Get(message)->Equals(foo));
3857 CHECK(v8::Handle<v8::Object>::Cast(type_error)->Get(message)->Equals(foo));
3860 CHECK(v8::Handle<v8::Object>::Cast(error)->Get(message)->Equals(foo));
3954 arg_this->Get(v8_str("trouble_callee")) :
3955 arg_this->Get(v8_str("trouble_caller"));
3987 Local<Value> trouble = global->Get(v8_str("trouble"));
3989 Local<Value> trouble_callee = global->Get(v8_str("trouble_callee"));
3991 Local<Value> trouble_caller = global->Get(v8_str("trouble_caller"));
4023 Local<Value> trouble = global->Get(v8_str("trouble"));
4075 v8::Handle<Value> foo0 = global0->Get(v8_str("foo"));
4077 v8::Handle<Value> z0 = global0->Get(v8_str("0"));
4094 v8::Handle<Value> foo1 = global0->Get(v8_str("foo"));
4097 v8::Handle<Value> z1 = global0->Get(v8_str("0"));
4109 v8::Handle<Value> foo2 = global0->Get(v8_str("foo"));
4111 v8::Handle<Value> z2 = global0->Get(v8_str("0"));
4136 Local<Value> spy = env1->Global()->Get(v8_str("spy"));
4141 Local<Value> spy2 = env1->Global()->Get(v8_str("spy2"));
4173 // Change context to be able to get to the Object function in the
4177 other_object = other->Global()->Get(v8_str("Object"));
4184 // Make sure the security check fails here and we get an undefined
4261 Local<Value> v = env1->Global()->Get(v8_str("prop"));
4359 global2->Get(v8_str("getProp")));
4374 CHECK(global3->Get(v8_str("prop"))->IsUndefined());
4375 CHECK(global3->Get(v8_str("getProp"))->IsUndefined());
4382 Local<Value> get_prop = global1->Get(v8_str("getProp"));
4392 Local<Value> r = global3->Get(v8_str("prop2"));
4641 // Attempt to get the property names of the other global object and
5199 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value());
5201 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value());
5202 CHECK_EQ(1, o0->Get(v8_str("y"))->Int32Value());
5204 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value());
5205 CHECK_EQ(1, o0->Get(v8_str("y"))->Int32Value());
5206 CHECK_EQ(2, o0->Get(v8_str("z"))->Int32Value());
5208 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value());
5209 CHECK_EQ(1, o0->Get(v8_str("y"))->Int32Value());
5210 CHECK_EQ(2, o0->Get(v8_str("z"))->Int32Value());
5211 CHECK_EQ(3, o0->Get(v8_str("u"))->Int32Value());
5213 // Getting the prototype of o0 should get the first visible one
5216 Local<Value> proto = o0->Get(v8_str("__proto__"));
5218 CHECK(Local<v8::Object>::Cast(proto)->Get(v8_str("z"))->IsUndefined());
5243 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value());
5245 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value());
5246 CHECK_EQ(1, o0->Get(v8_str("y"))->Int32Value());
5248 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value());
5249 CHECK_EQ(1, o0->Get(v8_str("y"))->Int32Value());
5250 CHECK_EQ(2, o0->Get(v8_str("z"))->Int32Value());
5252 CHECK_EQ(0, o0->Get(v8_str("x"))->Int32Value());
5253 CHECK_EQ(1, o0->Get(v8_str("y"))->Int32Value());
5254 CHECK_EQ(2, o0->Get(v8_str("z"))->Int32Value());
5255 CHECK_EQ(3, o0->Get(v8_str("u"))->Int32Value());
5257 // Getting the prototype of o0 should get the first visible one
5260 Local<Value> proto = o0->Get(v8_str("__proto__"));
5308 "x.__defineGetter__('get', Throw);");
5310 Local<v8::Object>::Cast(context->Global()->Get(v8_str("x")));
5313 x->Get(v8_str("get"));
5315 x->Get(v8_str("get"));
5317 x->Get(v8_str("get"));
5319 x->Get(v8_str("get"));
5378 CHECK_EQ(2, current->Global()->Get(v8_str("result1"))->Int32Value());
5379 CHECK_EQ(0, current->Global()->Get(v8_str("result2"))->Int32Value());
5380 CHECK_EQ(1, current->Global()->Get(v8_str("result3"))->Int32Value());
5411 Local<Value> foo = other->Global()->Get(v8_str("foo"));
5420 CHECK_EQ(1234, other->Global()->Get(v8_str("na"))->Int32Value());
5689 // Let's first make some stuff so we can be sure to get a good GC.
5748 // (those cases are special cased to get better performance).
6410 CHECK_EQ(42, context->Global()->Get(v8_str("result"))->Int32Value());
6440 CHECK_EQ(42, context->Global()->Get(v8_str("result"))->Int32Value());
6475 CHECK_EQ(40, context->Global()->Get(v8_str("result"))->Int32Value());
6476 CHECK_EQ(42, context->Global()->Get(v8_str("saved_result"))->Int32Value());
6511 CHECK_EQ(40, context->Global()->Get(v8_str("result"))->Int32Value());
6512 CHECK_EQ(42, context->Global()->Get(v8_str("saved_result"))->Int32Value());
6551 CHECK_EQ(42, context->Global()->Get(v8_str("saved_result"))->Int32Value());
6575 CHECK_EQ(42, context->Global()->Get(v8_str("result"))->Int32Value());
6601 CHECK_EQ(42, context->Global()->Get(v8_str("result"))->Int32Value());
6631 CHECK_EQ(40, context->Global()->Get(v8_str("result"))->Int32Value());
6632 CHECK_EQ(42, context->Global()->Get(v8_str("saved_result"))->Int32Value());
6650 // found in which case we should get a reference error.
6691 // Do not handle get for properties other than x.
6817 // Override 'f'. The child version of 'f' should get called for child
6820 // Add 'g' twice. The 'g' added last should get called for instances.
6961 // ... get the V8 lock and start running the test.
7401 // but no accessors or interceptors did not get their internal field
7543 v8::String::Utf8Value elm(props->Get(v8::Integer::New(i)));
7565 CheckProperties(elms->Get(v8::Integer::New(0)), elmc0, elmv0);
7568 CheckProperties(elms->Get(v8::Integer::New(1)), elmc1, elmv1);
7571 CheckProperties(elms->Get(v8::Integer::New(2)), elmc2, elmv2);
7574 CheckProperties(elms->Get(v8::Integer::New(3)), elmc3, elmv3);
7701 Local<Function>::Cast(context->Global()->Get(v8_str("f1")));
7703 Local<Function>::Cast(context->Global()->Get(v8_str("f2")));
7705 Local<Function>::Cast(context->Global()->Get(v8_str("g1")));
7707 Local<Function>::Cast(context->Global()->Get(v8_str("g2")));
7709 Local<Function>::Cast(context->Global()->Get(v8_str("h")));
7711 // Get the global object.
7732 // Failing access check to property get results in undefined.
8046 // Test that nothing bad happens if we get a preemption just when we were
8086 CHECK_EQ(v8_str("hello"), obj->Get(v8_str("alpha")));
8087 CHECK_EQ(v8::Integer::New(123), obj->Get(v8_str("beta")));
8088 CHECK_EQ(v8_str("cloneme"), obj->Get(v8_str("gamma")));
8092 CHECK_EQ(v8_str("hello"), clone->Get(v8_str("alpha")));
8093 CHECK_EQ(v8::Integer::New(123), clone->Get(v8_str("beta")));
8094 CHECK_EQ(v8_str("cloneme"), clone->Get(v8_str("gamma")));
8098 CHECK_EQ(v8::Integer::New(123), obj->Get(v8_str("beta")));
8099 CHECK_EQ(v8::Integer::New(456), clone->Get(v8_str("beta")));
8196 env->Global()->Get(v8_str("cons")));
8198 env->Global()->Get(v8_str("slice")));
8200 env->Global()->Get(v8_str("slice_on_cons")));
8369 v8::Handle<v8::Object>::Cast(global->Get(v8_str("__proto__")));
8426 CHECK_EQ(4, global->Get(simple_property)->Int32Value());
8429 CHECK_EQ(4, global->Get(simple_property)->Int32Value());
8432 CHECK_EQ(6, global->Get(simple_property)->Int32Value());
8437 CHECK_EQ(3, global->Get(access_property)->Int32Value());
8441 CHECK_EQ(3, global->Get(access_property)->Int32Value());
8447 CHECK_EQ(8, global->Get(access_property)->Int32Value());
8466 CHECK_EQ(3, global->Get(some_property)->Int32Value());
8470 CHECK_EQ(3, global->Get(some_property)->Int32Value());
8477 CHECK(global->Get(some_property)->IsUndefined());
8483 CHECK_EQ(8, global->Get(some_property)->Int32Value());
8489 CHECK_EQ(3, global->Get(some_property)->Int32Value());
8493 CHECK_EQ(3, global->Get(v8::String::New("b"))->Int32Value());
8508 CHECK_EQ(4, global->Get(simple_property)->Int32Value());
8511 CHECK_EQ(4, global->Get(simple_property)->Int32Value());
8514 CHECK(global->Get
8547 // Deleting a property should get intercepted and nothing should
8552 CHECK_EQ(42, global->Get(some_property)->Int32Value());
8558 CHECK_EQ(42, global->Get(some_property)->Int32Value());
8562 CHECK(global->Get(some_property)->IsUndefined());
8583 // we don't get in trouble with reading the deleted cell value
8684 CHECK(!obj->Get(foo_string)->IsUndefined());
8719 CHECK_EQ(i % 256, pixels->get(i));
8872 CHECK_EQ(77, v8::Object::Cast(*result)->Get(v8_str("0"))->Int32Value());
8878 CHECK_EQ(77, v8::Object::Cast(*result)->Get(v8_str("0"))->Int32Value());
8879 CHECK_EQ(23, v8::Object::Cast(*result)->Get(v8_str("1"))->Int32Value());
8934 CHECK_EQ(static_cast<int64_t>(i), static_cast<int64_t>(array->get(i)));
9141 CHECK_EQ(77, v8::Object::Cast(*result)->Get(v8_str("0"))->Int32Value());
9147 CHECK_EQ(77, v8::Object::Cast(*result)->Get(v8_str("0"))->Int32Value());
9148 CHECK_EQ(23, v8::Object::Cast(*result)->Get(v8_str("1"))->Int32Value());
9681 env->Global()->Get(v8::String::New("f")));
9683 env->Global()->Get(v8::String::New("g")));
9703 env->Global()->Get(v8::String::New("f")));
9705 env->Global()->Get(v8::String::New("g")));
9746 CHECK_EQ(42, c1->Get(v8_str("x"))->Int32Value());
9747 CHECK_EQ(23, c1->Get(v8_str("y"))->Int32Value());
9753 CHECK_EQ(42, c2->Get(v8_str("x"))->Int32Value());
9754 CHECK_EQ(23, c2->Get(v8_str("y"))->Int32Value());
9795 CHECK_EQ(23, c1->Get(v8_str("x"))->Int32Value());
9796 CHECK_EQ(42, c1->Get(v8_str("y"))->Int32Value());
9802 CHECK_EQ(23, c2->Get(v8_str("x"))->Int32Value());
9803 CHECK_EQ(42, c2->Get(v8_str("y"))->Int32Value());