Home
last modified time | relevance | path

Searched refs:JSSymbol (Results 1 – 25 of 43) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/tests/
Djs_symbol_test.cpp53 JSHandle<JSSymbol> normallSymbol = factory->NewJSSymbol(); in HWTEST_F_L0()
57 JSHandle<JSSymbol> privateSymbol = factory->NewPrivateSymbol(); in HWTEST_F_L0()
63 JSHandle<JSSymbol> privateNameSymbol = factory->NewPrivateNameSymbol(symbolName); in HWTEST_F_L0()
68 JSHandle<JSSymbol> wellKnowSymbol = factory->NewWellKnownSymbol(symbolName); in HWTEST_F_L0()
83 JSSymbol *helloWord1Symbol = JSSymbol::Cast(helloWord1SymbolVal->GetTaggedObject()); in HWTEST_F_L0()
84 JSSymbol *helloWord2Symbol = JSSymbol::Cast(helloWord2SymbolVal->GetTaggedObject()); in HWTEST_F_L0()
85 JSSymbol *hiWordSymbol = JSSymbol::Cast(hiWordSymbolVal->GetTaggedObject()); in HWTEST_F_L0()
86 EXPECT_TRUE(JSSymbol::Equal(*helloWord1Symbol, *helloWord2Symbol)); in HWTEST_F_L0()
88 EXPECT_FALSE(JSSymbol::Equal(*helloWord1Symbol, *helloWord2Symbol)); in HWTEST_F_L0()
89 EXPECT_FALSE(JSSymbol::Equal(*helloWord1Symbol, *hiWordSymbol)); in HWTEST_F_L0()
Dsymbol_table_test.cpp114 EXPECT_EQ(SymbolTable::Hash(jsObJect.GetTaggedValue()), JSSymbol::ComputeHash()); in HWTEST_F_L0()
246 JSHandle<JSSymbol> handleSymbol = factory->NewJSSymbol(); in HWTEST_F_L0()
Djs_function_test.cpp163 JSHandle<JSSymbol> symbol = factory->NewPublicSymbolWithChar("name"); in HWTEST_F_L0()
Dglobal_dictionary_test.cpp78 JSHandle<JSSymbol> jsSymbol = factory->NewJSSymbol(); in HWTEST_F_L0()
Dtransitions_dictionary_test.cpp87 JSHandle<JSSymbol> privateNameSymbol = factory->NewPrivateNameSymbol(symbolName); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/
Djs_symbol.h24 class JSSymbol : public TaggedObject {
42 CAST_CHECK(JSSymbol, IsSymbol);
101 static bool Equal(const JSSymbol &src, const JSSymbol &dst) in Equal()
Dsymbol_table.h67 return JSSymbol::ComputeHash(); in Hash()
94 JSSymbol *symbol = JSSymbol::Cast(value.GetTaggedObject()); in FindSymbol()
Dobject_factory.h41 class JSSymbol; variable
282 JSHandle<JSSymbol> NewEmptySymbol();
284 JSHandle<JSSymbol> NewJSSymbol();
286 JSHandle<JSSymbol> NewPrivateSymbol();
288 JSHandle<JSSymbol> NewPrivateNameSymbol(const JSHandle<JSTaggedValue> &name);
290 JSHandle<JSSymbol> NewWellKnownSymbol(const JSHandle<JSTaggedValue> &name);
292 JSHandle<JSSymbol> NewPublicSymbol(const JSHandle<JSTaggedValue> &name);
294 JSHandle<JSSymbol> NewSymbolWithTable(const JSHandle<JSTaggedValue> &name);
296 JSHandle<JSSymbol> NewPrivateNameSymbolWithChar(std::string_view description);
298 JSHandle<JSSymbol> NewWellKnownSymbolWithChar(std::string_view description);
[all …]
Dtransitions_dictionary.h54 hash = JSSymbol::Cast(key.GetTaggedObject())->GetHashField(); in Hash()
Dtagged_node.h61 auto symbolString = JSSymbol::Cast(key.GetTaggedObject()); in Hash()
Dobject_factory.cpp1031 JSHandle<JSSymbol> jsSymbol = NewPublicSymbolWithChar("IntlLegacyConstructedSymbol"); in InitializeJSObject()
2082 JSHandle<JSSymbol> ObjectFactory::NewEmptySymbol() in NewEmptySymbol()
2087 JSHandle<JSSymbol> obj(thread_, JSSymbol::Cast(header)); in NewEmptySymbol()
2094 JSHandle<JSSymbol> ObjectFactory::NewJSSymbol() in NewJSSymbol()
2099 JSHandle<JSSymbol> obj(thread_, JSSymbol::Cast(header)); in NewJSSymbol()
2106 JSHandle<JSSymbol> ObjectFactory::NewPrivateSymbol() in NewPrivateSymbol()
2108 JSHandle<JSSymbol> obj = NewJSSymbol(); in NewPrivateSymbol()
2113 JSHandle<JSSymbol> ObjectFactory::NewPrivateNameSymbol(const JSHandle<JSTaggedValue> &name) in NewPrivateNameSymbol()
2118 JSHandle<JSSymbol> obj(thread_, JSSymbol::Cast(header)); in NewPrivateNameSymbol()
2126 JSHandle<JSSymbol> ObjectFactory::NewWellKnownSymbol(const JSHandle<JSTaggedValue> &name) in NewWellKnownSymbol()
[all …]
Dglobal_dictionary-inl.h32 auto symbolString = JSSymbol::Cast(key.GetTaggedObject()); in Hash()
Dlinked_hash_table.cpp236 auto symbolString = JSSymbol::Cast(key.GetTaggedObject()); in Hash()
Djs_function.cpp615 JSTaggedValue description = JSHandle<JSSymbol>::Cast(name)->GetDescription(); in SetFunctionName()
736 JSTaggedValue description = JSSymbol::Cast(name.GetTaggedObject())->GetDescription(); in SetFunctionNameNoPrefix()
743 … JSHandle<EcmaString>(thread, JSSymbol::Cast(nameBegin->GetTaggedObject())->GetDescription())); in SetFunctionNameNoPrefix()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_symbol.cpp47 JSHandle<JSSymbol> jsSymbol = factory->NewJSSymbol(); in SymbolConstructor()
55 JSHandle<JSSymbol> jsSymbol = factory->NewPublicSymbol(descHandle); in SymbolConstructor()
95 auto symbolObject = reinterpret_cast<JSSymbol *>(sym.GetTaggedObject()); in SymbolDescriptiveString()
165 JSHandle<JSSymbol> symbol = factory->NewSymbolWithTable(stringHandle); in For()
238 JSTaggedValue desValue = JSSymbol::Cast(value->GetTaggedObject())->GetDescription(); in ThisSymbolValue()
247 … JSTaggedValue primitiveDesValue = JSSymbol::Cast(primitive.GetTaggedObject())->GetDescription(); in ThisSymbolValue()
Dbuiltins.h286 template<int type = JSSymbol::SYMBOL_DEFAULT_TYPE>
291 template<int type = JSSymbol::SYMBOL_DEFAULT_TYPE>
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_symbol_test.cpp72 JSHandle<JSSymbol> symbol = ecmaVM->GetFactory()->NewJSSymbol(); in HWTEST_F_L0()
119 JSHandle<JSSymbol> symbol = ecmaVM->GetFactory()->NewPublicSymbolWithChar("aaa"); in HWTEST_F_L0()
140 JSHandle<JSSymbol> symbol = ecmaVM->GetFactory()->NewJSSymbol(); in HWTEST_F_L0()
199 JSHandle<JSSymbol> symbol = ecmaVM->GetFactory()->NewPublicSymbolWithChar("bbb"); in HWTEST_F_L0()
239 JSHandle<JSSymbol> symbol = ecmaVM->GetFactory()->NewSymbolWithTableWithChar("ccc"); in HWTEST_F_L0()
261 JSHandle<JSSymbol> symbol = ecmaVM->GetFactory()->NewPublicSymbolWithChar("bbb"); in HWTEST_F_L0()
285 JSHandle<JSSymbol> otherSymbol = ecmaVM->GetFactory()->NewPublicSymbolWithChar("ccc"); in HWTEST_F_L0()
319 JSHandle<JSSymbol> symbol = ecmaVM->GetFactory()->NewJSSymbol(); in HWTEST_F_L0()
360 JSSymbol *sym = reinterpret_cast<JSSymbol *>(result.GetRawData()); in HWTEST_F_L0()
374 …thread, JSHandle<JSTaggedValue>(thread, reinterpret_cast<JSSymbol *>(result1.GetRawData())->GetDes… in HWTEST_F_L0()
[all …]
Dbuiltins_finalization_registry_test.cpp459 JSHandle<JSSymbol> symbol1 = thread->GetEcmaVM()->GetFactory()->NewJSSymbol(); in HWTEST_F_L0()
460 JSHandle<JSSymbol> symbol2 = thread->GetEcmaVM()->GetFactory()->NewJSSymbol(); in HWTEST_F_L0()
507 JSHandle<JSSymbol> symbol = thread->GetEcmaVM()->GetFactory()->NewJSSymbol(); in HWTEST_F_L0()
Dbuiltins_weak_ref_test.cpp196 JSHandle<JSSymbol> symbolTarget = thread->GetEcmaVM()->GetFactory()->NewJSSymbol(); in HWTEST_F_L0()
Dbuiltins_weak_set_test.cpp219 JSHandle<JSSymbol> symbolKey = thread->GetEcmaVM()->GetFactory()->NewJSSymbol(); in HWTEST_F_L0()
Dbuiltins_weak_map_test.cpp225 JSHandle<JSSymbol> symbolKey = thread->GetEcmaVM()->GetFactory()->NewJSSymbol(); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/ic/tests/
Dproperties_cache_test.cpp63 JSHandle<JSSymbol> handleSymbol(factory->NewJSSymbol()); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/mem/
Dc_string.cpp115 ecmascript::JSTaggedValue desc = JSSymbol::Cast(key.GetTaggedObject())->GetDescription(); in ConvertToString()
/arkcompiler/ets_runtime/test/aottest/tryldglobalbyname_global_object/
Dtryldglobalbyname_global_object.ts114 function JSSymbol() { function
686 JSSymbol();
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp139 using ecmascript::JSSymbol;

12