Lines Matching defs:context

8 #include "include/v8-context.h"
20 v8::Local<v8::Value> value, v8::Local<v8::Context> context, int max_depth,
22 std::unique_ptr<ValueMirror> mirror = ValueMirror::create(context, value);
25 mirror->buildWebDriverValue(context, max_depth - 1, &webDriver_value);
48 String16 descriptionForDate(v8::Local<v8::Context> context,
50 v8::Isolate* isolate = context->GetIsolate();
53 if (!date->ToString(context).ToLocal(&description)) {
74 v8::Local<v8::RegExp> value, v8::Local<v8::Context> context, int max_depth,
85 context->GetIsolate(), value->GetSource())));
97 v8::Local<v8::Date> value, v8::Local<v8::Context> context, int max_depth,
104 descriptionForDate(context, value.As<v8::Date>())));
109 v8::Local<v8::Array> value, v8::Local<v8::Context> context, int max_depth,
117 if (!value->Get(context, i).ToLocal(&element_value))
120 Response response = _serializeRecursively(element_value, context, max_depth,
131 v8::Local<v8::Array> value, v8::Local<v8::Context> context, int max_depth,
141 _serializeArrayValue(value, context, max_depth, &result_value);
149 v8::Local<v8::Map> value, v8::Local<v8::Context> context, int max_depth,
168 if (!properties_and_values->Get(context, i).ToLocal(&key_value))
170 if (!properties_and_values->Get(context, i + 1).ToLocal(&property_value))
176 toProtocolString(context->GetIsolate(), key_value.As<v8::String>()));
178 Response response = _serializeRecursively(key_value, context, max_depth,
184 property_value, context, max_depth, &property_protocol_value);
202 v8::Local<v8::Set> value, v8::Local<v8::Context> context, int max_depth,
212 _serializeArrayValue(value->AsArray(), context, max_depth, &result_value);
220 v8::Local<v8::Object> value, v8::Local<v8::Context> context, int max_depth,
226 if (!value->GetOwnPropertyNames(context).ToLocal(&property_names))
234 if (!property_names->Get(context, i).ToLocal(&key_value))
239 value->HasRealNamedProperty(context, key_value.As<v8::String>());
244 toProtocolString(context->GetIsolate(), key_value.As<v8::String>()));
246 Response response = _serializeRecursively(key_value, context, max_depth,
251 if (!value->Get(context, key_value).ToLocal(&property_value))
256 property_value, context, max_depth, &property_protocol_value);
272 v8::Local<v8::Object> value, v8::Local<v8::Context> context, int max_depth,
281 Response response = _serializeObjectValue(value.As<v8::Object>(), context,
290 v8::Local<v8::Object> value, v8::Local<v8::Context> context, int max_depth,
294 _serializeArray(value.As<v8::Array>(), context, max_depth, result);
299 _serializeRegexp(value.As<v8::RegExp>(), context, max_depth, result);
304 _serializeDate(value.As<v8::Date>(), context, max_depth, result);
309 _serializeMap(value.As<v8::Map>(), context, max_depth, result);
314 _serializeSet(value.As<v8::Set>(), context, max_depth, result);
371 _serializeObject(value.As<v8::Object>(), context, max_depth, result);