Lines Matching full:symbol
34 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()
124 BUILTINS_API_TRACE(argv->GetThread(), Symbol, ValueOf); in ValueOf()
129 // If Type(s) is Symbol, return s. in ValueOf()
149 // 19.4.2.1 Symbol.for (key)
153 BUILTINS_API_TRACE(argv->GetThread(), Symbol, For); in For()
163 // If SameValue(e.[[key]], stringKey) is true, return e.[[symbol]]. in For()
165 // 5.Let newSymbol be a new unique Symbol value whose [[Description]] value is stringKey. in For()
166 …// 6.Append the record { [[key]]: stringKey, [[symbol]]: newSymbol } to the GlobalSymbolRegistry L… in For()
169 JSHandle<JSSymbol> symbol = factory->NewSymbolWithTable(stringHandle); in For() local
170 return symbol.GetTaggedValue(); in For()
173 // 19.4.2.5 Symbol.keyFor (sym)
177 BUILTINS_API_TRACE(argv->GetThread(), Symbol, KeyFor); in KeyFor()
180 // 1.If Type(sym) is not Symbol, throw a TypeError exception. in KeyFor()
184 … THROW_TYPE_ERROR_AND_RETURN(thread, "KeyFor: sym is not Symbol", JSTaggedValue::Exception()); in KeyFor()
187 // If SameValue(e.[[symbol]], sym) is true, return e.[[key]]. in KeyFor()
199 // 19.4.3.4 Symbol.prototype [ @@toPrimitive ] ( hint )
204 BUILTINS_API_TRACE(argv->GetThread(), Symbol, ToPrimitive); in ToPrimitive()
209 // 2.If Type(s) is Symbol, return s. in ToPrimitive()
234 BUILTINS_API_TRACE(argv->GetThread(), Symbol, DescriptionGetter); in DescriptionGetter()
246 BUILTINS_API_TRACE(thread, Symbol, ThisSymbolValue); in ThisSymbolValue()
261 THROW_TYPE_ERROR_AND_RETURN(thread, "can not convert to Symbol", JSTaggedValue::Exception()); in ThisSymbolValue()