Home | History | Annotate | Download | only in cctest

Lines Matching full:info

48                             const v8::PropertyCallbackInfo<v8::Value>& info) {
50 info.GetReturnValue().Set(v8_num(900));
54 const v8::PropertyCallbackInfo<v8::Value>& info) {
56 info.GetReturnValue().Set(v8_num(902));
60 static void handle_property(const v8::FunctionCallbackInfo<v8::Value>& info) {
62 CHECK_EQ(0, info.Length());
63 info.GetReturnValue().Set(v8_num(907));
121 const v8::PropertyCallbackInfo<v8::Value>& info) {
124 static_cast<int*>(v8::Local<v8::External>::Cast(info.Data())->Value());
125 info.GetReturnValue().Set(v8_num(*value));
131 const v8::PropertyCallbackInfo<void>& info) {
133 static_cast<int*>(v8::Local<v8::External>::Cast(info.Data())->Value());
134 *field = value->Int32Value(info.GetIsolate()->GetCurrentContext()).FromJust();
166 template<class Info>
167 static void XGetter(const Info& info, int offset) {
170 CHECK_EQ(isolate, info.GetIsolate());
172 x_receiver->Equals(isolate->GetCurrentContext(), info.This()).FromJust());
173 info.GetReturnValue().Set(v8_num(x_register[offset]));
178 const v8::PropertyCallbackInfo<v8::Value>& info) {
179 CHECK(x_holder->Equals(info.GetIsolate()->GetCurrentContext(), info.Holder())
181 XGetter(info, 0);
185 static void XGetter(const v8::FunctionCallbackInfo<v8::Value>& info) {
187 x_receiver->Equals(info.GetIsolate()->GetCurrentContext(), info.Holder())
189 XGetter(info, 1);
193 template<class Info>
194 static void XSetter(Local<Value> value, const Info& info, int offset) {
196 CHECK_EQ(isolate, info.GetIsolate());
197 CHECK(x_holder->Equals(info.GetIsolate()->GetCurrentContext(), info.This())
199 CHECK(x_holder->Equals(info.GetIsolate()->GetCurrentContext(), info.Holder())
202 value->Int32Value(info.GetIsolate()->GetCurrentContext()).FromJust();
203 info.GetReturnValue().Set(v8_num(-1));
209 const v8::PropertyCallbackInfo<void>& info) {
210 XSetter(value, info, 0);
214 static void XSetter(const v8::FunctionCallbackInfo<v8::Value>& info) {
215 CHECK_EQ(1, info.Length());
216 XSetter(info[0], info, 1);
269 const v8::PropertyCallbackInfo<v8::Value>& info) {
272 v8::String::NewFromUtf8(info.GetIsolate(), "foo",
276 info.GetReturnValue().Set(v8::String::NewFromUtf8(info.GetIsolate(), "foo",
310 const v8::PropertyCallbackInfo<v8::Value>& info) {
311 CHECK(info.GetIsolate() == CcTest::isolate());
312 CHECK(info.This() == info.Holder());
313 CHECK(info.Data()
314 ->Equals(info.GetIsolate()->GetCurrentContext(), v8_str("data"))
317 CHECK(info.GetIsolate() == CcTest::isolate());
318 CHECK(info.This() == info.Holder());
319 CHECK(info.Data()
320 ->Equals(info.GetIsolate()->GetCurrentContext(), v8_str("data"))
323 CHECK(info.GetIsolate() == CcTest::isolate());
324 CHECK(info.This() == info.Holder());
325 CHECK(info.Data()
326 ->Equals(info.GetIsolate()->GetCurrentContext(), v8_str("data"))
328 info.GetReturnValue().Set(17);
353 const v8::PropertyCallbackInfo<v8::Value>& info) {
354 CheckAccessorArgsCorrect(name, info);
356 CheckAccessorArgsCorrect(name, info);
357 info.GetReturnValue().Set(v8::Local<v8::Value>());
423 const v8::PropertyCallbackInfo<v8::Value>& info) {
425 info.GetIsolate()->ThrowException(v8_str("g"));
431 const v8::PropertyCallbackInfo<void>& info) {
432 info.GetIsolate()->ThrowException(value);
478 const v8::PropertyCallbackInfo<v8::Value>& info) {
480 info.GetReturnValue().Set(v8::Array::New(info.GetIsolate(), 1000));
507 const v8::PropertyCallbackInfo<v8::Value>& info) {
508 i::StackFrameIterator iter(reinterpret_cast<i::Isolate*>(info.GetIsolate()));
546 const v8::PropertyCallbackInfo<v8::Value>& info) {
548 v8::Local<v8::Value>::New(info.GetIsolate(), name);
550 info.GetReturnValue().Set(v8::Integer::New(info.GetIsolate(), 100));
578 void JSONStringifyEnumerator(const v8::PropertyCallbackInfo<v8::Array>& info) {
579 v8::Local<v8::Array> array = v8::Array::New(info.GetIsolate(), 1);
580 CHECK(array->Set(info.GetIsolate()->GetCurrentContext(), 0, v8_str("regress"))
582 info.GetReturnValue().Set(array);
587 const v8::PropertyCallbackInfo<v8::Value>& info) {
588 info.GetReturnValue().Set(v8_str("crbug-161028"));
614 static void check_contexts(const v8::FunctionCallbackInfo<v8::Value>& info) {
616 CHECK(expected_current_context == info.GetIsolate()->GetCurrentContext());
658 const v8::PropertyCallbackInfo<v8::Value>& info) {
664 const v8::PropertyCallbackInfo<v8::Value>& info) {
666 info.GetReturnValue().Set(v8_num(1));