Home
last modified time | relevance | path

Searched refs:JSSymbol (Results 1 – 25 of 38) 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.h39 class JSSymbol; variable
275 JSHandle<JSSymbol> NewJSSymbol();
277 JSHandle<JSSymbol> NewPrivateSymbol();
279 JSHandle<JSSymbol> NewPrivateNameSymbol(const JSHandle<JSTaggedValue> &name);
281 JSHandle<JSSymbol> NewWellKnownSymbol(const JSHandle<JSTaggedValue> &name);
283 JSHandle<JSSymbol> NewPublicSymbol(const JSHandle<JSTaggedValue> &name);
285 JSHandle<JSSymbol> NewSymbolWithTable(const JSHandle<JSTaggedValue> &name);
287 JSHandle<JSSymbol> NewPrivateNameSymbolWithChar(const char *description);
289 JSHandle<JSSymbol> NewWellKnownSymbolWithChar(const char *description);
291 JSHandle<JSSymbol> NewPublicSymbolWithChar(const char *description);
[all …]
Dtransitions_dictionary.h54 hash = JSSymbol::Cast(key.GetTaggedObject())->GetHashField(); in Hash()
Dtagged_node.h58 auto symbolString = JSSymbol::Cast(key.GetTaggedObject()); in Hash()
Dobject_factory.cpp931 JSHandle<JSSymbol> jsSymbol = NewPublicSymbolWithChar("IntlLegacyConstructedSymbol"); in InitializeJSObject()
1889 JSHandle<JSSymbol> ObjectFactory::NewJSSymbol() in NewJSSymbol()
1894 JSHandle<JSSymbol> obj(thread_, JSSymbol::Cast(header)); in NewJSSymbol()
1901 JSHandle<JSSymbol> ObjectFactory::NewPrivateSymbol() in NewPrivateSymbol()
1903 JSHandle<JSSymbol> obj = NewJSSymbol(); in NewPrivateSymbol()
1908 JSHandle<JSSymbol> ObjectFactory::NewPrivateNameSymbol(const JSHandle<JSTaggedValue> &name) in NewPrivateNameSymbol()
1913 JSHandle<JSSymbol> obj(thread_, JSSymbol::Cast(header)); in NewPrivateNameSymbol()
1921 JSHandle<JSSymbol> ObjectFactory::NewWellKnownSymbol(const JSHandle<JSTaggedValue> &name) in NewWellKnownSymbol()
1926 JSHandle<JSSymbol> obj(thread_, JSSymbol::Cast(header)); in NewWellKnownSymbol()
1934 JSHandle<JSSymbol> ObjectFactory::NewPublicSymbol(const JSHandle<JSTaggedValue> &name) in NewPublicSymbol()
[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.cpp503 JSTaggedValue description = JSHandle<JSSymbol>::Cast(name)->GetDescription(); in SetFunctionName()
625 JSTaggedValue description = JSSymbol::Cast(name.GetTaggedObject())->GetDescription(); in SetFunctionNameNoPrefix()
632 … JSHandle<EcmaString>(thread, JSSymbol::Cast(nameBegin->GetTaggedObject())->GetDescription())); in SetFunctionNameNoPrefix()
Dtagged_dictionary.cpp27 auto symbolString = JSSymbol::Cast(key.GetTaggedObject()); in Hash()
/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.h275 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_map_test.cpp225 JSHandle<JSSymbol> symbolKey = thread->GetEcmaVM()->GetFactory()->NewJSSymbol(); in HWTEST_F_L0()
Dbuiltins_weak_set_test.cpp219 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/ecmascript/dfx/hprof/
Dheap_snapshot.cpp1112 JSSymbol *symbol = JSSymbol::Cast(key.GetTaggedObject()); in ConvertKey()

12