Home | History | Annotate | Download | only in cctest

Lines Matching refs:As

17 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
311 Local<v8::Array> value = CompileRun("[\"a\", \"b\"]").As<v8::Array>();
1053 v8::Handle<v8::StringObject> as_boxed = boxed_string.As<v8::StringObject>();
1060 as_boxed = new_boxed_string.As<v8::StringObject>();
1076 v8::Handle<v8::NumberObject> as_boxed = boxed_number.As<v8::NumberObject>();
1082 as_boxed = new_boxed_number.As<v8::NumberObject>();
1098 boxed_boolean.As<v8::BooleanObject>();
1106 as_boxed = boxed_true.As<v8::BooleanObject>();
1108 as_boxed = boxed_false.As<v8::BooleanObject>();
1140 date.As<v8::Date>()->Set(v8_str("property"), v8::Integer::New(42));
1141 CHECK_EQ(42, date.As<v8::Date>()->Get(v8_str("property"))->Int32Value());
1832 return function.As<Function>()->Call(args.This(), 0, NULL);
1866 return v8::Undefined(); // not the same as v8::Handle<v8::Value>()
1918 v8::Handle<v8::Object> global = global_proxy->GetPrototype().As<v8::Object>();
2151 v8::Handle<v8::External> reext = reext_obj.As<v8::External>();
2505 Local<v8::Array> arr = obj.As<v8::Array>();
2534 Local<v8::Array> a0 = CompileRun(fun).As<v8::Array>();
2538 Local<v8::Array> a1 = CompileRun(fun2).As<v8::Array>();
2543 Local<v8::Array> a2 = CompileRun(fun3).As<v8::Array>();
2549 Local<v8::Array> a3 = CompileRun(fun4).As<v8::Array>();
2556 Local<v8::Array> a4 = CompileRun(fun5).As<v8::Array>();
3148 Local<Value> result = fun.As<Function>()->Call(global, 4, argv);
3159 return fun.As<Function>()->Call(global, 4, argv);
3812 proto.As<v8::Object>()->Set(v8_str("x"), v8::Integer::New(23));
4317 global0->Get(v8_str("Object")).As<v8::Object>();
4319 object0->Get(v8_str("toString")).As<v8::Object>();
4321 tostring0->Get(v8_str("__proto__")).As<v8::Object>();
4328 global1->Get(v8_str("Object")).As<v8::Object>();
4330 object1->Get(v8_str("toString")).As<v8::Object>();
4332 tostring1->Get(v8_str("__proto__")).As<v8::Object>();
4836 // it's not treated as a keyword.
5253 args_fun = context->Global()->Get(v8_str("f")).As<Function>();
5558 Handle<String> left_tree = global->Get(v8_str("left")).As<String>();
5559 Handle<String> right_tree = global->Get(v8_str("right")).As<String>();
6017 CHECK(range_error.As<v8::Object>()->Get(message)->Equals(foo));
6020 CHECK(reference_error.As<v8::Object>()->Get(message)->Equals(foo));
6023 CHECK(syntax_error.As<v8::Object>()->Get(message)->Equals(foo));
6026 CHECK(type_error.As<v8::Object>()->Get(message)->Equals(foo));
6029 CHECK(error.As<v8::Object>()->Get(message)->Equals(foo));
6489 // as the __proto__ of an object in env2 and enumerate properties
6611 // Start by using the same security token for env3 as for env1 and env2.
6639 // the global object for env2 which has the same security token as env1.
7298 len = name.As<String>()->WriteAscii(buf);
7304 len = name.As<String>()->Write(buf2);
7353 value = v8_compile("var p = 'as' + 'df';")->Run();
7713 CHECK(proto.As<v8::Object>()->Get(v8_str("z"))->IsUndefined());
7757 CHECK_EQ(proto.As<v8::Object>(), o3);
7762 CHECK_EQ(proto0.As<v8::Object>(), o1);
7766 CHECK_EQ(proto1.As<v8::Object>(), o2);
7770 CHECK_EQ(proto2.As<v8::Object>(), o3);
8323 // non-function objects created through the API to be called as
8346 // test special case of call as function
8368 // Check that the call-as-function handler can be called through
8374 // Check that the call-as-function handler can be called through
8391 // Call an object without call-as-function handler through the JS
8400 // Call an object without call-as-function handler through the API
8420 // Catch the exception which is thrown by call-as-function handler
9208 // Same test as above, except the code is wrapped in a function
9856 // Same as InterceptorKeyedCallICKeyChange1 only the cacheable function sit
10138 "o\n").As<Object>();
10278 // Add 'h' as an accessor to the proto template with ReadOnly attributes
10284 // Add 'i' as an accessor to the instance template with ReadOnly attributes
10365 value = object.As<v8::Object>()->ObjectProtoToString();
10499 // If the new thread is the same as the current thread there is nothing to do.
10592 // as part of the locking aggregation tests.
10614 // as part of the locking aggregation tests.
11024 CHECK_EQ(1224744689038.0, date.As<v8::Date>()->NumberValue());
11029 v8::Handle<v8::Object> obj = val.As<v8::Object>();
11042 v8::Handle<v8::Object> obj = val.As<v8::Object>();
11064 v8::Handle<v8::Array> elms = obj.As<v8::Array>();
11098 v8::Handle<v8::Array> elms = obj.As<v8::Array>();
11105 v8::Handle<v8::Array> props = val.As<v8::Object>()->GetPropertyNames();
11434 // Verify that the original is the same as the deserialized.
11841 Local<v8::Object> obj = val.As<v8::Object>();
11945 Handle<String> cons = v8_compile("cons")->Run().As<String>();
11992 // Compile the sources as external two byte strings.
12029 // Inject the input as a global variable.
13677 // TODO(3074796): Reenable this as a THREADED_TEST once it passes.
14595 // Use a simple object as prototype.
14612 // Use an API object with accessors as prototype.
15556 re = CompileRun("/quux/").As<v8::RegExp>();
15561 re = CompileRun("/quux/gm").As<v8::RegExp>();
15658 "})").As<Function>();
15666 CompileRun("Object.prototype").As<Object>()->
15771 function = CompileRun("function foo() {}; foo").As<Object>();
15797 if (index == 42) return v8_num(1).As<v8::Integer>();
15804 if (property->Equals(v8_str("foo"))) return v8_num(1).As<v8::Integer>();
15811 if (property->Equals(v8_str("bar"))) return v8_num(1).As<v8::Integer>();
16103 // Template for object for second context. Values to test are put on it as
16231 // Calling with environment record as base.
16257 // Calling with environment record as base.