Home | History | Annotate | Download | only in cctest

Lines Matching defs:obj

58   Handle<Object> obj = v8::Utils::OpenHandle(*script);
60 if (obj->IsSharedFunctionInfo()) {
62 Handle<SharedFunctionInfo>(SharedFunctionInfo::cast(*obj));
65 Handle<SharedFunctionInfo>(JSFunction::cast(*obj)->shared());
160 " var obj = {};\n"
161 " obj.method1 = function() { return 1; }\n"
162 " obj.method2 = function() { return 2; }\n"
163 " return obj;\n"
165 CheckFunctionName(script, "return 1", "obj.method1");
166 CheckFunctionName(script, "return 2", "obj.method2");
364 " var obj = {};\n"
365 " obj[\"method1\"] = function() { return 1; }\n"
366 " obj[\"method2\"] = function() { return 2; }\n"
367 " return obj;\n"
369 CheckFunctionName(script, "return 1", "obj.method1");
370 CheckFunctionName(script, "return 2", "obj.method2");
380 " var obj = {};\n"
382 " obj[methodName] = function() { return 1; }\n"
384 " obj[methodName] = function() { return 2; }\n"
385 " return obj;\n"
388 CheckFunctionName(script, "return 1", "obj.(anonymous function)");
389 CheckFunctionName(script, "return 2", "obj.(anonymous function)");
399 " var obj = {};\n"
400 " obj[0 ? \"method1\" : \"method2\"] = function() { return 1; }\n"
401 " return obj;\n"
404 CheckFunctionName(script, "return 1", "obj.(anonymous function)");