CommonIdentifiers.h [plain text]
#ifndef KJS_COMMON_IDENTIFIERS_H
#define KJS_COMMON_IDENTIFIERS_H
#include "identifier.h"
#include <wtf/Noncopyable.h>
#define KJS_COMMON_IDENTIFIERS_EACH_PROPERTY_NAME(macro) \
macro(arguments) \
macro(callee) \
macro(caller) \
macro(constructor) \
macro(fromCharCode) \
macro(global) \
macro(ignoreCase) \
macro(index) \
macro(input) \
macro(length) \
macro(message) \
macro(multiline) \
macro(name) \
macro(prototype) \
macro(source) \
macro(toExponential) \
macro(toFixed) \
macro(toLocaleString) \
macro(toPrecision) \
macro(toString) \
macro(valueOf)
namespace KJS {
class CommonIdentifiers : Noncopyable {
private:
CommonIdentifiers();
public:
static CommonIdentifiers* shared();
const Identifier nullIdentifier;
const Identifier underscoreProto;
#define KJS_IDENTIFIER_DECLARE_PROPERTY_NAME_GLOBAL(name) const Identifier name;
KJS_COMMON_IDENTIFIERS_EACH_PROPERTY_NAME(KJS_IDENTIFIER_DECLARE_PROPERTY_NAME_GLOBAL)
#undef KJS_IDENTIFIER_DECLARE_PROPERTY_NAME_GLOBAL
};
}
#endif // KJS_COMMON_IDENTIFIERS_H