/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/ |
H A D | interfacePropertyDeclarations.cpp | 153 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 D | interfaceObjectLiteralLowering.cpp | 94 // 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 D | objectref_fuzzer.cpp | 42 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 D | property_descriptor.h | 33 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 D | accessor_data_test.cpp | 71 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 D | cross_values_getters_generator.rb | 60 // Specific getter for TLS entrypoints offsets:
|
/arkcompiler/ets_runtime/ecmascript/ic/ |
H A D | ic_handler.h | 412 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 D | scope.cpp | 207 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 D | containers_private.h | 66 const JSHandle<JSTaggedValue> &key, const JSHandle<JSTaggedValue> &getter);
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins.h | 363 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 D | shared_builtins.cpp | 819 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 D | builtins.cpp | 605 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 D | helpers.cpp | 2483 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 D | classDefinition.cpp | 711 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 D | objectExpression.cpp | 343 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 D | ets_field_wrapper.cpp | 68 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 D | JSCompiler.cpp | 279 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 D | linker_context.cpp | 631 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 D | linker_context.h | 221 void AddAnnotationImpl(AddAnnotationImplData<T> ad, Getter getter, Adder adder);
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_object.cpp | 1071 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 D | ic_runtime_stub_test.cpp | 395 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 D | class_info_extractor.cpp | 835 // 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 D | slow_runtime_stub.h | 129 JSTaggedValue getter, JSTaggedValue setter, bool flag);
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | typed_hcr_lowering.cpp | 855 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 D | runtime_stubs-inl.h | 1543 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);
|