• Home
  • Raw
  • Download

Lines Matching refs:isolate

36   MaybeLocal<String> Get(Isolate* isolate, Local<String> key) const override;
38 void Set(Isolate* isolate, Local<String> key, Local<String> value) override;
39 int32_t Query(Isolate* isolate, Local<String> key) const override;
41 void Delete(Isolate* isolate, Local<String> key) override;
42 Local<Array> Enumerate(Isolate* isolate) const override;
47 MaybeLocal<String> Get(Isolate* isolate, Local<String> key) const override;
49 void Set(Isolate* isolate, Local<String> key, Local<String> value) override;
50 int32_t Query(Isolate* isolate, Local<String> key) const override;
52 void Delete(Isolate* isolate, Local<String> key) override;
53 Local<Array> Enumerate(Isolate* isolate) const override;
55 std::shared_ptr<KVStore> Clone(Isolate* isolate) const override;
71 void DateTimeConfigurationChangeNotification(Isolate* isolate, const T& key) { in DateTimeConfigurationChangeNotification() argument
79 isolate->DateTimeConfigurationChangeNotification(time_zone_detection); in DateTimeConfigurationChangeNotification()
104 MaybeLocal<String> RealEnvStore::Get(Isolate* isolate, in Get() argument
106 node::Utf8Value key(isolate, property); in Get()
112 isolate, val.data(), NewStringType::kNormal, val.size()); in Get()
118 void RealEnvStore::Set(Isolate* isolate, in Set() argument
123 node::Utf8Value key(isolate, property); in Set()
124 node::Utf8Value val(isolate, value); in Set()
130 DateTimeConfigurationChangeNotification(isolate, key); in Set()
155 int32_t RealEnvStore::Query(Isolate* isolate, Local<String> property) const { in Query() argument
156 node::Utf8Value key(isolate, property); in Query()
160 void RealEnvStore::Delete(Isolate* isolate, Local<String> property) { in Delete() argument
163 node::Utf8Value key(isolate, property); in Delete()
165 DateTimeConfigurationChangeNotification(isolate, key); in Delete()
168 Local<Array> RealEnvStore::Enumerate(Isolate* isolate) const { in Enumerate()
183 MaybeLocal<String> str = String::NewFromUtf8(isolate, items[i].name); in Enumerate()
185 isolate->ThrowException(ERR_STRING_TOO_LONG(isolate)); in Enumerate()
191 return Array::New(isolate, env_v.out(), env_v_index); in Enumerate()
194 std::shared_ptr<KVStore> KVStore::Clone(Isolate* isolate) const { in Clone()
195 HandleScope handle_scope(isolate); in Clone()
196 Local<Context> context = isolate->GetCurrentContext(); in Clone()
199 Local<Array> keys = Enumerate(isolate); in Clone()
204 copy->Set(isolate, in Clone()
206 Get(isolate, key.As<String>()).ToLocalChecked()); in Clone()
217 MaybeLocal<String> MapKVStore::Get(Isolate* isolate, Local<String> key) const { in Get() argument
218 Utf8Value str(isolate, key); in Get()
223 isolate, val.data(), NewStringType::kNormal, val.size()); in Get()
226 void MapKVStore::Set(Isolate* isolate, Local<String> key, Local<String> value) { in Set() argument
228 Utf8Value key_str(isolate, key); in Set()
229 Utf8Value value_str(isolate, value); in Set()
241 int32_t MapKVStore::Query(Isolate* isolate, Local<String> key) const { in Query() argument
242 Utf8Value str(isolate, key); in Query()
246 void MapKVStore::Delete(Isolate* isolate, Local<String> key) { in Delete() argument
248 Utf8Value str(isolate, key); in Delete()
252 Local<Array> MapKVStore::Enumerate(Isolate* isolate) const { in Enumerate()
258 String::NewFromUtf8(isolate, pair.first.data(), in Enumerate()
262 return Array::New(isolate, values.data(), values.size()); in Enumerate()
265 std::shared_ptr<KVStore> MapKVStore::Clone(Isolate* isolate) const { in Clone()
275 Isolate* isolate = context->GetIsolate(); in AssignFromObject() local
276 HandleScope handle_scope(isolate); in AssignFromObject()
294 Set(isolate, key.As<String>(), value_string); in AssignFromObject()
308 env->env_vars()->Get(env->isolate(), property.As<String>()); in EnvGetter()
343 env->env_vars()->Set(env->isolate(), key, value_string); in EnvSetter()
354 int32_t rc = env->env_vars()->Query(env->isolate(), property.As<String>()); in EnvQuery()
364 env->env_vars()->Delete(env->isolate(), property.As<String>()); in EnvDeleter()
377 env->env_vars()->Enumerate(env->isolate())); in EnvEnumerator()
380 MaybeLocal<Object> CreateEnvVarProxy(Local<Context> context, Isolate* isolate) { in CreateEnvVarProxy() argument
381 EscapableHandleScope scope(isolate); in CreateEnvVarProxy()
382 Local<ObjectTemplate> env_proxy_template = ObjectTemplate::New(isolate); in CreateEnvVarProxy()