Lines Matching refs:v8
19 v8::Isolate* isolate = m_inspector->isolate(); in V8Regex()
20 v8::HandleScope handleScope(isolate); in V8Regex()
21 v8::Local<v8::Context> context = m_inspector->regexContext(); in V8Regex()
22 v8::Context::Scope contextScope(context); in V8Regex()
23 v8::TryCatch tryCatch(isolate); in V8Regex()
25 unsigned flags = v8::RegExp::kNone; in V8Regex()
26 if (!caseSensitive) flags |= v8::RegExp::kIgnoreCase; in V8Regex()
27 if (multiline) flags |= v8::RegExp::kMultiline; in V8Regex()
29 v8::Local<v8::RegExp> regex; in V8Regex()
30 if (v8::RegExp::New(context, toV8String(isolate, pattern), in V8Regex()
31 static_cast<v8::RegExp::Flags>(flags)) in V8Regex()
49 v8::Isolate* isolate = m_inspector->isolate(); in match()
50 v8::HandleScope handleScope(isolate); in match()
51 v8::Local<v8::Context> context = m_inspector->regexContext(); in match()
52 v8::MicrotasksScope microtasks(isolate, in match()
53 v8::MicrotasksScope::kDoNotRunMicrotasks); in match()
54 v8::TryCatch tryCatch(isolate); in match()
56 v8::Local<v8::RegExp> regex = m_regex.Get(isolate); in match()
57 v8::Local<v8::Value> exec; in match()
61 v8::Local<v8::Value> argv[] = { in match()
63 v8::Local<v8::Value> returnValue; in match()
64 if (!exec.As<v8::Function>() in match()
79 v8::Local<v8::Array> result = returnValue.As<v8::Array>(); in match()
80 v8::Local<v8::Value> matchOffset; in match()
85 v8::Local<v8::Value> match; in match()
87 *matchLength = match.As<v8::String>()->Length(); in match()
90 return matchOffset.As<v8::Int32>()->Value() + startFrom; in match()