Home
last modified time | relevance | path

Searched full:symbol (Results 1 – 25 of 192) sorted by relevance

12345678

/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_symbol_test.cpp37 using Symbol = ecmascript::builtins::BuiltinsSymbol; typedef
67 // new Symbol.toString()
72 JSHandle<JSSymbol> symbol = ecmaVM->GetFactory()->NewJSSymbol(); in HWTEST_F_L0() local
76 ecmaRuntimeCallInfo->SetThis(symbol.GetTaggedValue()); in HWTEST_F_L0()
79 JSTaggedValue result = Symbol::ToString(ecmaRuntimeCallInfo); in HWTEST_F_L0()
84 auto symbolValue = ecmaVM->GetFactory()->NewFromASCII("Symbol()"); in HWTEST_F_L0()
93 result = Symbol::ToString(ecmaRuntimeCallInfo); in HWTEST_F_L0()
99 // No Symbol data in HWTEST_F_L0()
107 result = Symbol::ToString(ecmaRuntimeCallInfo); in HWTEST_F_L0()
114 // new Symbol("aaa").toString()
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_symbol.cpp34 BUILTINS_API_TRACE(argv->GetThread(), Symbol, Constructor); in SymbolConstructor()
54 // 5.Return a new unique Symbol value whose [[Description]] value is descString. in SymbolConstructor()
59 // 19.4.3.2 Symbol.prototype.toString()
63 BUILTINS_API_TRACE(argv->GetThread(), Symbol, ToString); in ToString()
68 // 2.If Type(s) is Symbol, let sym be s. in ToString()
92 BUILTINS_API_TRACE(thread, Symbol, SymbolDescriptiveString); in SymbolDescriptiveString()
93 // Assert: Type(sym) is Symbol. in SymbolDescriptiveString()
104 JSHandle<EcmaString> leftHandle(factory->NewFromASCII("Symbol(")); in SymbolDescriptiveString()
111 // Return the result of concatenating the strings "Symbol(", desc, and ")". in SymbolDescriptiveString()
112 JSHandle<EcmaString> leftHandle(factory->NewFromASCII("Symbol(")); in SymbolDescriptiveString()
[all …]
Dbuiltins_symbol.h34 // 19.4.2.1 Symbol.for (key)
36 // 19.4.2.5 Symbol.keyFor (sym)
39 // 19.4.3.2 get Symbol.prototype.description
/arkcompiler/toolchain/inspector/
Dlibrary_loader.cpp45 void* ResolveSymbol(void* handle, std::string_view symbol) in ResolveSymbol() argument
48 void* addr = reinterpret_cast<void*>(GetProcAddress(module, symbol.data())); in ResolveSymbol()
52 LOGE("Failed to get symbol:%{public}s, reason:%{public}s", symbol.data(), in ResolveSymbol()
74 void* ResolveSymbol(void* handle, std::string_view symbol)
76 void* addr = dlsym(handle, symbol.data());
80 LOGE("Failed to get symbol:%{public}s, reason:%{public}sn", symbol.data(), dlerror());
/arkcompiler/runtime_core/irtoc/lang/
Dregmask.rb45 if value.is_a?(Symbol)
46 raise "RegMask is initialized with symbol, but Regmap wasn't specified" unless @regmap
72 position = @regmap[position] if position.is_a? Symbol
82 position = @regmap[position] if position.is_a? Symbol
95 elsif other.is_a? Symbol
96 raise "Symbol argument is only allowed if Regmap was specified" unless @regmap
113 elsif other.is_a? Symbol
114 raise "Symbol argument is only allowed if Regmap was specified" unless @regmap
/arkcompiler/ets_runtime/ecmascript/ts_types/
Dlib_ark_builtins.d.ts46 [Symbol.iterator](): Iterator;
50 [Symbol.iterator](): IterableIterator;
96 hasOwnProperty(key: string | number | symbol): boolean;
100 propertyIsEnumerable(key: string | number | symbol): boolean;
112 …static getOwnPropertyDescriptor(o: any, key: string | number | symbol): PropertyDescriptor | undef…
116 static getOwnPropertySymbols(o: any): symbol[];
156 // [Symbol.hasInstance](value: any): boolean;
298 // 1. [Symbol.toPrimitive](hint: "default"): string;
299 // 2. [Symbol.toPrimitive](hint: "string"): string;
300 // 3. [Symbol.toPrimitive](hint: "number"): number;
[all …]
/arkcompiler/ets_runtime/test/typeinfer/builtins/
Dbuiltins.ts19 let it = anyArr[Symbol.iterator]();
30 AssertType(Object.getOwnPropertySymbols({})[0], "symbol");
216 // Symbol
217 let sym = Symbol.prototype;
219 AssertType(sym.valueOf(), "symbol");
221 AssertType(Symbol.for("11"), "symbol");
222 AssertType(Symbol.keyFor(Symbol.iterator), "union");
223 AssertType(Symbol.iterator, "symbol");
224 AssertType(Symbol.prototype, "Symbol");
/arkcompiler/ets_frontend/ts2panda/src/
Dpandasm.ts184 private symbol: string; property in ExportedSymbol2Type
188 constructor(symbol: string, type: number) {
189 this.symbol = symbol;
196 private symbol: string; property in DeclaredSymbol2Type
200 constructor(symbol: string, type: number) {
201 this.symbol = symbol;
/arkcompiler/ets_runtime/ecmascript/deoptimizer/
Drelocator.cpp24 std::optional<Elf64_Word> Relocator::GetSymbol(const char* symbol) const in GetSymbol()
33 if (std::strcmp(symbol, name) == 0) { in GetSymbol()
50 S: (when used on its own) is the address of the symbol in Relocate()
64 S: (when used on its own) is the address of the symbol in Relocate()
111 bool Relocator::RelocateBySymbol(const char* symbol, uintptr_t patchAddr) in RelocateBySymbol() argument
116 auto symId = GetSymbol(symbol); in RelocateBySymbol()
118 LOG_COMPILER(DEBUG) << " don't find symbol:" << symbol << " in symbol table."; in RelocateBySymbol()
Drelocator.h46 PUBLIC_API bool RelocateBySymbol(const char* symbol, uintptr_t patchAddr);
52 std::optional<Elf64_Word> GetSymbol(const char* symbol) const;
68 // symbol table entries.
/arkcompiler/ets_runtime/test/moduletest/spreadoperator/
Dspreadoperator.js61 // test change Symbol.iterator
68 Map.prototype[Symbol.iterator] = iterFunc;
76 Set.prototype[Symbol.iterator] = iterFunc;
81 Uint8Array.prototype[Symbol.iterator] = iterFunc;
107 Array.prototype[Symbol.iterator] = function* () {
/arkcompiler/ets_runtime/test/moduletest/asyncgenerator/
Dasyncgeneratoryieldstar.js26 get [Symbol.iterator]() {
27 throw new Error('it should not get Symbol.iterator');
29 [Symbol.asyncIterator]() {
/arkcompiler/runtime_core/libark_defect_scan_aux/tests/unittest/
Ddefine_info_test.js49 let symbol = Symbol('func8'); variable
58 [symbol]() { }
/arkcompiler/ets_frontend/es2panda/typescript/types/
DtypeFlag.h44 SYMBOL = 1ULL << 17, // x: symbol enumerator
61 COMPUTED_NAME = COMPUTED_TYPE_LITERAL_NAME | STRING | NUMBER | ANY | SYMBOL,
74 …PRIMITIVE = STRING | NUMBER | BIGINT | BOOLEAN | ENUM | ENUM_LITERAL | SYMBOL | VOID | UNDEFINED |…
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest-ts-unique-symbol-type.ts17 const s2 : unique symbol = Symbol(); constant
Dtest-ts-symbol-type.ts17 var s : symbol = Symbol("foo");
/arkcompiler/ets_frontend/ts2panda/tests/types/union/
Dunion_primitives.ts18 let str: string | symbol = "myStr";
20 let full: number | boolean | string | symbol | undefined | null;
/arkcompiler/ets_frontend/ts2panda/tests/types/primitives/
Dprimitives_in_class.ts21 sym: symbol = Symbol("mySym");
Dprimitives_in_block.ts20 let sym: symbol = Symbol("mySym");
Dprimitives_in_function.ts20 let sym: symbol = Symbol("mySym");
Dprimitives_in_if.ts20 let sym: symbol = Symbol("mySym");
Dprimitives_in_for.ts20 let sym: symbol = Symbol("mySym");
/arkcompiler/runtime_core/libpandabase/utils/
Djson_parser.cpp240 auto symbol = PeekSymbol(); in GetValue() local
243 switch (symbol) { in GetValue()
349 bool JsonObject::Parser::TryGetSymbol(int symbol) in TryGetSymbol() argument
351 ASSERT(!IsWhitespace(symbol)); in TryGetSymbol()
352 if (static_cast<char>(symbol) != GetSymbol()) { in TryGetSymbol()
359 bool JsonObject::Parser::IsWhitespace(int symbol) in IsWhitespace() argument
361 return bool(std::isspace(static_cast<unsigned char>(symbol))); in IsWhitespace()
/arkcompiler/ets_frontend/ts2panda/tests/types/array/
Darray_multi_same_primi.ts23 let sym1: symbol[];
24 let sym2: symbol[];
/arkcompiler/ets_frontend/es2panda/util/
DsymbolTable.cpp30 …std::cerr << "Failed to read symbol table: " << symbolTable_ << ". Stop generating patch" << std::… in Initialize()
39 std::cerr << "Failed to create output symbol table: " << dumpSymbolTable_ << std::endl; in Initialize()
54 std::cerr << "Failed to open symbol table: " << symbolTable << std::endl; in ReadSymbolTable()
87 std::cerr << "Failed to read symbol table: Unrecognized format" << std::endl; in ReadSymbolTable()

12345678