Lines Matching defs:name
69 #include "src/objects/swiss-name-dictionary-inl.h"
90 bool SourceCodeCache::Lookup(Isolate* isolate, base::Vector<const char> name,
94 if (str.IsOneByteEqualTo(name)) {
103 void SourceCodeCache::Add(Isolate* isolate, base::Vector<const char> name,
114 ->NewStringFromOneByte(base::Vector<const uint8_t>::cast(name),
243 Handle<JSFunction> CreateArrayBuffer(Handle<String> name,
249 Handle<JSFunction> InstallTypedArray(const char* name,
280 static bool InstallExtension(Isolate* isolate, const char* name,
385 Handle<String> name,
393 factory->NewSharedFunctionInfoForBuiltin(name, builtin);
402 Isolate* isolate, Handle<String> name, Builtin builtin,
414 factory->NewSharedFunctionInfoForBuiltin(name, builtin);
453 Isolate* isolate, Handle<String> name, Builtin builtin) {
460 factory->NewSharedFunctionInfoForBuiltin(name, builtin);
469 Isolate* isolate, Handle<String> name, InstanceType type, int instance_size,
474 isolate, name, builtin, prototype, type, instance_size,
488 Isolate* isolate, const char* name, InstanceType type, int instance_size,
491 isolate->factory()->InternalizeUtf8String(name), type,
496 Isolate* isolate, Handle<JSObject> target, Handle<String> name,
501 isolate, name, type, instance_size, inobject_properties, prototype, call);
502 JSObject::AddProperty(isolate, target, name, function, DONT_ENUM);
507 Isolate* isolate, Handle<JSObject> target, const char* name,
511 isolate->factory()->InternalizeUtf8String(name), type,
542 Handle<String> name,
546 name = String::Flatten(isolate, name, AllocationType::kOld);
548 CreateFunctionForBuiltinWithoutPrototype(isolate, name, call);
563 Isolate* isolate, Handle<JSObject> base, const char* name, Builtin call,
566 isolate->factory()->InternalizeUtf8String(name);
574 Isolate* isolate, Handle<JSObject> base, const char* name, Builtin call,
576 // Although function name does not have to be internalized the property name
579 isolate->factory()->InternalizeUtf8String(name);
600 Handle<String> name,
604 Name::ToFunctionName(isolate, name, isolate->factory()->get_string())
610 Name::ToFunctionName(isolate, name, isolate->factory()->set_string())
615 JSObject::DefineAccessor(base, name, getter, setter, DONT_ENUM).Check();
619 const char* name, Builtin call_getter,
622 isolate->factory()->InternalizeUtf8String(name),
628 Handle<Name> name,
632 Name::ToFunctionName(isolate, name, isolate->factory()->get_string())
647 Handle<Name> name,
649 return SimpleInstallGetter(isolate, base, name, name, call, adapt);
653 const char* name, Handle<Object> value) {
655 isolate, holder, isolate->factory()->InternalizeUtf8String(name), value,
661 const char* name) {
663 isolate->factory()->InternalizeUtf8String(name),
753 Handle<String> name = factory()->empty_string();
755 isolate(), name, Builtin::kStrictPoisonPillThrower);
758 // %ThrowTypeError% must have a name property with an empty string value. Per
759 // spec, ThrowTypeError's name is non-configurable, unlike ordinary functions'
760 // name property. To redefine it to be non-configurable, use
997 generator_function_prototype, "GeneratorFunction with name");
1100 async_generator_function_prototype, "AsyncGeneratorFunction with name");
1127 "AsyncFunction with name");
1180 void ReplaceAccessors(Isolate* isolate, Handle<Map> map, Handle<String> name,
1184 InternalIndex entry = descriptors.SearchWithCache(isolate, *name, *map);
1185 Descriptor d = Descriptor::AccessorConstant(name, accessor_pair, attributes);
1324 Handle<String> name = factory()->empty_string();
1328 isolate(), name, Builtin::kIllegal, prototype, JS_GLOBAL_OBJECT_TYPE,
1356 Handle<String> name = factory()->empty_string();
1358 isolate(), name, Builtin::kIllegal, factory()->the_hole_value(),
1435 Handle<String> name, int context_index,
1450 isolate, global, name, JS_ERROR_TYPE, kErrorObjectSize,
1467 JSObject::AddProperty(isolate, prototype, factory->name_string(), name,
1495 Descriptor d = Descriptor::AccessorConstant(handle(info->name(), isolate),
3258 Handle<String> name = factory->ArrayBuffer_string();
3259 Handle<JSFunction> array_buffer_fun = CreateArrayBuffer(name, ARRAY_BUFFER);
3260 JSObject::AddProperty(isolate_, global, name, array_buffer_fun, DONT_ENUM);
3274 Handle<String> name = factory->SharedArrayBuffer_string();
3276 CreateArrayBuffer(name, SHARED_ARRAY_BUFFER);
3776 Handle<String> name = factory->Proxy_string();
3778 isolate(), name, proxy_function_map, Builtin::kProxyConstructor);
3787 JSObject::AddProperty(isolate_, global, name, proxy_function, DONT_ENUM);
3858 { // name
4048 Handle<JSFunction> Genesis::InstallTypedArray(const char* name,
4059 isolate(), global, name, JS_TYPED_ARRAY_TYPE,
4135 base::Vector<const char> name = base::CStrVector(extension->name());
4140 if (!cache->Lookup(isolate, name, &function_info)) {
4142 factory->NewStringFromUtf8(name).ToHandleChecked();
4148 cache->Add(isolate, name, function_info);
4367 const char* name;
4402 SimpleInstallFunction(isolate(), prototype, info.name, info.id, 0, true,
4412 Handle<String> name = factory->console_string();
4417 factory->NewSharedFunctionInfoForBuiltin(name, Builtin::kIllegal);
4428 JSObject::AddProperty(isolate_, extras_binding, name, console, DONT_ENUM);
4430 JSObject::AddProperty(isolate_, global, name, console, DONT_ENUM);
4543 { // name
4561 Handle<String> name =
4564 isolate(), name, isolate()->strict_function_with_readonly_prototype_map(),
4812 #define INSTALL_TEMPORAL_FUNC(T, name, N, arg) \
4813 SimpleInstallFunction(isolate(), obj_func, #name, Builtin::kTemporal##T##N, \
5454 Handle<String> name, ArrayBufferKind array_buffer_kind) {
5456 // Setup the {prototype} with the given {name} for @@toStringTag.
5459 InstallToStringTag(isolate(), prototype, name);
5463 CreateFunction(isolate(), name, JS_ARRAY_BUFFER_TYPE,
5855 // binding.trace(phase, category, name, id, data)
5900 Handle<String> name = isolate->factory()->stackTraceLimit_string();
5902 JSObject::AddProperty(isolate, Error, name, stack_trace_limit, NONE);
5989 bool Genesis::InstallExtension(Isolate* isolate, const char* name,
5993 if (strcmp(name, it->extension()->name()) == 0) {
6031 // We print out the name of the extension that fail to install.
6036 current->extension()->name());
6107 // it is likely due to both global objects sharing property name(s).
6156 Handle<Name> key(cell->name(), isolate());