Home
last modified time | relevance | path

Searched refs:getter (Results 1 - 25 of 46) sorted by relevance

12

/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DinterfacePropertyDeclarations.cpp153 auto getter = GenerateGetterOrSetter(checker, prop->AsClassProperty(), false); in UpdateInterfacePropertys() local
154 newPropertyList.emplace_back(getter); in UpdateInterfacePropertys()
157 auto name = getter->Key()->AsIdentifier()->Name(); in UpdateInterfacePropertys()
159 auto *decl = checker->Allocator()->New<varbinder::FunctionDecl>(checker->Allocator(), name, getter); in UpdateInterfacePropertys()
164 prevDecl->Node()->AsMethodDefinition()->AddOverload(getter); in UpdateInterfacePropertys()
172 getter->Function()->Id()->SetVariable( in UpdateInterfacePropertys()
180 getter->AddOverload(setter); in UpdateInterfacePropertys()
H A DinterfaceObjectLiteralLowering.cpp94 // ifaceMethod is getter, so it should have return type in CreateAnonClassFieldGetterSetter()
171 auto *getter = CreateAnonClassFieldGetterSetter(checker, ifaceMethod, false); in FillClassBody() local
172 classBody->push_back(getter); in FillClassBody()
/arkcompiler/ets_runtime/test/fuzztest/objectref_fuzzer/
H A Dobjectref_fuzzer.cpp42 Local<FunctionRef> getter = FunctionRef::New(vm, nativeFunc); in SetAccessorPropertyFuzzTest() local
45 object->SetAccessorProperty(vm, key, getter, setter); in SetAccessorPropertyFuzzTest()
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/types/
H A Dproperty_descriptor.h33 static PropertyDescriptor Accessor(std::string name, RemoteObject getter) in Accessor() argument
35 PropertyDescriptor property(std::move(name), std::move(getter)); in Accessor()
/arkcompiler/ets_runtime/ecmascript/tests/
H A Daccessor_data_test.cpp71 void *getter = nullptr; in HWTEST_F_L0() local
72 JSHandle<AccessorData> internalAccHancle = factory->NewInternalAccessor(setter, getter); in HWTEST_F_L0()
114 void *getter = nullptr; in HWTEST_F_L0() local
116 factory->NewInternalAccessor(setter, getter)); in HWTEST_F_L0()
/arkcompiler/runtime_core/static_core/cross_values/
H A Dcross_values_getters_generator.rb60 // Specific getter for TLS entrypoints offsets:
/arkcompiler/ets_runtime/ecmascript/ic/
H A Dic_handler.h412 JSTaggedValue getter = accessor->GetGetter(); in LoadPrototype() local
413 if (!getter.IsUndefined()) { in LoadPrototype()
414 JSHandle<JSFunction> func(thread, getter); in LoadPrototype()
417 handler->SetAccessorJSFunction(thread, getter); in LoadPrototype()
/arkcompiler/ets_frontend/es2panda/binder/
H A Dscope.cpp207 bool getter{false}; in GetPrivateProperty()
217 getter = !setter; in GetPrivateProperty()
220 getter = isSetter; in GetPrivateProperty()
221 setter = !getter; in GetPrivateProperty()
232 return {slot, IsMethod(slot), IsStaticMethod(slot), getter, setter, validateMethodSlot}; in GetPrivateProperty()
/arkcompiler/ets_runtime/ecmascript/containers/
H A Dcontainers_private.h66 const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &getter);
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins.h363 const JSHandle<JSTaggedValue> &getter, const JSHandle<JSTaggedValue> &setter) const;
393 const JSHandle<JSTaggedValue> &getter, const JSHandle<JSTaggedValue> &setter) const;
395 const JSHandle<JSTaggedValue> &getter) const;
477 const JSHandle<JSTaggedValue> &getter, const JSHandle<JSTaggedValue> &setter) const;
H A Dshared_builtins.cpp819 const JSHandle<JSTaggedValue> &getter, const JSHandle<JSTaggedValue> &setter) const in SetSAccessor()
822 accessor->SetGetter(thread_, getter); in SetSAccessor()
1063 JSHandle<JSTaggedValue> getter = CreateSGetterSetter(env, entry.GetEntrypoint(), in InitializeSTypedArray() local
1065 SetSAccessor(typedArrFuncPrototype, fieldIndex++, getter, globalConst->GetHandledUndefined()); in InitializeSTypedArray()
818 SetSAccessor(const JSHandle<JSObject> &obj, uint32_t index, const JSHandle<JSTaggedValue> &getter, const JSHandle<JSTaggedValue> &setter) const SetSAccessor() argument
H A Dbuiltins.cpp605 const JSHandle<JSTaggedValue> &getter, const JSHandle<JSTaggedValue> &setter) const in SetInlineAccessor()
608 accessor->SetGetter(thread_, getter); in SetInlineAccessor()
766 JSHandle<JSTaggedValue> getter(factory_->NewJSFunction(env, reinterpret_cast<void *>(Symbol::DescriptionGetter))); in InitializeSymbol()
767 SetGetter(symbolFuncPrototype, getterKey, getter); in InitializeSymbol()
829 JSHandle<JSTaggedValue> getter(factory_->NewJSFunction(realm, reinterpret_cast<void *>(Symbol::DescriptionGetter))); in InitializeSymbolWithRealm()
830 SetGetter(symbolFuncPrototype, getterKey, getter); in InitializeSymbolWithRealm()
2272 JSHandle<JSTaggedValue> getter = in InitializeTypedArray() local
2275 SetGetter(typedArrFuncPrototype, key, getter); in InitializeTypedArray()
3167 const JSHandle<JSTaggedValue> &getter, const JSHandle<JSTaggedValue> &setter) const in SetAccessor()
3170 accessor->SetGetter(thread_, getter); in SetAccessor()
604 SetInlineAccessor(const JSHandle<JSObject> &obj, uint32_t index, const JSHandle<JSTaggedValue> &getter, const JSHandle<JSTaggedValue> &setter) const SetInlineAccessor() argument
3166 SetAccessor(const JSHandle<JSObject> &obj, const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &getter, const JSHandle<JSTaggedValue> &setter) const SetAccessor() argument
[all...]
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A Dhelpers.cpp2483 ir::MethodDefinition *getter, ir::MethodDefinition *setter, const bool inExternal) in SetupGetterSetterFlags()
2486 for (auto &method : {getter, setter}) { in SetupGetterSetterFlags()
2491 const auto mflag = method == getter ? ir::ModifierFlags::GETTER : ir::ModifierFlags::SETTER; in SetupGetterSetterFlags()
2492 const auto tflag = method == getter ? TypeFlag::GETTER : TypeFlag::SETTER; in SetupGetterSetterFlags()
2521 ir::MethodDefinition *getter = GenerateDefaultGetterSetter(interfaceProp, classProp, scope, false, this); in GenerateGetterSetterPropertyAndMethod() local
2522 classDef->Body().push_back(getter); in GenerateGetterSetterPropertyAndMethod()
2524 const auto &name = getter->Key()->AsIdentifier()->Name(); in GenerateGetterSetterPropertyAndMethod()
2532 auto *const decl = Allocator()->New<varbinder::FunctionDecl>(Allocator(), name, getter); in GenerateGetterSetterPropertyAndMethod()
2537 for (const auto &method : {getter, setter}) { in GenerateGetterSetterPropertyAndMethod()
2546 SetupGetterSetterFlags(originalProp, classType, getter, sette in GenerateGetterSetterPropertyAndMethod()
2482 SetupGetterSetterFlags(ir::ClassProperty *originalProp, ETSObjectType *classType, ir::MethodDefinition *getter, ir::MethodDefinition *setter, const bool inExternal) SetupGetterSetterFlags() argument
[all...]
/arkcompiler/ets_frontend/es2panda/ir/base/
H A DclassDefinition.cpp711 compiler::VReg getter = undef; in CompileGetterOrSetter() local
721 getter = accessor; in CompileGetterOrSetter()
726 pg->DefineGetterSetterByValue(this, dest, keyReg, getter, setter, prop->Computed()); in CompileGetterOrSetter()
/arkcompiler/ets_frontend/es2panda/ir/expressions/
H A DobjectExpression.cpp343 compiler::VReg getter = undef; in CompilePropertyOfGetterOrSetter() local
352 getter = accessor; in CompilePropertyOfGetterOrSetter()
357 pg->DefineGetterSetterByValue(this, objReg, key, getter, setter, prop->IsComputed()); in CompilePropertyOfGetterOrSetter()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ets_proxy/
H A Dets_field_wrapper.cpp68 InteropCtx::ThrowJSError(env, "getter called in wrong context"); in EtsFieldGetter()
223 prop.getter = EtsFieldGetter<Accessor, IS_STATIC>; in DoMakeNapiProperty()
/arkcompiler/ets_frontend/ets2panda/compiler/core/
H A DJSCompiler.cpp279 compiler::VReg getter = undef; in CompilePropertyKind() local
289 getter = accessor; in CompilePropertyKind()
294 pg->DefineGetterSetterByValue(node, std::make_tuple(dest, keyReg, getter, setter), prop->IsComputed()); in CompilePropertyKind()
915 compiler::VReg getter = undef; in CompileRemainingPropertyKind() local
924 getter = accessor; in CompileRemainingPropertyKind()
929 pg->DefineGetterSetterByValue(expr, std::make_tuple(objReg, key, getter, setter), prop->IsComputed()); in CompileRemainingPropertyKind()
/arkcompiler/runtime_core/static_core/static_linker/
H A Dlinker_context.cpp631 void Context::AddAnnotationImpl(AddAnnotationImplData<T> ad, Getter getter, Adder adder)
633 const auto &oldAnnotList = DerefPtrRef(getter(ad.oi));
654 deferredFailedAnnotations_.emplace_back([=]() { AddAnnotationImpl<T>(ad, getter, adder); });
H A Dlinker_context.h221 void AddAnnotationImpl(AddAnnotationImplData<T> ad, Getter getter, Adder adder);
/arkcompiler/ets_runtime/ecmascript/
H A Djs_object.cpp1071 JSTaggedValue getter = accessor->GetGetter(); in CallGetter() local
1072 // 7. If getter is undefined, return undefined. in CallGetter()
1073 if (getter.IsUndefined()) { in CallGetter()
1077 JSHandle<JSTaggedValue> func(thread, getter); in CallGetter()
1183 // 6. Otherwise, IsAccessorDescriptor(desc) must be true so, let getter be desc.[[Get]]. in GetProperty()
1185 // 8. Return Call(getter, Receiver). in GetProperty()
1370 // may GC in NewAccessorData, so we need to handle getter and setter. in ValidateAndApplyPropertyDescriptor()
2301 auto getter = JSHandle<JSTaggedValue>(thread, value); in ToPropertyDescriptorFast() local
2302 desc.SetGetter(getter); in ToPropertyDescriptorFast()
2373 JSHandle<JSTaggedValue> getter in ToPropertyDescriptor() local
[all...]
/arkcompiler/ets_runtime/ecmascript/ic/tests/
H A Dic_runtime_stub_test.cpp395 JSHandle<JSFunction> getter = factory->NewJSFunction(env, reinterpret_cast<void *>(TestGetter)); in HWTEST_F_L0() local
397 handleAccessor->SetGetter(thread, getter.GetTaggedValue()); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/jspandafile/
H A Dclass_info_extractor.cpp835 // Process duplicated key due to getter/setter.
1114 auto getter = accessor->GetGetter(); in UpdateAccessorFunction() local
1115 if (getter.IsFunctionTemplate()) { in UpdateAccessorFunction()
1116 auto funcTemp = JSHandle<FunctionTemplate>(thread, getter); in UpdateAccessorFunction()
/arkcompiler/ets_runtime/ecmascript/interpreter/
H A Dslow_runtime_stub.h129 JSTaggedValue getter, JSTaggedValue setter, bool flag);
/arkcompiler/ets_runtime/ecmascript/compiler/
H A Dtyped_hcr_lowering.cpp855 GateRef getter = builder_.LoadConstOffset(VariableType::JS_ANY(), accessor, AccessorData::GETTER_OFFSET); in LowerCallGetter() local
856 BRANCH_CIR(builder_.IsSpecial(getter, JSTaggedValue::VALUE_UNDEFINED), &exit, &callGetter); in LowerCallGetter()
859 result = CallAccessor(glue, gate, getter, receiver, AccessorMode::GETTER); in LowerCallGetter()
1734 GateRef getter; in LowerLoadGetter() local
1737 getter = builder_.LoadConstOffset(VariableType::JS_ANY(), acceessorData, AccessorData::GETTER_OFFSET); in LowerLoadGetter()
1741 getter = builder_.LoadConstOffset(VariableType::JS_ANY(), acceessorData, AccessorData::GETTER_OFFSET); in LowerLoadGetter()
1743 acc_.ReplaceGate(gate, builder_.GetState(), builder_.GetDepend(), getter); in LowerLoadGetter()
3071 GateRef getter = builder_.LoadConstOffset(VariableType::JS_ANY(), accessor, AccessorData::GETTER_OFFSET); in LowerMonoCallGetterOnProto() local
3072 BRANCH_CIR(builder_.IsSpecial(getter, JSTaggedValue::VALUE_UNDEFINED), &exit, &callGetter); in LowerMonoCallGetterOnProto()
3075 result = CallAccessor(glue, gate, getter, receive in LowerMonoCallGetterOnProto()
[all...]
/arkcompiler/ets_runtime/ecmascript/stubs/
H A Druntime_stubs-inl.h1543 if (handleKey->IsJSFunction()) { // getter in RuntimeLdPrivateProperty()
1545 // 0: getter has 0 arg in RuntimeLdPrivateProperty()
2511 const JSHandle<JSTaggedValue> &getter,
2523 "In a class, computed property names for static getter that are named 'prototype' throw a TypeError");
2529 if (!getter->IsUndefined()) {
2534 JSFunctionBase::SetFunctionName(thread, JSHandle<JSFunctionBase>::Cast(getter), propKey,
2552 if (!getter->IsUndefined()) {
2553 Method *method = Method::Cast(JSHandle<JSFunction>::Cast(getter)->GetMethod().GetTaggedObject());
2555 desc.SetGetter(getter);

Completed in 59 milliseconds

12