Changeset 4206 in webkit for trunk/JavaScriptCore/kjs/identifier.h
- Timestamp:
- Apr 29, 2003, 11:26:29 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/identifier.h
r3745 r4206 30 30 friend class PropertyMap; 31 31 public: 32 static void init(); 33 32 34 Identifier() { } 33 35 Identifier(const char *s) : _ustring(add(s)) { } … … 99 101 { return Identifier::equal(a, b); } 100 102 101 extern const Identifier argumentsPropertyName; 102 extern const Identifier calleePropertyName; 103 extern const Identifier constructorPropertyName; 104 extern const Identifier lengthPropertyName; 105 extern const Identifier messagePropertyName; 106 extern const Identifier namePropertyName; 107 extern const Identifier prototypePropertyName; 108 extern const Identifier specialPrototypePropertyName; 109 extern const Identifier toLocaleStringPropertyName; 110 extern const Identifier toStringPropertyName; 111 extern const Identifier valueOfPropertyName; 103 // List of property names, passed to a macro so we can do set them up various 104 // ways without repeating the list. 105 #define KJS_IDENTIFIER_EACH_GLOBAL(macro) \ 106 macro(arguments) \ 107 macro(callee) \ 108 macro(constructor) \ 109 macro(length) \ 110 macro(message) \ 111 macro(name) \ 112 macro(prototype) \ 113 macro(toLocaleString) \ 114 macro(toString) \ 115 macro(valueOf) 116 117 // Define external global variables for all property names above (and one more). 118 #if !KJS_IDENTIFIER_HIDE_GLOBALS 119 #define KJS_IDENTIFIER_DECLARE_GLOBAL(name) extern const Identifier name ## PropertyName; 120 KJS_IDENTIFIER_EACH_GLOBAL(KJS_IDENTIFIER_DECLARE_GLOBAL) 121 KJS_IDENTIFIER_DECLARE_GLOBAL(specialPrototype) 122 #undef KJS_IDENTIFIER_DECLARE_GLOBAL 123 #endif 112 124 113 125 }
Note:
See TracChangeset
for help on using the changeset viewer.