Lines Matching refs:Isolate
41 v8::Isolate* isolate = v8::Isolate::GetCurrent();
42 v8::HandleScope handleScope(isolate);
43 v8::Context::Scope contextScope(V8PerIsolateData::from(isolate)->ensureScriptRegexpContext());
52 v8::Local<v8::RegExp> regex = v8::RegExp::New(v8String(isolate, pattern), static_cast<v8::RegExp::Flags>(flags));
56 m_regex.set(isolate, regex);
73 v8::Isolate* isolate = v8::Isolate::GetCurrent();
74 v8::HandleScope handleScope(isolate);
75 v8::Context::Scope contextScope(V8PerIsolateData::from(isolate)->ensureScriptRegexpContext());
78 v8::Local<v8::RegExp> regex = m_regex.newLocal(isolate);
79 v8::Local<v8::Function> exec = regex->Get(v8AtomicString(isolate, "exec")).As<v8::Function>();
80 v8::Handle<v8::Value> argv[] = { v8String(isolate, string.substring(startFrom)) };
81 v8::Local<v8::Value> returnValue = V8ScriptRunner::callInternalFunction(exec, regex, WTF_ARRAY_LENGTH(argv), argv, isolate);
98 int matchOffset = result->Get(v8AtomicString(isolate, "index"))->ToInt32()->Value();