Lines Matching defs:isolate
15 #include "src/execution/isolate.h"
27 MaybeHandle<JSSegmenter> JSSegmenter::New(Isolate* isolate, Handle<Map> map,
32 Intl::CanonicalizeLocaleList(isolate, locales);
40 ASSIGN_RETURN_ON_EXCEPTION(isolate, options,
41 GetOptionsObject(isolate, input_options, service),
49 Intl::GetLocaleMatcher(isolate, options, service);
58 Intl::ResolveLocale(isolate, JSSegmenter::GetAvailableLocales(),
61 THROW_NEW_ERROR(isolate, NewRangeError(MessageTemplate::kIcuError),
68 isolate->factory()->NewStringFromAsciiChecked(r.locale.c_str());
73 isolate, options, "granularity", service,
105 Managed<icu::BreakIterator>::FromUniquePtr(isolate, 0,
110 isolate->factory()->NewFastOrSlowJSObjectFromMap(map));
127 Handle<JSObject> JSSegmenter::ResolvedOptions(Isolate* isolate,
129 Factory* factory = isolate->factory();
131 Handle<JSObject> result = factory->NewJSObject(isolate->object_function());
144 Handle<String> locale(segmenter->locale(), isolate);
145 JSObject::AddProperty(isolate, result, factory->locale_string(), locale,
147 JSObject::AddProperty(isolate, result, factory->granularity_string(),
148 segmenter->GranularityAsString(isolate), NONE);
153 Handle<String> JSSegmenter::GranularityAsString(Isolate* isolate) const {
154 return GetGranularityString(isolate, granularity());
157 Handle<String> JSSegmenter::GetGranularityString(Isolate* isolate,
159 Factory* factory = isolate->factory();