Lines Matching refs:info
160 static void Apply(const v8::FunctionCallbackInfo<v8::Value>& info) {
161 CHECK(info.Length() == 5 && info[0]->IsFunction() && // function
162 // info[1] could be an object or a string
163 info[2]->IsObject() && // args
164 info[3]->IsInt32() && // first_arg_index
165 info[4]->IsInt32()); // args_length
166 v8::Local<v8::Function> function = info[0].As<v8::Function>();
168 if (info[1]->IsObject()) {
169 recv = info[1]->ToObject();
170 } else if (info[1]->IsString()) {
171 recv = v8::StringObject::New(info[1]->ToString())->ToObject();
173 info.GetIsolate()->ThrowException(
175 info.GetIsolate(),
179 v8::Local<v8::Object> args = info[2]->ToObject();
180 int first_arg_index = static_cast<int>(info[3]->ToInt32()->Value());
181 int args_length = static_cast<int>(info[4]->ToInt32()->Value());
192 info.GetReturnValue().Set(return_value);
195 static void Save(const v8::FunctionCallbackInfo<v8::Value>& info) {
196 CHECK(info.Length() == 2 && info[0]->IsString() && info[1]->IsObject());
197 SaveImpl(*v8::String::Utf8Value(info[0]),
198 info[1],
199 info.GetIsolate()->GetCallingContext());