Home | History | Annotate | Download | only in runtime

Lines Matching refs:Identifier

33     class Identifier {
36 Identifier() { }
38 Identifier(ExecState* exec, const char* s) : m_string(add(exec, s)) { } // Only to be used with string literals.
39 Identifier(ExecState* exec, const UChar* s, int length) : m_string(add(exec, s, length)) { }
40 Identifier(ExecState* exec, StringImpl* rep) : m_string(add(exec, rep)) { }
41 Identifier(ExecState* exec, const UString& s) : m_string(add(exec, s.impl())) { }
43 Identifier(JSGlobalData* globalData, const char* s) : m_string(add(globalData, s)) { } // Only to be used with string literals.
44 Identifier(JSGlobalData* globalData, const UChar* s, int length) : m_string(add(globalData, s, length)) { }
45 Identifier(JSGlobalData* globalData, StringImpl* rep) : m_string(add(globalData, rep)) { }
46 Identifier(JSGlobalData* globalData, const UString& s) : m_string(add(globalData, s.impl())) { }
56 static Identifier from(ExecState* exec, unsigned y);
57 static Identifier from(ExecState* exec, int y);
58 static Identifier from(ExecState* exec, double y);
59 static Identifier from(JSGlobalData*, unsigned y);
60 static Identifier from(JSGlobalData*, int y);
61 static Identifier from(JSGlobalData*, double y);
70 friend bool operator==(const Identifier&, const Identifier&);
71 friend bool operator!=(const Identifier&, const Identifier&);
73 friend bool operator==(const Identifier&, const char*);
74 friend bool operator!=(const Identifier&, const char*);
86 static bool equal(const Identifier& a, const Identifier& b) { return a.m_string.impl() == b.m_string.impl(); }
87 static bool equal(const Identifier& a, const char* b) { return equal(a.m_string.impl(), b); }
118 inline bool operator==(const Identifier& a, const Identifier& b)
120 return Identifier::equal(a, b);
123 inline bool operator!=(const Identifier& a, const Identifier& b)
125 return !Identifier::equal(a, b);
128 inline bool operator==(const Identifier& a, const char* b)
130 return Identifier::equal(a, b);
133 inline bool operator!=(const Identifier& a, const char* b)
135 return !Identifier::equal(a, b);