Home | History | Annotate | Download | only in cctest

Lines Matching full:handle

63 using ::v8::Handle;
112 v8::Handle<v8::Array> result =
123 v8::Handle<v8::Array> result =
161 v8::Handle<v8::Primitive> undef = v8::Undefined(CcTest::isolate());
175 v8::Handle<Context> env = Context::New(CcTest::isolate());
215 v8::Handle<v8::FunctionTemplate> fun = v8::FunctionTemplate::New(isolate);
216 v8::Handle<v8::Signature> sig = v8::Signature::New(isolate, fun);
217 v8::Handle<v8::FunctionTemplate> callback_sig =
220 v8::Handle<v8::FunctionTemplate> callback =
222 v8::Handle<v8::FunctionTemplate> sub_fun = v8::FunctionTemplate::New(isolate);
224 v8::Handle<v8::FunctionTemplate> unrel_fun =
227 v8::Handle<v8::ObjectTemplate> fun_proto = fun->PrototypeTemplate();
289 v8::Handle<v8::FunctionTemplate> cons = v8::FunctionTemplate::New(isolate);
291 v8::Handle<v8::Signature> sig = v8::Signature::New(
292 isolate, v8::Handle<v8::FunctionTemplate>(), 1, &cons);
293 v8::Handle<v8::FunctionTemplate> fun =
296 v8::Handle<Value>(),
301 v8::Handle<Value> value1 = CompileRun("Fun1(4) == '';");
304 v8::Handle<Value> value2 = CompileRun("Fun1(new Cons()) == '[object Cons]';");
307 v8::Handle<Value> value3 = CompileRun("Fun1() == '';");
310 v8::Handle<v8::FunctionTemplate> cons1 = v8::FunctionTemplate::New(isolate);
312 v8::Handle<v8::FunctionTemplate> cons2 = v8::FunctionTemplate::New(isolate);
314 v8::Handle<v8::FunctionTemplate> cons3 = v8::FunctionTemplate::New(isolate);
317 v8::Handle<v8::FunctionTemplate> args[3] = { cons1, cons2, cons3 };
318 v8::Handle<v8::Signature> wsig = v8::Signature::New(
319 isolate, v8::Handle<v8::FunctionTemplate>(), 3, args);
320 v8::Handle<v8::FunctionTemplate> fun2 =
323 v8::Handle<Value>(),
330 v8::Handle<Value> value4 = CompileRun(
335 v8::Handle<Value> value5 = CompileRun(
339 v8::Handle<Value> value6 = CompileRun(
343 v8::Handle<Value> value7 = CompileRun(
348 v8::Handle<Value> value8 = CompileRun(
358 v8::Handle<v8::Primitive> undef = v8::Undefined(isolate);
712 i::Handle<i::String> istring = v8::Utils::OpenHandle(*string);
716 i::Handle<i::String> isymbol =
732 i::Handle<i::String> istring = v8::Utils::OpenHandle(*string);
736 i::Handle<i::String> isymbol =
755 i::Handle<i::String> istring = v8::Utils::OpenHandle(*string);
778 i::Handle<i::String> istring = v8::Utils::OpenHandle(*string);
911 v8::Handle<v8::Object> global = env->Global();
929 rv.Set(v8::Handle<v8::Object>());
1065 v8::Handle<v8::ObjectTemplate> object_template =
1071 v8::Handle<v8::Script> script;
1159 v8::Handle<v8::Object> object;
1167 Handle<Value> TestFastReturnValues() {
1171 v8::Handle<v8::ObjectTemplate> object_template =
1185 v8::Handle<v8::Value> value;
1257 Handle<v8::Value>(),
1258 Handle<v8::Signature>(),
1299 v8::Handle<v8::Value> data =
1302 v8::Handle<v8::Object> obj = v8::Object::New(isolate);
1535 v8::Handle<Value> syntax_error = CompileRun(
1538 v8::Handle<Value> not_error = CompileRun("{a:42}");
1540 v8::Handle<Value> not_object = CompileRun("42");
1548 v8::Handle<Value> arguments_object =
1551 v8::Handle<Value> array = CompileRun("[1,2,3]");
1553 v8::Handle<Value> object = CompileRun("{a:42}");
1561 v8::Handle<Value> map = CompileRun("new Map()");
1562 v8::Handle<Value> set = CompileRun("new Set()");
1563 v8::Handle<Value> weak_map = CompileRun("new WeakMap()");
1564 v8::Handle<Value> weak_set = CompileRun("new WeakSet()");
1586 v8::Handle<Value> object = CompileRun("{a:42}");
1597 v8::Handle<Value> boxed_string = CompileRun("new String(\"test\")");
1599 v8::Handle<Value> unboxed_string = CompileRun("\"test\"");
1601 v8::Handle<Value> boxed_not_string = CompileRun("new Number(42)");
1603 v8::Handle<Value> not_object = CompileRun("0");
1605 v8::Handle<v8::StringObject> as_boxed = boxed_string.As<v8::StringObject>();
1610 v8::Handle<v8::Value> new_boxed_string = v8::StringObject::New(the_string);
1622 v8::Handle<Value> boxed_number = CompileRun("new Number(42)");
1624 v8::Handle<Value> unboxed_number = CompileRun("42");
1626 v8::Handle<Value> boxed_not_number = CompileRun("new Boolean(false)");
1628 v8::Handle<v8::NumberObject> as_boxed = boxed_number.As<v8::NumberObject>();
1632 v8::Handle<v8::Value> new_boxed_number =
1644 v8::Handle<Value> boxed_boolean = CompileRun("new Boolean(true)");
1646 v8::Handle<Value> unboxed_boolean = CompileRun("true");
1648 v8::Handle<Value> boxed_not_boolean = CompileRun("new Number(42)");
1650 v8::Handle<v8::BooleanObject> as_boxed =
1655 v8::Handle<v8::Value> boxed_true = v8::BooleanObject::New(true);
1656 v8::Handle<v8::Value> boxed_false = v8::BooleanObject::New(false);
1733 v8::Handle<v8::Boolean> t = v8::True(isolate);
1735 v8::Handle<v8::Boolean> f = v8::False(isolate);
1756 v8::Handle<v8::Boolean> t = v8::True(isolate);
1758 v8::Handle<v8::Boolean> f = v8::False(isolate);
1760 v8::Handle<v8::Primitive> u = v8::Undefined(isolate);
1762 v8::Handle<v8::Primitive> n = v8::Null(isolate);
1764 v8::Handle<String> str1 = v8_str("");
1766 v8::Handle<String> str2 = v8_str("x");
1792 v8::Handle<v8::FunctionTemplate> func_templ =
1796 v8::Handle<ObjectTemplate> templ = func_templ->InstanceTemplate();
1800 v8::Handle<Script> script(v8_compile("dummy()"));
1801 v8::Handle<Value> result(script->Run());
1849 v8::Handle<v8::FunctionTemplate> super = v8::FunctionTemplate::New(isolate);
1857 v8::Handle<v8::FunctionTemplate> base1 = v8::FunctionTemplate::New(isolate);
1861 v8::Handle<v8::FunctionTemplate> base2 = v8::FunctionTemplate::New(isolate);
1920 Handle<Object> self = Handle<Object>::Cast(info.This());
1927 Handle<Object> self = Handle<Object>::Cast(info.This());
1968 Handle<Object> self = Handle<Object>::Cast(info.This());
1987 Handle<Object> self = Handle<Object>::Cast(info.This());
1993 void AddAccessor(Handle<FunctionTemplate> templ,
1994 Handle<String> name,
2000 void AddInterceptor(Handle<FunctionTemplate> templ,
2007 void AddAccessor(Handle<FunctionTemplate> templ,
2008 Handle<Name> name,
2017 Handle<FunctionTemplate> parent = FunctionTemplate::New(CcTest::isolate());
2018 Handle<FunctionTemplate> child = FunctionTemplate::New(CcTest::isolate());
2038 i::Handle<i::JSObject> a(v8::Utils::OpenHandle(v8::Object::Cast(*res)));
2046 i::Handle<i::String> name(v8::Utils::OpenHandle(*v8_str("length")));
2055 Handle<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate());
2071 Handle<FunctionTemplate> parent = FunctionTemplate::New(isolate);
2072 Handle<FunctionTemplate> child = FunctionTemplate::New(isolate);
2093 Handle<FunctionTemplate> parent = FunctionTemplate::New(isolate);
2094 Handle<FunctionTemplate> child = FunctionTemplate::New(isolate);
2113 Handle<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate());
2131 Handle<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate());
2149 Handle<FunctionTemplate> parent = FunctionTemplate::New(CcTest::isolate());
2150 Handle<FunctionTemplate> child = FunctionTemplate::New(CcTest::isolate());
2169 Handle<FunctionTemplate> parent = FunctionTemplate::New(CcTest::isolate());
2170 Handle<FunctionTemplate> child = FunctionTemplate::New(CcTest::isolate());
2189 Handle<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate());
2214 Handle<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate());
2239 Handle<FunctionTemplate> parent = FunctionTemplate::New(CcTest::isolate());
2240 Handle<FunctionTemplate> child = FunctionTemplate::New(CcTest::isolate());
2257 Handle<FunctionTemplate> parent = FunctionTemplate::New(CcTest::isolate());
2258 Handle<FunctionTemplate> child = FunctionTemplate::New(CcTest::isolate());
2276 v8::Handle<v8::FunctionTemplate> templ =
2288 v8::Handle<Value> str = CompileRun(code);
2314 v8::Handle<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(isolate);
2326 v8::Handle<v8::Object> bottom;
2421 v8::Handle<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(isolate);
2487 v8::Handle<v8::FunctionTemplate> desc = v8::FunctionTemplate::New(isolate);
2493 v8::Handle<Value> result_pre = CompileRun("pre");
2495 v8::Handle<Value> result_on = CompileRun("on");
2497 v8::Handle<Value> result_post = CompileRun("post");
2505 v8::Handle<Value> result = CompileRun("this.propertyIsEnumerable(undefined)");
2510 v8::Handle<Script> call_recursively_script;
2535 v8::Handle<Value> function =
2545 v8::Handle<v8::ObjectTemplate> global = ObjectTemplate::New(isolate);
2555 call_recursively_script = v8::Handle<Script>();
2575 info.GetReturnValue().SetUndefined(); // not the same as empty handle
2582 v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(isolate);
2587 v8::Handle<Value> otto = CompileRun(
2590 v8::Handle<Value> netto = CompileRun(
2630 v8::Handle<v8::Object> global_proxy = env->Global();
2631 v8::Handle<v8::Object> global = global_proxy->GetPrototype().As<v8::Object>();
2649 static void CheckAlignedPointerInInternalField(Handle<v8::Object> obj,
2731 v8::Handle<Value> data) {
2801 Handle<Object> global_proxy = env->Global();
2809 LocalContext env2(NULL, Handle<ObjectTemplate>(), global_proxy);
3080 static void CheckInternalFieldsAreZero(v8::Handle<T> value) {
3107 v8::Handle<v8::Value> result = CompileRun("ab.byteLength");
3181 v8::Handle<v8::Value> result = CompileRun("ab3.byteLength");
3198 static void CheckDataViewIsNeutered(v8::Handle<v8::DataView> dv) {
3204 static void CheckIsNeutered(v8::Handle<v8::TypedArray> ta) {
3217 v8::Handle<v8::TypedArray> ta =
3218 v8::Handle<v8::TypedArray>::Cast(CompileRun(name));
3224 static Handle<TypedArray> CreateAndCheck(Handle<v8::ArrayBuffer> ab,
3227 v8::Handle<TypedArray> ta = TypedArray::New(ab, byteOffset, length);
3241 v8::Handle<v8::ArrayBuffer> buffer = v8::ArrayBuffer::New(isolate, 1024);
3243 v8::Handle<v8::Uint8Array> u8a =
3245 v8::Handle<v8::Uint8ClampedArray> u8c =
3247 v8::Handle<v8::Int8Array> i8a =
3250 v8::Handle<v8::Uint16Array> u16a =
3252 v8::Handle<v8::Int16Array> i16a =
3255 v8::Handle<v8::Uint32Array> u32a =
3257 v8::Handle<v8::Int32Array> i32a =
3260 v8::Handle<v8::Float32Array> f32a =
3262 v8::Handle<v8::Float64Array> f64a =
3265 v8::Handle<v8::DataView> dv = v8::DataView::New(buffer, 1, 1023);
3304 v8::Handle<v8::ArrayBuffer> ab =
3307 v8::Handle<v8::DataView> dv =
3308 v8::Handle<v8::DataView>::Cast(CompileRun("dv"));
3375 CHECK(obj->SetHiddenValue(key, Handle<Value>()));
3447 v8::Handle<v8::External> reext = reext_obj.As<v8::External>();
3831 v8::Persistent<T> handle;
3840 data.GetParameter()->handle.Reset();
3866 g1s1.handle.Reset(iso, Object::New(iso));
3867 g1s2.handle.Reset(iso, Object::New(iso));
3868 g1c1.handle.Reset(iso, Object::New(iso));
3869 g1s1.handle.SetWeak(&g1s1, &WeakPointerCallback);
3870 g1s2.handle.SetWeak(&g1s2, &WeakPointerCallback);
3871 g1c1.handle.SetWeak(&g1c1, &WeakPointerCallback);
3873 g2s1.handle.Reset(iso, Object::New(iso));
3874 g2s2.handle.Reset(iso, Object::New(iso));
3875 g2c1.handle.Reset(iso, Object::New(iso));
3876 g2s1.handle.SetWeak(&g2s1, &WeakPointerCallback);
3877 g2s2.handle.SetWeak(&g2s2, &WeakPointerCallback);
3878 g2c1.handle.SetWeak(&g2c1, &WeakPointerCallback);
3882 root.handle.Reset(iso, g1s1.handle); // make a root.
3887 CHECK(Local<Object>::New(iso, g1s2.handle.As<Object>())->
3888 Set(0, Local<Value>::New(iso, g2s2.handle)));
3889 CHECK(Local<Object>::New(iso, g2s1.handle.As<Object>())->
3890 Set(0, Local<Value>::New(iso, g1s1.handle)));
3894 UniqueId id1 = MakeUniqueId(g1s1.handle);
3895 UniqueId id2 = MakeUniqueId(g2s2.handle);
3896 iso->SetObjectGroupId(g1s1.handle, id1);
3897 iso->SetObjectGroupId(g1s2.handle, id1);
3898 iso->SetReferenceFromGroup(id1, g1c1.handle);
3899 iso->SetObjectGroupId(g2s1.handle, id2);
3900 iso->SetObjectGroupId(g2s2.handle, id2);
3901 iso->SetReferenceFromGroup(id2, g2c1.handle);
3912 root.handle.SetWeak(&root, &WeakPointerCallback);
3915 g1c1.handle.ClearWeak();
3916 g2c1.handle.ClearWeak();
3920 UniqueId id1 = MakeUniqueId(g1s1.handle);
3921 UniqueId id2 = MakeUniqueId(g2s2.handle);
3922 iso->SetObjectGroupId(g1s1.handle, id1);
3923 iso->SetObjectGroupId(g1s2.handle, id1);
3924 iso->SetReferenceFromGroup(id1, g1c1.handle);
3925 iso->SetObjectGroupId(g2s1.handle, id2);
3926 iso->SetObjectGroupId(g2s2.handle, id2);
3927 iso->SetReferenceFromGroup(id2, g2c1.handle);
3936 g1c1.handle.SetWeak(&g1c1, &WeakPointerCallback);
3937 g2c1.handle.SetWeak(&g2c1, &WeakPointerCallback);
3960 g1s1.handle.Reset(iso, Object::New(iso));
3961 g1s2.handle.Reset(iso, String::NewFromUtf8(iso, "foo1"));
3962 g1c1.handle.Reset(iso, String::NewFromUtf8(iso, "foo2"));
3963 g1s1.handle.SetWeak(&g1s1, &WeakPointerCallback);
3964 g1s2.handle.SetWeak(&g1s2, &WeakPointerCallback);
3965 g1c1.handle.SetWeak(&g1c1, &WeakPointerCallback);
3967 g2s1.handle.Reset(iso, Object::New(iso));
3968 g2s2.handle.Reset(iso, String::NewFromUtf8(iso, "foo3"));
3969 g2c1.handle.Reset(iso, String::NewFromUtf8(iso, "foo4"));
3970 g2s1.handle.SetWeak(&g2s1, &WeakPointerCallback);
3971 g2s2.handle.SetWeak(&g2s2, &WeakPointerCallback);
3972 g2c1.handle.SetWeak(&g2c1, &WeakPointerCallback);
3976 root.handle.Reset(iso, g1s1.handle); // make a root.
3981 CHECK(Local<Object>::New(iso, g1s1.handle)
3982 ->Set(0, Local<Object>::New(iso, g2s1.handle)));
3983 CHECK(Local<Object>::New(iso, g2s1.handle)
3984 ->Set(0, Local<Object>::New(iso, g1s1.handle)));
3988 UniqueId id1 = MakeUniqueId(g1s1.handle);
3989 UniqueId id2 = MakeUniqueId(g2s2.handle);
3990 iso->SetObjectGroupId(g1s1.handle, id1);
3991 iso->SetObjectGroupId(g1s2.handle, id1);
3992 iso->SetReference(g1s1.handle, g1c1.handle);
3993 iso->SetObjectGroupId(g2s1.handle, id2);
3994 iso->SetObjectGroupId(g2s2.handle, id2);
3995 iso->SetReferenceFromGroup(id2, g2c1.handle);
4006 root.handle.SetWeak(&root, &WeakPointerCallback);
4009 g1c1.handle.ClearWeak();
4010 g2c1.handle.ClearWeak();
4014 UniqueId id1 = MakeUniqueId(g1s1.handle);
4015 UniqueId id2 = MakeUniqueId(g2s2.handle);
4016 iso->SetObjectGroupId(g1s1.handle, id1);
4017 iso->SetObjectGroupId(g1s2.handle, id1);
4018 iso->SetReference(g1s1.handle, g1c1.handle);
4019 iso->SetObjectGroupId(g2s1.handle, id2);
4020 iso->SetObjectGroupId(g2s2.handle, id2);
4021 iso->SetReferenceFromGroup(id2, g2c1.handle);
4030 g1c1.handle.SetWeak(&g1c1, &WeakPointerCallback);
4031 g2c1.handle.SetWeak(&g2c1, &WeakPointerCallback);
4056 g1s1.handle.Reset(iso, Object::New(iso));
4057 g1s2.handle.Reset(iso, Object::New(iso));
4058 g1s1.handle.SetWeak(&g1s1, &WeakPointerCallback);
4059 g1s2.handle.SetWeak(&g1s2, &WeakPointerCallback);
4060 CHECK(g1s1.handle.IsWeak());
4061 CHECK(g1s2.handle.IsWeak());
4063 g2s1.handle.Reset(iso, Object::New(iso));
4064 g2s2.handle.Reset(iso, Object::New(iso));
4065 g2s1.handle.SetWeak(&g2s1, &WeakPointerCallback);
4066 g2s2.handle.SetWeak(&g2s2, &WeakPointerCallback);
4067 CHECK(g2s1.handle.IsWeak());
4068 CHECK(g2s2.handle.IsWeak());
4070 g3s1.handle.Reset(iso, Object::New(iso));
4071 g3s2.handle.Reset(iso, Object::New(iso));
4072 g3s1.handle.SetWeak(&g3s1, &WeakPointerCallback);
4073 g3s2.handle.SetWeak(&g3s2, &WeakPointerCallback);
4074 CHECK(g3s1.handle.IsWeak());
4075 CHECK(g3s2.handle.IsWeak());
4077 g4s1.handle.Reset(iso, Object::New(iso));
4078 g4s2.handle.Reset(iso, Object::New(iso));
4079 g4s1.handle.SetWeak(&g4s1, &WeakPointerCallback);
4080 g4s2.handle.SetWeak(&g4s2, &WeakPointerCallback);
4081 CHECK(g4s1.handle.IsWeak());
4082 CHECK(g4s2.handle.IsWeak());
4086 root.handle.Reset(iso, g1s1.handle); // make a root.
4092 UniqueId id1 = MakeUniqueId(g1s1.handle);
4093 UniqueId id2 = MakeUniqueId(g2s1.handle);
4094 UniqueId id3 = MakeUniqueId(g3s1.handle);
4095 UniqueId id4 = MakeUniqueId(g4s1.handle);
4096 iso->SetObjectGroupId(g1s1.handle, id1);
4097 iso->SetObjectGroupId(g1s2.handle, id1);
4098 iso->SetReferenceFromGroup(id1, g2s1.handle);
4099 iso->SetObjectGroupId(g2s1.handle, id2);
4100 iso->SetObjectGroupId(g2s2.handle, id2);
4101 iso->SetReferenceFromGroup(id2, g3s1.handle);
4102 iso->SetObjectGroupId(g3s1.handle, id3);
4103 iso->SetObjectGroupId(g3s2.handle, id3);
4104 iso->SetReferenceFromGroup(id3, g4s1.handle);
4105 iso->SetObjectGroupId(g4s1.handle, id4);
4106 iso->SetObjectGroupId(g4s2.handle, id4);
4107 iso->SetReferenceFromGroup(id4, g1s1.handle);
4118 root.handle.SetWeak(&root, &WeakPointerCallback);
4122 UniqueId id1 = MakeUniqueId(g1s1.handle);
4123 UniqueId id2 = MakeUniqueId(g2s1.handle);
4124 UniqueId id3 = MakeUniqueId(g3s1.handle);
4125 UniqueId id4 = MakeUniqueId(g4s1.handle);
4126 iso->SetObjectGroupId(g1s1.handle, id1);
4127 iso->SetObjectGroupId(g1s2.handle, id1);
4128 iso->SetReferenceFromGroup(id1, g2s1.handle);
4129 iso->SetObjectGroupId(g2s1.handle, id2);
4130 iso->SetObjectGroupId(g2s2.handle, id2);
4131 iso->SetReferenceFromGroup(id2, g3s1.handle);
4132 iso->SetObjectGroupId(g3s1.handle, id3);
4133 iso->SetObjectGroupId(g3s2.handle, id3);
4134 iso->SetReferenceFromGroup(id3, g4s1.handle);
4135 iso->SetObjectGroupId(g4s1.handle, id4);
4136 iso->SetObjectGroupId(g4s2.handle, id4);
4137 iso->SetReferenceFromGroup(id4, g1s1.handle);
4167 g1s1.handle.Reset(iso, Object::New(iso));
4168 g1s2.handle
4169 g1s1.handle.SetWeak(&g1s1, &WeakPointerCallback);
4170 g1s2.handle.SetWeak(&g1s2, &WeakPointerCallback);
4172 g2s1.handle.Reset(iso, Object::New(iso));
4173 g2s2.handle.Reset(iso, Object::New(iso));
4174 g2s1.handle.SetWeak(&g2s1, &WeakPointerCallback);
4175 g2s2.handle.SetWeak(&g2s2, &WeakPointerCallback);
4177 g3s1.handle.Reset(iso, Object::New(iso));
4178 g3s2.handle.Reset(iso, Object::New(iso));
4179 g3s1.handle.SetWeak(&g3s1, &WeakPointerCallback);
4180 g3s2.handle.SetWeak(&g3s2, &WeakPointerCallback);
4185 root.handle.Reset(iso, g1s1.handle);
4186 root.handle.MarkPartiallyDependent();
4193 g1s1.handle.MarkPartiallyDependent();
4194 g1s2.handle.MarkPartiallyDependent();
4195 g2s1.handle.MarkPartiallyDependent();
4196 g2s2.handle.MarkPartiallyDependent();
4197 g3s1.handle.MarkPartiallyDependent();
4198 g3s2.handle.MarkPartiallyDependent();
4199 iso->SetObjectGroupId(g1s1.handle, UniqueId(1));
4200 iso->SetObjectGroupId(g1s2.handle, UniqueId(1));
4201 Local<Object>::New(iso, g1s1.handle.As<Object>())->Set(
4202 v8_str("x"), Local<Value>::New(iso, g2s1.handle));
4203 iso->SetObjectGroupId(g2s1.handle, UniqueId(2));
4204 iso->SetObjectGroupId(g2s2.handle, UniqueId(2));
4205 Local<Object>::New(iso, g2s1.handle.As<Object>())->Set(
4206 v8_str("x"), Local<Value>::New(iso, g3s1.handle));
4207 iso->SetObjectGroupId(g3s1.handle, UniqueId(3));
4208 iso->SetObjectGroupId(g3s2.handle, UniqueId(3));
4209 Local<Object>::New(iso, g3s1.handle.As<Object>())->Set(
4210 v8_str("x"), Local<Value>::New(iso, g1s1.handle));
4221 root.handle.SetWeak(&root, &WeakPointerCallback);
4222 root.handle.MarkPartiallyDependent();
4227 g1s1.handle.MarkPartiallyDependent();
4228 g1s2.handle.MarkPartiallyDependent();
4229 g2s1.handle.MarkPartiallyDependent();
4230 g2s2.handle.MarkPartiallyDependent();
4231 g3s1.handle.MarkPartiallyDependent();
4232 g3s2.handle.MarkPartiallyDependent();
4233 iso->SetObjectGroupId(g1s1.handle, UniqueId(1));
4234 iso->SetObjectGroupId(g1s2.handle, UniqueId(1));
4235 Local<Object>::New(iso, g1s1.handle.As<Object>())->Set(
4236 v8_str("x"), Local<Value>::New(iso, g2s1.handle));
4237 iso->SetObjectGroupId(g2s1.handle, UniqueId(2));
4238 iso->SetObjectGroupId(g2s2.handle, UniqueId(2));
4239 Local<Object>::New(iso, g2s1.handle.As<Object>())->Set(
4240 v8_str("x"), Local<Value>::New(iso, g3s1.handle));
4241 iso->SetObjectGroupId(g3s1.handle, UniqueId(3));
4242 iso->SetObjectGroupId(g3s2.handle, UniqueId(3));
4243 Local<Object>::New(iso, g3s1.handle.As<Object>())->Set(
4244 v8_str("x"), Local<Value>::New(iso, g1s1.handle));
4282 static void check_message_0(v8::Handle<v8::Message> message,
4283 v8::Handle<Value> data) {
4297 v8::Handle<v8::Script> script = CompileWithOrigin("throw 'error'", "6.75");
4305 static void check_message_1(v8::Handle<v8::Message> message,
4306 v8::Handle<Value> data) {
4327 static void check_message_2(v8::Handle<v8::Message> message,
4328 v8::Handle<Value> data) {
4356 static void check_message_3(v8::Handle<v8::Message> message,
4357 v8::Handle<Value> data) {
4376 v8::Handle<v8::Script> script = Script::Compile(v8_str("throw 'error'"),
4385 static void check_message_4(v8::Handle<v8::Message> message,
4386 v8::Handle<Value> data) {
4405 v8::Handle<v8::Script> script = Script::Compile(v8_str("throw 'error'"),
4414 static void check_message_5a(v8::Handle<v8::Message> message,
4415 v8::Handle<Value> data) {
4422 static void check_message_5b(v8::Handle<v8::Message> message,
4423 v8::Handle<Value> data) {
4442 v8::Handle<v8::Script> script = Script::Compile(v8_str("throw 'error'"),
4643 v8::Handle<Value>* args0 = NULL;
4647 v8::Handle<Value> args1[] = { v8_num(1.1) };
4652 v8::Handle<Value> args2[] = { v8_num(2.2),
4659 v8::Handle<Value> args3[] = { v8_num(4.4),
4668 v8::Handle<Value> args4[] = { v8_num(7.7),
4721 v8::Handle<Value>* args0 = NULL;
4725 v8::Handle<Value> args1[] = { v8_num(1.1) };
4730 v8::Handle<Value> args2[] = { v8_num(2.2),
4737 v8::Handle<Value> args3[] = { v8_num(4.4),
4746 v8::Handle<Value> args4[] = { v8_num(7.7),
4998 v8::Handle<v8::Message> message,
4999 v8::Handle<v8::Value> data) {
5042 v8::Handle<Value> string = CompileRun("try { asdf; } catch(e) { e + ''; }");
5054 v8::Handle<v8::Message> message,
5055 v8::Handle<v8::Value> data) {
5080 v8::Handle<v8::Message> message,
5081 v8::Handle<v8::Value> data) {
5131 static void receive_message(v8::Handle<v8::Message> message,
5132 v8::Handle<v8::Value> data) {
5217 v8::Handle<Value> argv[] = { v8_num(count - 1),
5324 v8::Handle<Value> a0[argc] = { v8_num(4), v8_num(2), v8_num(3), v8_num(2) };
5328 v8::Handle<Value> a1[argc] = { v8_num(5), v8_num(6), v8_num(1), v8_num(2) };
5332 v8::Handle<Value> a2[argc] = { v8_num(6), v8_num(7), v8_num(5), v8_num(5) };
5336 v8::Handle<Value> a3[argc] = { v8_num(6), v8_num(6), v8_num(7), v8_num(6) };
5340 v8::Handle<Value> a4[argc] = { v8_num(6), v8_num(4), v8_num(5), v8_num(4) };
5344 v8::Handle<Value> a5[argc] = { v8_num(6), v8_num(4), v8_num(3), v8_num(3) };
5362 v8::Handle<v8::Array> result = v8::Handle<v8::Array>::Cast(CompileRun(
5495 Handle<Message> message = try_catch->Message();
5496 Handle<Value> resource = message->GetScriptOrigin().ResourceName();
5608 v8::Handle<v8::Object> obj = v8::Object::New(isolate);
5755 static v8::Handle<v8::Object> GetGlobalProperty(LocalContext* context,
5757 return v8::Handle<v8::Object>::Cast((*context)->Global()->Get(v8_str(name)));
6081 // Set x on the prototype object and do not handle the get request.
6082 v8::Handle<v8::Value> proto = info.Holder()->GetPrototype();
6231 // Have to populate the handle manually, as it's not Cast-able.
6232 i::Handle<i::JSObject> o =
6234 i::Handle<i::JSArray> array(reinterpret_cast<i::JSArray*>(*o));
6573 v8::Handle<ObjectTemplate> templ = ObjectTemplate::New(isolate);
6582 v8::Handle<v8::Object> global0 = context0->Global();
6589 v8::Handle<v8::Object> global1 = context1->Global();
6598 v8::Handle<v8::Object> global2 = context2->Global();
6612 v8::Handle<v8::Object> global0 =
6614 v8::Handle<v8::Object> object0 =
6616 v8::Handle<v8::Object> tostring0 =
6618 v8::Handle<v8::Object> proto0 =
6623 v8::Handle<v8::Object> global1 =
6625 v8::Handle<v8::Object> object1 =
6627 v8::Handle<v8::Object> tostring1 =
6629 v8::Handle<v8::Object> proto1 =
6900 v8::Handle<Context> context =
6903 v8::Handle<Value> result = CompileRun("Foo()");
6923 v8::Handle<Context> context =
6940 v8::Handle<Context> context =
6943 v8::Handle<Value> result = CompileRun("1+3");
6960 v8::Handle<Context> context =
6977 v8::Handle<Context> context =
6981 v8::Handle<Value> result = CompileRun("Ret54321()");
7014 v8::Handle<Context> context =
7017 v8::Handle<Value> result = CompileRun("UseEval1()");
7048 v8::Handle<Context> context =
7051 v8::Handle<Value> result = CompileRun("UseWith1()");
7063 v8::Handle<Context> context =
7066 v8::Handle<Value> result = CompileRun("Foo()");
7083 v8::Handle<Context> context =
7101 v8::Handle<Context> context =
7123 v8::Handle<Context> context =
7126 v8::Handle<Value> result = CompileRun(kNativeCallTest);
7139 virtual v8::Handle<v8::FunctionTemplate> GetNativeFunctionTemplate(
7141 v8::Handle<v8::String> name) {
7160 v8::Handle<Context> context =
7163 v8::Handle<Value> result = CompileRun("foo(42);");
7176 v8::Handle<Context> context =
7192 v8::Handle<Context> context =
7261 virtual v8::Handle<v8::FunctionTemplate> GetNativeFunctionTemplate(
7263 v8::Handle<String> name);
7268 v8::Handle<v8::FunctionTemplate> FunctionExtension::GetNativeFunctionTemplate(
7269 v8::Isolate* isolate, v8::Handle<String> name) {
7281 return v8::Handle<v8::FunctionTemplate>();
7342 v8::Handle<Context> context =
7349 static void MissingScriptInfoMessageListener(v8::Handle<v8::Message> message,
7350 v8::Handle<Value> data) {
7370 v8::Persistent<v8::Object> handle;
7376 data.GetParameter()->handle.Reset();
7384 v8::Handle<Context> context = Context::New(iso);
7391 object_a.handle.Reset(iso, v8::Object::New(iso));
7392 object_b.handle.Reset(iso, v8::Object::New(iso));
7397 object_a.handle.SetWeak(&object_a, &DisposeAndSetFlag);
7398 object_b.handle.SetWeak(&object_b, &DisposeAndSetFlag);
7399 CHECK(!object_b.handle.IsIndependent());
7400 object_a.handle.MarkIndependent();
7401 object_b.handle.MarkIndependent();
7402 CHECK(object_b.handle.IsIndependent());
7421 data.GetParameter()->handle.Reset();
7429 data.GetParameter()->handle.Reset();
7438 v8::Handle<Context> context = Context::New(isolate);
7455 object.handle.Reset(isolate, v8::Object::New(isolate));
7458 object.handle.SetWeak(&object, gc_forcing_callback[inner_gc]);
7459 object.handle.MarkIndependent();
7469 data.GetParameter()->handle.ClearWeak();
7477 v8::Handle<Context> context = Context::New(isolate);
7484 object.handle.Reset(isolate, o);
7490 object.handle.SetWeak(&object, &RevivingCallback);
7491 object.handle.MarkIndependent();
7498 v8::Local<v8::Object>::New(isolate, object.handle);
7506 v8::Handle<Function> args_fun;
7527 v8::Handle<v8::ObjectTemplate> global = ObjectTemplate::New(isolate);
7569 v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(isolate);
7613 v8::Handle<v8::Array> result = v8::Array::New(info.GetIsolate(), 3);
7623 v8::Handle<v8::Array> result = v8::Array::New(info.GetIsolate(), 2);
7633 v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(isolate);
7638 v8::Handle<v8::Array> result = v8::Handle<v8::Array>::Cast(CompileRun(
7696 v8::Handle<v8::Object> global =
7711 static void RunHolderTest(v8::Handle<v8::ObjectTemplate> obj) {
7731 v8::Handle<v8::Object> global =
7749 v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(isolate);
7763 v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(isolate);
7774 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
7780 v8::Handle<v8::Object> obj = templ->NewInstance();
7783 v8::Handle<Value> value =
7812 int GetUtf8Length(Handle<String> str) {
7815 i::Handle<i::String> istr(v8::Utils::OpenHandle(*str));
7826 v8::Handle<String> str = v8_str("abcde");
7828 v8::Handle<String> str2 = v8_str("abc\303\260\342\230\203");
7829 v8::Handle<String> str3 = v8::String::NewFromUtf8(
7833 v8::Handle<String> orphans_str = v8::String::NewFromTwoByte(
7837 v8::Handle<String> lead_str = v8::String::NewFromTwoByte(
7841 v8::Handle<String> trail_str = v8::String::NewFromTwoByte(
7845 v8::Handle<String> pair_str = v8::String::NewFromTwoByte(
7858 v8::Handle<v8::Object> global = context->Global();
7859 Handle<String> left_tree = global->Get(v8_str("left")).As<String>();
7860 Handle<String> right_tree = global->Get(v8_str("right")).As<String>();
8151 static uint16_t StringGet(Handle<String> str, int index) {
8152 i::Handle<i::String> istring =
8198 Handle<String> roundtrip = v8_str(buffer);
8281 static bool SameSymbol(Handle<String> s1, Handle<String> s2) {
8282 i::Handle<i::String> is1(v8::Utils::OpenHandle(*s1));
8283 i::Handle<i::String> is2(v8::Utils::OpenHandle(*s2));
8289 Handle<String> symbol1 =
8291 Handle<String> symbol2 =
8301 Handle<String> symbol1 = v8::String::NewFromUtf8(
8303 Handle<String> symbol2 = v8::String::NewFromUtf8(
8334 Handle<String> sym0 = v8::String::NewFromUtf8(
8336 Handle<String> sym0b = v8::String::NewFromUtf8(
8338 Handle<String> sym1 =
8341 Handle<String> sym2 =
8344 Handle<String> sym3 = v8::String::NewFromUtf8(
8347 Handle<String> sym4 =
8357 CHECK(SameSymbol(sym0, Handle<String>::Cast(s0)));
8358 CHECK(SameSymbol(sym0b, Handle<String>::Cast(s0b)));
8359 CHECK(SameSymbol(sym1, Handle<String>::Cast(s1)));
8360 CHECK(SameSymbol(sym2, Handle<String>::Cast(s2)));
8361 CHECK(SameSymbol(sym3, Handle<String>::Cast(s3)));
8362 CHECK(SameSymbol(sym4, Handle<String>::Cast(s4)));
8371 v8::Handle<String> str = v8_str("42");
8372 v8::Handle<v8::Uint32> index = str->ToArrayIndex();
8385 v8::Handle<v8::Number> num = v8::Number::New(isolate, 1);
8392 v8::Handle<v8::Object> obj = v8::Object::New(isolate);
8402 v8::Handle<String> foo = v8_str("foo");
8403 v8::Handle<String> message = v8_str("message");
8404 v8::Handle<Value> range_error = v8::Exception::RangeError(foo);
8407 v8::Handle<Value> reference_error = v8::Exception::ReferenceError(foo);
8410 v8::Handle<Value> syntax_error = v8::Exception::SyntaxError(foo);
8413 v8::Handle<Value> type_error = v8::Exception::TypeError(foo);
8416 v8::Handle<Value> error = v8::Exception::Error(foo);
8441 v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(isolate);
8444 v8::Handle<v8::Object> holder = obj->NewInstance();
8446 v8::Handle<Value> result = CompileRun(
8455 v8::Handle<v8::FunctionTemplate> templ1 = v8::FunctionTemplate::New(isolate);
8456 v8::Handle<v8::FunctionTemplate> templ2 = v8::FunctionTemplate::New(isolate);
8457 Handle<v8::FunctionTemplate> templ3 = v8::FunctionTemplate::New(isolate);
8458 v8::Handle<v8::FunctionTemplate> templs[3] = { templ1, templ2, templ3 };
8459 v8::Handle<v8::TypeSwitch> type_switch = v8::TypeSwitch::New(3, templs);
8461 v8::Handle<v8::Object> obj0 = v8::Object::New(isolate);
8462 v8::Handle<v8::Object> obj1 = templ1->GetFunction()->NewInstance();
8463 v8::Handle<v8::Object> obj2 = templ2->GetFunction()->NewInstance();
8464 v8::Handle<v8::Object> obj3 = templ3->GetFunction()->NewInstance();
8496 static void ApiUncaughtExceptionTestListener(v8::Handle<v8::Message>,
8497 v8::Handle<Value>) {
8536 static void ExceptionInNativeScriptTestListener(v8::Handle<v8::Message> message,
8537 v8::Handle<Value>) {
8538 v8::Handle<v8::Value> name_val = message->GetScriptOrigin().ResourceName();
8673 v8::Handle<v8::ObjectTemplate> global_template =
8678 v8::Handle<Context> context0 = Context::New(isolate, NULL, global_template);
8681 v8::Handle<v8::Object> global0 = context0->Global();
8682 v8::Handle<Script> script0 = v8_compile("foo = 111");
8685 v8::Handle<Value> foo0 = global0->Get(v8_str("foo"));
8687 v8::Handle<Value> z0 = global0->Get(v8_str("0"));
8693 v8::Handle<Context> context1 =
8697 v8::Handle<v8::Object> global1 = context1->Global();
8700 v8::Handle<Script> script1 =
8704 v8::Handle<Value> foo1 = global0->Get(v8_str("foo"));
8707 v8::Handle<Value> z1 = global0->Get(v8_str("0"));
8714 v8::Handle<v8::Object> global2 = context2->Global();
8716 v8::Handle<Script> script2 =
8719 v8::Handle<Value> foo2 = global0->Get(v8_str("foo"));
8721 v8::Handle<Value> z2 = global0->Get(v8_str("0"));
8733 v8::Handle<Context> env2 = Context::New(env1->GetIsolate());
8776 v8::Handle<Context> other = Context::New(current->GetIsolate());
8861 v8::Handle<v8::ObjectTemplate> object_template =
8866 v8::Handle<Context> context = Context::New(isolate);
8892 v8::Handle<Context> env2 = Context::New(env1->GetIsolate());
8923 v8::Handle<Context> env2 = Context::New(env1->GetIsolate());
8956 v8::Handle<Context> env2 = Context::New(env1->GetIsolate());
8995 v8::Handle<Context> env2 = Context::New(env1->GetIsolate());
9020 v8::Handle<Context> env3 = Context::New(env1->GetIsolate(),
9022 v8::Handle<v8::ObjectTemplate>(),
9058 v8::Handle<Context> env2 = Context::New(env1->GetIsolate());
9090 v8::Handle<Context> env3 = Context::New(env1->GetIsolate(),
9092 v8::Handle<v8::ObjectTemplate>(),
9179 v8::Handle<v8::ObjectTemplate>(),
9303 v8::Handle<v8::ObjectTemplate> global_template =
9313 v8::Handle<Value>(),
9320 v8::Handle<Value>(),
9334 v8::Handle<v8::Object> global0 = context0->Global();
9362 v8::Handle<v8::Object> global1 = context1->Global();
9431 v8::Handle<Value> value;
9479 v8::Handle<v8::ObjectTemplate> global_template =
9489 v8::Handle<Value>(),
9496 v8::Handle<Value>(),
9503 v8::Handle<v8::Object> global0 = context0->Global();
9507 v8::Handle<v8::Object> global1 = context1->Global();
9539 v8::Handle<Value> value;
9561 v8::Handle<v8::ObjectTemplate> obj_template =
9572 v8::Handle<v8::Object> global0 = context0->Global();
9579 v8::Handle<v8::Object> global1 = context1->Global();
9583 v8::Handle<Value> value;
9605 v8::Handle<v8::ObjectTemplate> obj_template =
9623 v8::Handle<v8::Array> result = v8::Array::New(info.GetIsolate(), 2);
9632 v8::Handle<v8::Array> result = v8::Array::New(info.GetIsolate(), 2);
9642 v8::Handle<v8::ObjectTemplate> obj_template =
9653 v8::Handle<v8::Object> global = context->Global();
9656 v8::Handle<v8::Value> result =
9659 v8::Handle<v8::Array> result_array = v8::Handle<v8::Array>::Cast(result);
9680 v8::Handle<v8::FunctionTemplate> func_template =
9683 v8::Handle<v8::ObjectTemplate> global_template =
9686 v8::Handle<v8::ObjectTemplate> proto_template =
9692 v8::Handle<Value>(),
9698 v8::Handle<Value>(),
9713 v8::Handle<v8::Object> global1 = context1->Global();
9717 v8::Handle<Value> value = v8_compile("other.accessible")->Run();
9764 v8::Handle<v8::ObjectTemplate> object_template =
9777 v8::Handle<v8::Object> global1 = context1->Global();
9780 v8::Handle<Value> value;
9913 v8::Handle<v8::ObjectTemplate> object_template =
9926 v8::Handle<v8::Object> global1 = context1->Global();
9929 v8::Handle<Value> value;
9983 v8::Handle<v8::ObjectTemplate> object_template =
10000 v8::Handle<v8::Object> global1 = context1->Global();
10003 v8::Handle<Value> value;
10351 Handle<FunctionTemplate> t = FunctionTemplate::New(context->GetIsolate());
10354 Handle<Object> p = t->GetFunction()->NewInstance();
10355 Handle<Object> o = Object::New(context->GetIsolate());
10644 i::Handle<i::JSObject> obj(v8::Utils::OpenHandle(*inst));
10731 Handle<Value> args3[] = { v8::True(isolate) };
10741 Handle<Value> args4[] = { v8::Undefined(isolate) };
10750 Handle<Value> args5[] = { v8::Null(isolate) };
10996 v8::Handle<v8::Value> fun =
11009 v8::Handle<v8::Value> x_value = CompileRun("fun('x')");
11112 v8::Handle<Value> args[] = { v8_num(28) };
11139 v8::Handle<Value> args[] = { v8_num(28) };
11164 v8::Handle<Value> args[] = { v8_num(23) };
11348 v8::Handle<Value> value = CompileRun(
11393 v8::Handle<Value> value = CompileRun(
11411 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
11415 v8::Handle<Value> value = CompileRun(source);
11453 v8::Handle<v8::Value>(v8::Integer::New(info.GetIsolate(), 42)) :
11454 v8::Handle<v8::Value>());
11625 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
11633 v8::Handle<Value> value = CompileRun(
11655 v8::Handle<v8::ObjectTemplate> templ_o = ObjectTemplate::New(isolate);
11657 v8::Handle<v8::ObjectTemplate> templ_p = ObjectTemplate::New(isolate);
11666 v8::Handle<Value> value = CompileRun(
11689 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
11696 v8::Handle<Value> value = CompileRun(
11718 v8::Handle<v8::ObjectTemplate> templ_o = ObjectTemplate::New(isolate);
11720 v8::Handle<v8::ObjectTemplate> templ_p = ObjectTemplate::New(isolate);
11727 v8::Handle<Value> value = CompileRun(
11747 v8::Handle<v8::ObjectTemplate> templ_o = ObjectTemplate::New(isolate);
11749 v8::Handle<v8::ObjectTemplate> templ_p = ObjectTemplate::New(isolate);
11756 v8::Handle<Value> value = CompileRun(
11780 v8::Handle<v8::ObjectTemplate> templ_o = ObjectTemplate::New(isolate);
11782 v8::Handle<v8::ObjectTemplate> templ_p = ObjectTemplate::New(isolate);
11789 v8::Handle<Value> value = CompileRun(
11836 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
11852 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
11856 v8::Handle<Value> value = CompileRun(
11867 v8::Handle<Value> call_ic_function;
11868 v8::Handle<Value> call_ic_function2;
11869 v8::Handle<Value> call_ic_function3;
11884 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
11890 v8::Handle<Value> value = CompileRun(
11904 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
11908 v8::Handle<Value> value = CompileRun(
11918 static v8::Handle<Value> call_ic_function4;
11934 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
11940 v8::Handle<Value> value = CompileRun(
11955 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
11959 v8::Handle<Value> value = CompileRun(
11983 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
11987 v8::Handle<Value> value = CompileRun(
11999 static v8::Handle<Value> call_ic_function5;
12015 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
12021 v8::Handle<Value> value = CompileRun(
12033 static v8::Handle<Value> call_ic_function6;
12049 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
12055 v8::Handle<Value> value = CompileRun(
12080 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
12084 v8::Handle<Value> value = CompileRun(
12111 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
12115 v8::Handle<Value> value = CompileRun(
12137 v8::Handle<v8::ObjectTemplate> templ_o = ObjectTemplate::New(isolate);
12143 v8::Handle<Value> value = CompileRun(
12226 v8::Handle<v8::ObjectTemplate> nativeobject_templ =
12254 v8::Handle<v8::ObjectTemplate> nativeobject_templ =
12262 v8::Handle<Value> result = CompileRun(
12274 static Handle<Value> DoDirectGetter() {
12295 v8::Handle<v8::ObjectTemplate> obj = v8::ObjectTemplate::New(isolate);
12299 v8::Handle<v8::Value> result = CompileRun(
12326 v8::Handle<v8::ObjectTemplate> obj = v8::ObjectTemplate::New(isolate);
12329 v8::Handle<Value> result = CompileRun(
12343 v8::Handle<v8::FunctionTemplate> fun_templ =
12345 v8::Handle<v8::FunctionTemplate> method_templ =
12349 v8::Handle<v8::Signature>());
12350 v8::Handle<v8::ObjectTemplate> proto_templ = fun_templ->PrototypeTemplate();
12352 v8::Handle<v8::ObjectTemplate> templ = fun_templ->InstanceTemplate();
12357 v8::Handle<v8::Function> fun = fun_templ->GetFunction();
12374 v8::Handle<v8::FunctionTemplate> fun_templ =
12376 v8::Handle<v8::FunctionTemplate> method_templ = v8::FunctionTemplate::New(
12379 v8::Handle<v8::ObjectTemplate> proto_templ = fun_templ->PrototypeTemplate();
12382 v8::Handle<v8::ObjectTemplate> templ = fun_templ->InstanceTemplate();
12387 v8::Handle<v8::Function> fun = fun_templ->GetFunction();
12407 v8::Handle<v8::FunctionTemplate> fun_templ =
12409 v8::Handle<v8::FunctionTemplate> method_templ = v8::FunctionTemplate::New(
12412 v8::Handle<v8::ObjectTemplate> proto_templ = fun_templ->PrototypeTemplate();
12415 v8::Handle<v8::ObjectTemplate> templ = fun_templ->InstanceTemplate();
12420 v8::Handle<v8::Function> fun = fun_templ->GetFunction();
12446 v8::Handle<v8::FunctionTemplate> fun_templ =
12448 v8::Handle<v8::FunctionTemplate> method_templ = v8::FunctionTemplate::New(
12451 v8::Handle<v8::ObjectTemplate> proto_templ = fun_templ->PrototypeTemplate();
12454 v8::Handle<v8::ObjectTemplate> templ = fun_templ->InstanceTemplate();
12459 v8::Handle<v8::Function> fun = fun_templ->GetFunction();
12485 v8::Handle<v8::FunctionTemplate> fun_templ =
12487 v8::Handle<v8::FunctionTemplate> method_templ = v8::FunctionTemplate::New(
12490 v8::Handle<v8::ObjectTemplate> proto_templ = fun_templ->PrototypeTemplate();
12493 v8::Handle<v8::ObjectTemplate> templ = fun_templ->InstanceTemplate();
12498 v8::Handle<v8::Function> fun = fun_templ->GetFunction();
12528 v8::Handle<v8::FunctionTemplate> fun_templ =
12530 v8::Handle<v8::FunctionTemplate> method_templ = v8::FunctionTemplate::New(
12533 v8::Handle<v8::ObjectTemplate> proto_templ = fun_templ->PrototypeTemplate();
12536 v8::Handle<v8::ObjectTemplate> templ = fun_templ->InstanceTemplate();
12541 v8::Handle<v8::Function> fun = fun_templ->GetFunction();
12569 v8::Handle<v8::FunctionTemplate> fun_templ =
12571 v8::Handle<v8::FunctionTemplate> method_templ =
12575 v8::Handle<v8::Signature>());
12576 v8::Handle<v8::ObjectTemplate> proto_templ = fun_templ->PrototypeTemplate();
12578 v8::Handle<v8::ObjectTemplate> templ(fun_templ->InstanceTemplate());
12581 v8::Handle<v8::Function> fun = fun_templ->GetFunction();
12597 v8::Handle<v8::FunctionTemplate> fun_templ =
12599 v8::Handle<v8::FunctionTemplate> method_templ = v8::FunctionTemplate::New(
12602 v8::Handle<v8::ObjectTemplate> proto_templ = fun_templ->PrototypeTemplate();
12605 v8::Handle<v8::ObjectTemplate> templ(fun_templ->InstanceTemplate());
12608 v8::Handle<v8::Function> fun = fun_templ->GetFunction();
12627 v8::Handle<v8::FunctionTemplate> fun_templ =
12629 v8::Handle<v8::FunctionTemplate> method_templ = v8::FunctionTemplate::New(
12632 v8::Handle<v8::ObjectTemplate> proto_templ = fun_templ->PrototypeTemplate();
12635 v8::Handle<v8::ObjectTemplate> templ(fun_templ->InstanceTemplate());
12638 v8::Handle<v8::Function> fun = fun_templ->GetFunction();
12662 v8::Handle<v8::FunctionTemplate> fun_templ =
12664 v8::Handle<v8::FunctionTemplate> method_templ = v8::FunctionTemplate::New(
12667 v8::Handle<v8::ObjectTemplate> proto_templ = fun_templ->PrototypeTemplate();
12670 v8::Handle<v8::ObjectTemplate> templ(fun_templ->InstanceTemplate());
12673 v8::Handle<v8::Function> fun = fun_templ->GetFunction();
12701 v8::Handle<v8::FunctionTemplate> fun_templ =
12703 v8::Handle<v8::FunctionTemplate> method_templ = v8::FunctionTemplate::New(
12706 v8::Handle<v8::ObjectTemplate> proto_templ = fun_templ->PrototypeTemplate();
12709 v8::Handle<v8::ObjectTemplate> templ(fun_templ->InstanceTemplate());
12712 v8::Handle<v8::Function> fun = fun_templ->GetFunction();
12736 v8::Handle<Value> keyed_call_ic_function;
12753 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
12778 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
12806 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
12832 v8::Handle<v8::ObjectTemplate> templ_o = ObjectTemplate::New(isolate);
12858 v8::Handle<v8::ObjectTemplate> templ_o = ObjectTemplate::New(isolate);
12881 v8::Handle<v8::ObjectTemplate> templ_o = ObjectTemplate::New(isolate);
12918 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
12920 LocalContext context(0, templ, v8::Handle<Value>());
12922 v8::Handle<Value> value = CompileRun(
12966 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
12968 LocalContext context(0, templ, v8::Handle<Value>());
12970 v8::Handle<Value> value = CompileRun(
13011 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
13013 LocalContext context(0, templ, v8::Handle<Value>());
13014 v8::Handle<Value> value = CompileRun(
13030 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
13035 v8::Handle<v8::Object> obj = templ->NewInstance();
13037 v8::Handle<Value> value = CompileRun("obj.x");
13047 v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(isolate);
13052 v8::Handle<v8::Object> obj = templ->NewInstance();
13054 v8::Handle<Value> value = CompileRun("obj[42]");
13063 v8::Handle<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(isolate);
13076 info.GetIsolate()->ThrowException(Handle<Value>());
13150 static void WithTryCatch(Handle<Message> message, Handle<Value> data) {
13155 static void ThrowFromJS(Handle<Message> message, Handle<Value> data) {
13160 static void ThrowViaApi(Handle<Message> message, Handle<Value> data) {
13165 static void WebKitLike(Handle<Message> message, Handle<Value> data) {
13166 Handle<String> errorMessageString = message->Get();
13245 v8::Handle<Value>(), v8::DEFAULT, v8::ReadOnly);
13251 v8::Handle<Value>(), v8::DEFAULT, v8::ReadOnly);
13532 v8::Handle<Value> exception;
13534 v8::Handle<Value> value = CompileRun(code);
13537 // Make sure to wrap the exception in a new handle because
13538 // the handle returned from the TryCatch is destroyed
13555 v8::Handle<Value> value = CompileRun(code);
13766 v8::Persistent<v8::Object>* handle =
13768 handle->SetWeak<v8::Object, v8::Persistent<v8::Object> >(handle,
13801 // global handle nodes are processed by PostGarbageCollectionProcessing
13802 handle is deleted,
13803 // weak callback of the first handle would be able to 'reallocate' it.
13889 static v8::Handle<Value> NestedScope(v8::Local<Context> env) {
13904 v8::Handle<Value> value = NestedScope(env);
13905 v8::Handle<String> str(value->ToString());
13969 i::Handle<i::JSFunction> foo_func_;
13970 i::Handle<i::JSFunction> bar_func_;
14165 bar_func_ = i::Handle<i::JSFunction>::cast(
14170 i::Handle<i::JSFunction>::cast(
14174 v8::Handle<v8::Value> value = CompileRun("bar();");
14429 // Keep a strong reference to the code object in the handle scope.
14430 i::Handle<i::Code> bar_code(i::Handle<i::JSFunction>::cast(
14432 i::Handle<i::Code> foo_code(i::Handle<i::JSFunction>::cast(
14519 v8::Handle<v8::Object> result =
14531 v8::Handle<v8::Value> result = CompileRun(
14541 static void CheckTryCatchSourceInfo(v8::Handle<v8::Script> script,
14546 v8::Handle<v8::Value> result = script->Run();
14549 v8::Handle<v8::Message> message = try_catch.Message();
14582 v8::Handle<v8::Script> script;
14605 v8::Handle<v8::String> source0 =
14607 v8::Handle<v8::String> source1 =
14609 v8::Handle<v8::Script> script0 = CompileWithOrigin(source0, "test.js");
14610 v8::Handle<v8::Script> script1 = CompileWithOrigin(source1, "test.js");
14611 v8::Handle<v8::Script> script2 =
14634 v8::Handle<v8::Value> value = CompileRun("obj.asdf.name");
14644 v8::Handle<v8::Value> date =
14652 v8::Handle<v8::Value> val,
14655 v8::Handle<v8::Object> obj = val.As<v8::Object>();
14656 v8::Handle<v8::Array> props = obj->GetPropertyNames();
14666 v8::Handle<v8::Value> val,
14669 v8::Handle<v8::Object> obj = val.As<v8::Object>();
14670 v8::Handle<v8::Array> props = obj->GetOwnPropertyNames();
14683 v8::Handle<v8::Value> obj = CompileRun(
14692 v8::Handle<v8::Array> elms = obj.As<v8::Array>();
14727 v8::Handle<v8::Value> obj = CompileRun(
14736 v8::Handle<v8::Array> elms = obj.As<v8::Array>();
14743 v8::Handle<v8::Value> val = elms->Get(v8::Integer::New(isolate, 0));
14744 v8::Handle<v8::Array> props = val.As<v8::Object>()->GetPropertyNames();
14842 v8::Handle<v8::ObjectTemplate> global_template =
14846 i::Handle<i::ObjectTemplateInfo> internal_template =
14849 i::Handle<i::FunctionTemplateInfo> constructor(
14864 v8::Handle<v8::ObjectTemplate> global_template =
14868 v8::Handle<v8::Value>(),
14892 v8::Handle<v8::Object> global = context->Global();
14933 i::Handle<i::String> name_handle =
14947 v8::Handle<v8::ObjectTemplate> global_template =
14951 v8::Handle<v8::Value>(),
14977 v8::Handle<v8::Object> global = context->Global();
15234 Handle<String> cons = v8_compile("cons")->Run().As<String>();
15370 v8::Handle<v8::ObjectTemplate> templ = v8::ObjectTemplate::New(isolate);
15372 v8::Handle<v8::Object> global = context->Global();
15373 v8::Handle<v8::Object> global_proto =
15374 v8::Handle<v8::Object>::Cast(global->Get(v8_str("__proto__")));
15380 v8::Handle<v8::Value> res =
15426 v8::Handle<v8::ObjectTemplate> templ = v8::ObjectTemplate::New(isolate);
15427 v8::Handle<v8::String> access_property =
15431 v8::Handle<v8::Object> global = context->Global();
15434 v8::Handle<v8::String> simple_property =
15471 v8::Handle<v8::ObjectTemplate> templ = v8::ObjectTemplate::New(isolate);
15474 v8::Handle<v8::Object> global = context->Global();
15476 v8::Handle<v8::String> some_property =
15487 // Getting the property when the interceptor returns an empty handle
15517 v8::Handle<v8::ObjectTemplate> templ = v8::ObjectTemplate::New(isolate);
15519 v8::Handle<v8::Object> global = context->Global();
15522 v8::Handle<v8::String> simple_property =
15554 v8::Handle<v8::ObjectTemplate> templ = v8::ObjectTemplate::New(isolate);
15557 v8::Handle<v8::Object> global = context->Global();
15559 v8::Handle<v8::String> some_property =
15571 // handle should not delete the property since it is DontDelete.
15627 v8::Handle<v8::String> G_property =
15670 // The following should not crash, but return an empty handle.
15729 v8::Handle<v8::Value> result = CompileRun("var x = 43; x");
15744 v8::Handle<v8::Object> obj = v8::Object::New(isolate);
15745 v8::Handle<v8::FunctionTemplate> func_templ =
15747 v8::Handle<v8::String> foo_string =
15750 v8::Handle<v8::Object> obj_clone = obj->Clone();
15759 i::Handle<i::Object> obj,
15774 i::Handle<i::ExternalUint8ClampedArray> pixels =
15775 i::Handle<i::ExternalUint8ClampedArray>::cast(
15791 v8::Handle<v8::Object> obj = v8::Object::New(context->GetIsolate());
15792 i::Handle<i::JSObject> jsobj = v8::Utils::OpenHandle(*obj);
15799 v8::Handle<v8::Value> result = CompileRun("pixels.field");
15846 i::Handle<i::Smi> value(i::Smi::FromInt(2),
15848 i::Handle<i::Object> no_failure;
16069 // Make sure that pixel array stores correctly handle accesses outside
16083 // Make sure that the generic store stub correctly handle accesses outside
16156 v8::Handle<v8::Object> obj = v8::Object::New(context->GetIsolate());
16188 i::Handle<i::ExternalUint8ClampedArray> pixels =
16189 i::Handle<i::ExternalUint8ClampedArray>::cast(
16196 v8::Handle<v8::ObjectTemplate> templ =
16200 v8::Handle<v8::Object> obj = templ->NewInstance();
16203 v8::Handle<v8::Value> result = CompileRun("pixels[1]");
16247 Handle<Context> context,
16248 v8::Handle<Object> obj,
16252 i::Handle<i::JSObject> jsobj = v8::Utils::OpenHandle(*obj);
16257 v8::Handle<v8::Value> result = CompileRun("ext_array.field");
16485 i::Handle<ExternalArrayClass> array(
16563 i::Handle<FixedTypedArrayClass> fixed_array =
16564 i::Handle<FixedTypedArrayClass>::cast(
16579 v8::Handle<v8::Object> obj = v8::Object::New(CcTest::isolate());
16580 i::Handle<i::JSObject> jsobj = v8::Utils::OpenHandle(*obj);
16581 i::Handle<i::Map> fixed_array_map =
16669 i::Handle<ExternalArrayClass> array =
16670 i::Handle<ExternalArrayClass>::cast(
16685 v8::Handle<v8::Object> obj = v8::Object::New(context->GetIsolate());
16686 i::Handle<i::JSObject> jsobj = v8::Utils::OpenHandle(*obj);
16699 v8::Handle<v8::Value> result;
16711 v8::Handle<v8::Object> large_obj = v8::Object::New(context->GetIsolate());
16784 v8::Handle<v8::Object> obj2 = v8::Object::New(context->GetIsolate());
16799 v8::Handle<v8::Object> obj2 = v8::Object::New(context->GetIsolate());
16814 v8::Handle<v8::Object> obj2 = v8::Object::New(context->GetIsolate());
16829 v8::Handle<v8::Object> obj2 = v8::Object::New(context->GetIsolate());
16841 v8::Handle<v8::Object> obj3 = v8::Object::New(context->GetIsolate());
16854 v8::Handle<v8::Object> obj3 = v8::Object::New(context->GetIsolate());
16863 v8::Handle<v8::Object> obj2 = v8::Object::New(context->GetIsolate());
16964 v8::Handle<v8::Object> obj = v8::Object::New(context->GetIsolate());
16992 v8::Handle<v8::Object> obj = v8::Object::New(isolate);
17144 Handle<Value> result = CompileRun( \
17171 v8::Handle<v8::Script> dep = v8_compile(source);
17174 v8::Handle<v8::UnboundScript> indep =
17193 v8::Handle<v8::String> src =
17195 v8::Handle<v8::String> origin =
17211 v8::Handle<v8::StackFrame> frame) {
17239 v8::Handle<v8::StackTrace> stackTrace = v8::StackTrace::CurrentStackTrace(
17255 v8::Handle<v8::StackTrace> stackTrace = v8::StackTrace::CurrentStackTrace(
17281 v8::Handle<v8::String> origin =
17299 v8::Handle<v8::String> overview_src =
17303 v8::Handle<Value> overview_result(
17319 v8::Handle<v8::String> detailed_src =
17322 v8::Handle<v8::Integer> line_offset = v8::Integer::New(isolate, 3);
17323 v8::Handle<v8::Integer> column_offset = v8::Integer::New(isolate, 5);
17326 v8::Handle<v8::UnboundScript> detailed_script(
17328 v8::Handle<Value> detailed_result(
17336 v8::Handle<v8::Message> message,
17337 v8::Handle<Value>) {
17338 v8::Handle<v8::StackTrace> stack_trace = message->GetStackTrace();
17391 static void RethrowStackTraceHandler(v8::Handle<v8::Message> message,
17392 v8::Handle<v8::Value> data) {
17394 v8::Handle<v8::StackTrace> stack_trace = message->GetStackTrace();
17435 static void RethrowPrimitiveStackTraceHandler(v8::Handle<v8::Message> message,
17436 v8::Handle<v8::Value> data) {
17437 v8::Handle<v8::StackTrace> stack_trace = message->GetStackTrace();
17471 static void RethrowExistingStackTraceHandler(v8::Handle<v8::Message> message,
17472 v8::Handle<v8::Value> data) {
17474 v8::Handle<v8::StackTrace> stack_trace = message->GetStackTrace();
17497 static void RethrowBogusErrorStackTraceHandler(v8::Handle<v8::Message> message,
17498 v8::Handle<v8::Value> data) {
17500 v8::Handle<v8::StackTrace> stack_trace = message->GetStackTrace();
17525 v8::Handle<v8::StackTrace> stackTrace = v8::StackTrace::CurrentStackTrace(
17528 v8::Handle<v8::String> url = v8_str("eval_url");
17530 v8::Handle<v8::String> name =
17573 v8::Handle<v8::StackTrace> stackTrace = v8::StackTrace::CurrentStackTrace(
17590 v8::Handle<v8::String> scriptSource = v8::String::NewFromUtf8(
17608 v8::Handle<v8::StackTrace> stackTrace = v8::StackTrace::CurrentStackTrace(
17611 v8::Handle<v8::String> url = v8_str("url");
17613 v8::Handle<v8::String> name =
17654 v8::Handle<v8::StackTrace> stackTrace = v8::StackTrace::CurrentStackTrace(
17657 v8::Handle<v8::String> url = v8_str("source_url");
17659 v8::Handle<v8::String> name =
17738 Handle<Value> sourceURL =
17762 Handle<Value> sourceURL =
17973 virtual void VisitExternalString(v8::Handle<v8::String> string) {
18069 i::Handle<i::String> string3_i = v8::Utils::OpenHandle(*string3);
18232 v8::Handle<v8::Value> number = v8::Number::New(isolate, test_value);
18251 v8::Handle<v8::Value> date =
18277 v8::Handle<v8::String> str(args[0]->ToString());
18381 v8::Handle<v8::Message> message = try_catch.Message();
18406 v8::Handle<v8::String> script = v8::String::NewFromUtf8(
18429 v8::Handle<v8::String> script = v8::String::NewFromUtf8(
18511 v8::Handle<v8::String> script = v8::String::NewFromUtf8(
18531 v8::Handle<v8::String> script = v8::String::NewFromUtf8(
18569 v8::Handle<v8::String> scriptSource = v8::String::NewFromUtf8(
18587 v8::Handle<v8::String> script = v8::String::NewFromUtf8(
18669 v8::Handle<v8::Object> c1 = v8::Handle<v8::Object>::Cast(script->Run());
18676 v8::Handle<v8::Object> c2 = v8::Handle<v8::Object>::Cast(script->Run());
18721 v8::Handle<v8::Object> c1 = v8::Handle<v8::Object>::Cast(script->Run());
18728 v8::Handle<v8::Object> c2 = v8::Handle<v8::Object>::Cast(script->Run());
18758 v8::Handle<v8::Object> c1 = v8::Handle<v8::Object>::Cast(script->Run());
18774 v8::Handle<v8::Object> c1 = v8::Handle<v8::Object>::Cast(script->Run());
19095 i::Handle<i::String> string = v8::Utils::OpenHandle(String::Cast(*result));
19099 i::Handle<i::String> flat_string = i::String::Flatten(string);
19187 Handle<String> string =
19195 Handle<String> base = String::NewFromUtf8(isolate, "a");
19196 Handle<String> left = base;
19197 Handle<String> right = base;
19202 Handle<String> balanced = String::Concat(left, base);
19204 Handle<String> cons_strings[] = {left, balanced, right};
19205 Handle<String> two_byte =
19261 v8::Handle<v8::ObjectTemplate> global_template =
19265 v8::Handle<v8::Value>(),
19271 v8::Handle<v8::Object> global0 = context0->Global();
19285 v8::Handle<v8::Value> result = CompileRun("other.x = new Object()");
19840 v8::Handle<v8::Value> handle = v8::Local<v8::Value>::New(isolate, *value);
19841 v8::Handle<v8::Value> object =
19843 CHECK(handle->IsObject());
19844 CHECK_EQ(Handle<Object>::Cast(handle), object);
19912 v8::Handle<v8::RegExp> re = v8::RegExp::New(v8_str("foo"), v8::RegExp::kNone);
19966 v8::Handle<v8::Value> value(CompileRun("re.property"));
19982 v8::Handle<v8::Object> globalProxy = localContext->Global();
19983 v8::Handle<Value> global = globalProxy->GetPrototype();
20004 v8::Handle<v8::Array> result = v8::Array::New(info.GetIsolate());
20016 v8::Handle<v8::ObjectTemplate> tmpl = v8::ObjectTemplate::New(isolate);
20019 v8::Handle<v8::Array> result = v8::Handle<v8::Array>::Cast(CompileRun(
20029 v8::Handle<v8::Object> proxy = context->Global();
20030 v8::Handle<v8::Function> define_property =
20042 static void InstallContextId(v8::Handle<Context> context, int id) {
20049 static void CheckContextId(v8::Handle<Object> object, int expected) {
20057 Handle<Context> context1 = Context::New(isolate);
20059 Handle<Context> context2 = Context::New(isolate);
20061 Handle<Context> context3 = Context::New(isolate);
20140 Handle<Context> context = Context::New(CcTest::isolate());
20200 Handle<Value> value = CompileRun(
20212 Handle<Object> object = value->ToObject();
20221 Handle<ObjectTemplate> templ = ObjectTemplate::New(isolate);
20223 Handle<Object> instance = templ->NewInstance();
20229 Handle<ObjectTemplate> templ = ObjectTemplate::New(isolate);
20231 Handle<Object> instance = templ->NewInstance();
20237 Handle<ObjectTemplate> templ = ObjectTemplate::New(isolate);
20239 Handle<Object> instance = templ->NewInstance();
20244 Handle<ObjectTemplate> templ = ObjectTemplate::New(isolate);
20246 Handle<Object> instance = templ->NewInstance();
20251 Handle<ObjectTemplate> templ = ObjectTemplate::New(isolate);
20253 Handle<Object> instance = templ->NewInstance();
20258 Handle<ObjectTemplate> templ = ObjectTemplate::New(isolate);
20262 Handle<Object> instance = templ->NewInstance();
20272 Handle<ObjectTemplate> templ = ObjectTemplate::New(isolate);
20292 Handle<Value> result = CompileRun("eval('42')");
20304 Handle<Value> result = CompileRun("eval('42')");
20367 Handle<String> message = v8_str("Message") ;
20368 Handle<String> expected_message = v8_str("Uncaught EvalError: Message");
20372 Handle<Value> result = CompileRun("eval('42')");
20375 Handle<String> actual_message = try_catch.Message()->Get();
20388 Handle<FunctionTemplate> templ =
20390 Handle<Function> function = templ->GetFunction();
20557 Handle<FunctionTemplate> intercept = FunctionTemplate::New(CcTest::isolate());
20717 v8::Handle<v8::FunctionTemplate> recursive_runtime =
20741 v8::Handle<Value> args[] = { v8_num(0) };
20952 Handle<Context> context = Context::New(isolate);
20970 Handle<Object> exec_state = event_details.GetExecutionState();
20971 Handle<Value> break_id = exec_state->Get(v8_str("break_id"));
20973 Handle<Function> fun = Handle<Function>::Cast(
20984 Handle<Context> context = Context::New(isolate);
21106 i::Handle<i::Object> undefined_value = factory->undefined_value();
21108 i::Handle<i::Object> null_value = factory->null_value();
21110 i::Handle<i::Object> true_value = factory->true_value();
21112 i::Handle<i::Object> false_value = factory->false_value();
21154 i::Handle<i::Object> empty_string = factory->empty_string();
21247 Handle<Value>(),
21276 Handle<Value>(),
21303 InstanceCheckedSetter, Handle<Value>(), v8::DEFAULT,
21522 i::Handle<i::JSObject> io1 = v8::Utils::OpenHandle(*o1);
21523 i::Handle<i::JSObject> io2 = v8::Utils::OpenHandle(*o2);
21550 Handle<FunctionTemplate> templ = FunctionTemplate::New(context->GetIsolate());
21610 Handle<Object> global = context->Global();
21620 Handle<Object> global = context->Global();
21720 v8::Handle<v8::ObjectTemplate> global_template =
21727 v8::Handle<v8::Object> global0 = context0->Global();
21734 v8::Handle<v8::FunctionTemplate> toJSON =
21748 v8::Handle<v8::Array> array = v8::Array::New(isolate, 2);
21818 v8::Handle<v8::ObjectTemplate> global_template =
21825 v8::Handle<v8::Object> global0 = context0->Global();
21832 v8::Handle<v8::FunctionTemplate> catcher_fun =
21836 v8::Handle<v8::FunctionTemplate> has_own_property_fun =
21877 Handle<FunctionTemplate> templ = FunctionTemplate::New(context->GetIsolate());
21892 Handle<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate());
21918 Handle<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate());
21941 Handle<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate());
21961 Handle<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate());
22329 i::Handle<i::JSObject> cache(i_isolate->native_context()->function_cache());
22330 i::Handle<i::Object> elm =
22602 Handle<Object> global = context->Global();
22605 Handle<v8::Promise::Resolver> pr = v8::Promise::Resolver::New(isolate);
22606 Handle<v8::Promise::Resolver> rr = v8::Promise::Resolver::New(isolate);
22607 Handle<v8::Promise> p = pr->GetPromise();
22608 Handle<v8::Promise> r = rr->GetPromise();
22613 Handle<Value> o = v8::Object::New(isolate);
22628 Handle<Function> f1 = Handle<Function>::Cast(global->Get(v8_str("f1")));
22629 Handle<Function> f2 = Handle<Function>::Cast(global->Get(v8_str("f2")));
22696 Handle<Object> global = context->Global();
22699 Handle<v8::Promise::Resolver> pr = v8::Promise::Resolver::New(isolate);
22700 Handle<v8::Promise::Resolver> qr = v8::Promise::Resolver::New(isolate);
22701 Handle<v8::Promise> p = pr->GetPromise();
22702 Handle<v8::Promise> q = qr->GetPromise();
22716 Handle<Function> f1 = Handle<Function>::Cast(global->Get(v8_str("f1")));
22717 Handle<Function> f2 = Handle<Function>::Cast(global->Get(v8_str("f2")));
22799 v8::Handle<v8::ObjectTemplate> templ = v8::ObjectTemplate::New(isolate);
22975 Handle<Value> args[] = { v8_num(14) };
22984 v8::Handle<v8::ObjectTemplate> object_template =
22989 v8::Handle<Context> context = Context::New(isolate);
23000 v8::Handle<v8::ObjectTemplate> object_template =
23005 v8::Handle<Context> context = Context::New(isolate);
23008 v8::Handle<v8::Object> obj = object_template->NewInstance();
23019 v8::Handle<v8::ObjectTemplate> object_template =
23024 v8::Handle<Context> context = Context::New(isolate);
23102 v8::Handle<Script> script = v8::ScriptCompiler::Compile(
23106 v8::Handle<Value> result(script->Run());