/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | privateNameClassExpressionLoop.ts | 28 … #myField = "hello"; #method() {} get #accessor() { return 42; } set #accesso… 30 … #myField = "hello"; #method() {} get #accessor() { return 42; } set #accesso… 40 get #accessor() { 41 AssertType(#accessor, "number"); 47 set #accessor(val) { 48 AssertType(#accessor, "number");
|
D | declarationEmitProtectedMembers.ts | 31 protected set accessor(a: number) { } 32 protected get accessor() {
|
/arkcompiler/ets_runtime/ecmascript/ |
D | object_operator.cpp | 199 AccessorData *accessor = AccessorData::Cast(value_->GetTaggedObject()); in FastGetValue() local 200 ASSERT(!accessor->IsInternal()); in FastGetValue() 202 return JSHandle<JSTaggedValue>(thread_, JSObject::CallGetter(thread_, accessor, receiver_)); in FastGetValue() 234 AccessorData *accessor = AccessorData::Cast(result.GetTaggedObject()); in ToPropertyDescriptor() local 236 if (UNLIKELY(accessor->IsInternal())) { in ToPropertyDescriptor() 238 auto val = accessor->CallInternalGet(thread_, JSHandle<JSObject>::Cast(GetHolder())); in ToPropertyDescriptor() 247 desc.SetGetter(JSHandle<JSTaggedValue>(thread_, accessor->GetGetter())); in ToPropertyDescriptor() 248 desc.SetSetter(JSHandle<JSTaggedValue>(thread_, accessor->GetSetter())); in ToPropertyDescriptor() 510 auto accessor = AccessorData::Cast(GetValue().GetTaggedObject()); in UpdateDataValue() local 511 if (accessor->HasSetter()) { in UpdateDataValue() [all …]
|
D | object_fast_operator-inl.h | 145 auto accessor = JSObject::Cast(holder)->GetProperty(hclass, attr); in SetPropertyByName() local 146 if (ShouldCallSetter(receiver, holder, accessor, attr)) { in SetPropertyByName() 147 return CallSetter(thread, receiver, value, accessor); in SetPropertyByName() 181 auto accessor = dict->GetValue(entry); in SetPropertyByName() local 182 if (ShouldCallSetter(receiver, holder, accessor, attr)) { in SetPropertyByName() 183 return CallSetter(thread, receiver, value, accessor); in SetPropertyByName() 555 AccessorData *accessor = AccessorData::Cast(value.GetTaggedObject()); in CallGetter() local 556 if (UNLIKELY(accessor->IsInternal())) { in CallGetter() 558 return accessor->CallInternalGet(thread, objHandle); in CallGetter() 561 return JSObject::CallGetter(thread, accessor, objHandle); in CallGetter() [all …]
|
D | global_env.h | 255 … AccessorData *accessor = AccessorData::Cast(result.GetTaggedValue().GetTaggedObject()); \ 256 … accessor->CallInternalGet(thread, JSHandle<JSObject>::Cast(GetJSGlobalObject())); \ 266 … AccessorData *accessor = AccessorData::Cast(result.GetTaggedObject()); \ 267 … accessor->CallInternalGet(thread, JSHandle<JSObject>::Cast(GetJSGlobalObject())); \
|
D | js_function.cpp | 45 JSHandle<JSTaggedValue> accessor = globalConst->GetHandledFunctionPrototypeAccessor(); in InitializeJSFunction() local 48 … func->SetPropertyInlinedProps(thread, PROTOTYPE_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue()); in InitializeJSFunction() 49 accessor = globalConst->GetHandledFunctionNameAccessor(); in InitializeJSFunction() 50 … func->SetPropertyInlinedProps(thread, NAME_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue()); in InitializeJSFunction() 64 …PropertyDescriptor desc(thread, accessor, kind != FunctionKind::BUILTIN_CONSTRUCTOR, false, false); in InitializeJSFunction() 70 JSHandle<JSTaggedValue> accessor = globalConst->GetHandledFunctionNameAccessor(); in InitializeJSFunction() local 71 … func->SetPropertyInlinedProps(thread, NAME_INLINE_PROPERTY_INDEX, accessor.GetTaggedValue()); in InitializeJSFunction()
|
D | js_object.cpp | 786 AccessorData *accessor = AccessorData::Cast(ret.GetTaggedObject()); in SetProperty() local 787 return CallSetter(thread, *accessor, receiver, value, mayThrow); in SetProperty() 790 bool JSObject::CallSetter(JSThread *thread, const AccessorData &accessor, const JSHandle<JSTaggedVa… in CallSetter() argument 793 if (UNLIKELY(accessor.IsInternal())) { in CallSetter() 794 … return accessor.CallInternalSet(thread, JSHandle<JSObject>::Cast(receiver), value, mayThrow); in CallSetter() 796 JSTaggedValue setter = accessor.GetSetter(); in CallSetter() 822 JSTaggedValue JSObject::CallGetter(JSThread *thread, const AccessorData *accessor, in CallGetter() argument 825 JSTaggedValue getter = accessor->GetGetter(); in CallGetter() 918 AccessorData *accessor = AccessorData::Cast(ret.GetTaggedObject()); in GetProperty() local 920 if (UNLIKELY(accessor->IsInternal())) { in GetProperty() [all …]
|
/arkcompiler/ets_frontend/ts2panda/src/expression/ |
D | objectLiteralExpression.ts | 152 let accessor: ts.GetAccessorDeclaration | ts.SetAccessorDeclaration; 158 accessor = getter; 164 accessor = setter; 167 pandaGen.loadAccumulatorString(accessor!, propName); 168 pandaGen.storeAccumulator(accessor!, propReg); 171 pandaGen.defineGetterSetterByValue(accessor!, objReg, propReg, getterReg, setterReg, false); 172 } else if (ts.isGetAccessorDeclaration(accessor!)) { 173 …pandaGen.defineGetterSetterByValue(accessor, objReg, propReg, getterReg, getVregisterCache(pandaGe… 175 …pandaGen.defineGetterSetterByValue(accessor!, objReg, propReg, getVregisterCache(pandaGen, CacheLi…
|
/arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
D | test-class-definiton16-expected.txt | 1 SyntaxError: A get accessor must be at least as accessible as the setter [test-class-definiton16.ts…
|
D | test-class-definiton6-expected.txt | 1 SyntaxError: A get accessor must be at least as accessible as the setter [test-class-definiton6.ts:…
|
D | test-class-definiton15-expected.txt | 1 SyntaxError: A get accessor must be at least as accessible as the setter [test-class-definiton15.ts…
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
D | literal_data_extractor.cpp | 95 JSHandle<AccessorData> accessor = factory->NewAccessorData(); in ExtractObjectDatas() local 96 jt = accessor.GetTaggedValue(); in ExtractObjectDatas() 189 JSHandle<AccessorData> accessor = factory->NewAccessorData(); in EnumerateLiteralVals() local 190 jt = accessor.GetTaggedValue(); in EnumerateLiteralVals() 358 JSHandle<AccessorData> accessor = factory->NewAccessorData(); in ExtractObjectDatas() local 359 jt = accessor.GetTaggedValue(); in ExtractObjectDatas() 445 JSHandle<AccessorData> accessor = factory->NewAccessorData(); in GetDatasIgnoreType() local 446 jt = accessor.GetTaggedValue(); in GetDatasIgnoreType()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | gate_accessor.cpp | 228 GateTypeAccessor accessor(gatePtr->GetOneParameterMetaData()->GetValue()); in GetParamGateType() local 229 return accessor.GetGateType(); in GetParamGateType() 237 ValuePairTypeAccessor accessor(gatePtr->GetOneParameterMetaData()->GetValue()); in IsConvertSupport() local 238 return accessor.IsConvertSupport(); in IsConvertSupport() 246 ValuePairTypeAccessor accessor(gatePtr->GetOneParameterMetaData()->GetValue()); in GetSrcType() local 247 return accessor.GetSrcType(); in GetSrcType() 255 ValuePairTypeAccessor accessor(gatePtr->GetOneParameterMetaData()->GetValue()); in GetDstType() local 256 return accessor.GetDstType(); in GetDstType() 265 GatePairTypeAccessor accessor(gatePtr->GetOneParameterMetaData()->GetValue()); in GetLeftType() local 266 return accessor.GetLeftType(); in GetLeftType() [all …]
|
D | number_speculative_retype.cpp | 348 TypedUnaryAccessor accessor(acc_.TryGetValue(gate)); in VisitTypedConditionJump() local 349 auto type = accessor.GetTypeValue(); in VisitTypedConditionJump() 414 TypedUnaryAccessor accessor(acc_.TryGetValue(gate)); in VisitNumberMonocular() local 415 GateType type = accessor.GetTypeValue(); in VisitNumberMonocular() 446 TypedUnaryAccessor accessor(acc_.TryGetValue(gate)); in VisitDoubleMonocular() local 448 acc_.ReplaceValueIn(gate, CheckAndConvertToFloat64(value, accessor.GetTypeValue()), 0); in VisitDoubleMonocular() 457 TypedUnaryAccessor accessor(acc_.TryGetValue(gate)); in VisitIsTrueOrFalse() local 458 GateType valueType = accessor.GetTypeValue(); in VisitIsTrueOrFalse() 477 TypedUnaryAccessor accessor(acc_.TryGetValue(gate)); in VisitNumberNot() local 478 GateType valueType = accessor.GetTypeValue(); in VisitNumberNot()
|
D | ntype_mcr_lowering.cpp | 135 GateRef accessor = builder_.GetGlobalConstantValue(ConstantIndex::ARRAY_LENGTH_ACCESSOR); in NewJSArrayLiteral() local 151 builder_.StoreConstOffset(VariableType::JS_POINTER(), array, lengthAccessorOffset, accessor); in NewJSArrayLiteral()
|
D | type_mcr_lowering.cpp | 244 ArrayMetaDataAccessor accessor = acc_.GetArrayMetaDataAccessor(gate); in LowerStableArrayCheck() local 245 builder_.HClassStableArrayCheck(receiverHClass, frameState, accessor); in LowerStableArrayCheck() 563 GateRef accessor = LoadFromVTable(receiver, plr.GetOffset()); in LowerCallGetter() local 564 …GateRef getter = builder_.LoadConstOffset(VariableType::JS_ANY(), accessor, AccessorData::GETTER_O… in LowerCallGetter() 609 GateRef accessor = LoadFromVTable(receiver, plr.GetOffset()); in LowerCallSetter() local 610 …GateRef setter = builder_.LoadConstOffset(VariableType::JS_ANY(), accessor, AccessorData::SETTER_O… in LowerCallSetter() 1278 GateRef accessor = LoadFromVTable(receiver, plr.GetOffset()); in LowerLoadGetter() local 1279 GateRef getter = builder_.Load(VariableType::JS_ANY(), accessor, in LowerLoadGetter() 1293 GateRef accessor = LoadFromVTable(receiver, plr.GetOffset()); in LowerLoadSetter() local 1295 accessor, builder_.IntPtr(AccessorData::SETTER_OFFSET)); in LowerLoadSetter()
|
D | ts_inline_lowering.cpp | 305 GateRef accessor = Circuit::NullGate(); in BuildAccessor() local 308 accessor = circuit_->NewGate(circuit_->LoadGetter(), MachineType::I64, in BuildAccessor() 311 accessor = circuit_->NewGate(circuit_->LoadSetter(), MachineType::I64, in BuildAccessor() 314 acc_.ReplaceDependIn(gate, accessor); in BuildAccessor() 315 return accessor; in BuildAccessor()
|
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/ |
D | pgo_profiler_layout.h | 82 void SetIsAccessor(bool accessor) in SetIsAccessor() argument 84 IsAccessorField::Set(accessor, &value_); in SetIsAccessor()
|
/arkcompiler/ets_frontend/es2panda/ir/base/ |
D | classDefinition.cpp | 280 compiler::VReg accessor = pg->AllocReg(); in CompileMissingProperties() local 282 pg->StoreAccumulator(prop->Value(), accessor); in CompileMissingProperties() 285 getter = accessor; in CompileMissingProperties() 287 setter = accessor; in CompileMissingProperties()
|
/arkcompiler/ets_runtime/ecmascript/platform/windows/ |
D | file.cpp | 110 int accessor = (prot == PAGE_PROT_READ) ? FILE_MAP_READ : FILE_MAP_WRITE; in FileMap() local 111 void *addr = MapViewOfFile(extra, accessor, offset >> 32, offset & 0xffffffff, size); in FileMap()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins.cpp | 401 const JSHandle<AccessorData> &accessor) const in SetLazyAccessor() 403 …PropertyDescriptor descriptor(thread_, JSHandle<JSTaggedValue>::Cast(accessor), true, false, true); in SetLazyAccessor() 979 …auto accessor = factory_->NewInternalAccessor(nullptr, reinterpret_cast<void *>(BuiltinsLazyCallba… in LazyInitializeDate() local 980 SetLazyAccessor(globalObject, key, accessor); in LazyInitializeDate() 981 env->SetDateFunction(thread_, accessor); in LazyInitializeDate() 1369 …auto accessor = factory_->NewInternalAccessor(nullptr, reinterpret_cast<void *>(BuiltinsLazyCallba… in LazyInitializeSet() local 1370 SetLazyAccessor(globalObject, key, accessor); in LazyInitializeSet() 1371 env->SetBuiltinsSetFunction(thread_, accessor); in LazyInitializeSet() 1446 …auto accessor = factory_->NewInternalAccessor(nullptr, reinterpret_cast<void *>(BuiltinsLazyCallba… in LazyInitializeMap() local 1447 SetLazyAccessor(globalObject, key, accessor); in LazyInitializeMap() [all …]
|
/arkcompiler/ets_frontend/ts2panda/src/statement/ |
D | classStatement.ts | 684 let accessor: ts.GetAccessorDeclaration | ts.SetAccessorDeclaration; 688 accessor = getter; 693 accessor = setter; 697 pandaGen.loadAccumulatorString(accessor!, String(prop.getName())); 698 pandaGen.storeAccumulator(accessor!, propReg); 701 …pandaGen.defineGetterSetterByValue(accessor!, flag ? tmpVreg : objReg, propReg, getterReg, setterR… 702 } else if (ts.isGetAccessorDeclaration(accessor!)) { 703 …pandaGen.defineGetterSetterByValue(accessor, flag ? tmpVreg : objReg, propReg, getterReg, getVregi… 705 …pandaGen.defineGetterSetterByValue(accessor!, flag ? tmpVreg : objReg, propReg, getVregisterCache(…
|
/arkcompiler/ets_runtime/ecmascript/ic/ |
D | ic_runtime_stub-inl.h | 205 auto accessor = LoadFromField(JSObject::Cast(holder.GetTaggedObject()), handlerInfo); in StoreICWithHandler() local 206 return FastRuntimeStub::CallSetter(thread, JSTaggedValue(receiver), value, accessor); in StoreICWithHandler() 264 auto accessor = LoadFromField(JSObject::Cast(holder.GetTaggedObject()), handlerInfoInt); in StoreWithTS() local 265 return FastRuntimeStub::CallSetter(thread, JSTaggedValue(receiver), value, accessor); in StoreWithTS() 410 auto accessor = LoadFromField(JSObject::Cast(holder.GetTaggedObject()), handlerInfo); in LoadICWithHandler() local 411 return FastRuntimeStub::CallGetter(thread, receiver, holder, accessor); in LoadICWithHandler()
|
/arkcompiler/ets_frontend/ts2panda/src/ |
D | jshelpers.js | 138 function getAllAccessorDeclarations(declarations, accessor) { argument 139 return ts.getAllAccessorDeclarations(declarations, accessor);
|
/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
D | objectExpression.cpp | 375 compiler::VReg accessor = pg->AllocReg(); in CompileRemainingProperties() local 378 pg->StoreAccumulator(prop->Value(), accessor); in CompileRemainingProperties() 381 getter = accessor; in CompileRemainingProperties() 383 setter = accessor; in CompileRemainingProperties()
|