michael@0: /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- michael@0: * vim: set ts=8 sts=4 et sw=4 tw=99: michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: /* A higher-order macro for enumerating all cached property names. */ michael@0: michael@0: #ifndef vm_CommonPropertyNames_h michael@0: #define vm_CommonPropertyNames_h michael@0: michael@0: #include "jsprototypes.h" michael@0: michael@0: #define FOR_EACH_COMMON_PROPERTYNAME(macro) \ michael@0: macro(anonymous, anonymous, "anonymous") \ michael@0: macro(Any, Any, "Any") \ michael@0: macro(apply, apply, "apply") \ michael@0: macro(arguments, arguments, "arguments") \ michael@0: macro(as, as, "as") \ michael@0: macro(ArrayIteratorNext, ArrayIteratorNext, "ArrayIteratorNext") \ michael@0: macro(ArrayType, ArrayType, "ArrayType") \ michael@0: macro(ArrayValues, ArrayValues, "ArrayValues") \ michael@0: macro(buffer, buffer, "buffer") \ michael@0: macro(builder, builder, "builder") \ michael@0: macro(byteLength, byteLength, "byteLength") \ michael@0: macro(byteAlignment, byteAlignment, "byteAlignment") \ michael@0: macro(byteOffset, byteOffset, "byteOffset") \ michael@0: macro(bytes, bytes, "bytes") \ michael@0: macro(BYTES_PER_ELEMENT, BYTES_PER_ELEMENT, "BYTES_PER_ELEMENT") \ michael@0: macro(call, call, "call") \ michael@0: macro(callee, callee, "callee") \ michael@0: macro(caller, caller, "caller") \ michael@0: macro(callFunction, callFunction, "callFunction") \ michael@0: macro(caseFirst, caseFirst, "caseFirst") \ michael@0: macro(Collator, Collator, "Collator") \ michael@0: macro(CollatorCompareGet, CollatorCompareGet, "Intl_Collator_compare_get") \ michael@0: macro(columnNumber, columnNumber, "columnNumber") \ michael@0: macro(comma, comma, ",") \ michael@0: macro(compare, compare, "compare") \ michael@0: macro(configurable, configurable, "configurable") \ michael@0: macro(construct, construct, "construct") \ michael@0: macro(constructor, constructor, "constructor") \ michael@0: macro(ConvertAndCopyTo, ConvertAndCopyTo, "ConvertAndCopyTo") \ michael@0: macro(currency, currency, "currency") \ michael@0: macro(currencyDisplay, currencyDisplay, "currencyDisplay") \ michael@0: macro(std_iterator, std_iterator, "@@iterator") \ michael@0: macro(DateTimeFormat, DateTimeFormat, "DateTimeFormat") \ michael@0: macro(DateTimeFormatFormatGet, DateTimeFormatFormatGet, "Intl_DateTimeFormat_format_get") \ michael@0: macro(decodeURI, decodeURI, "decodeURI") \ michael@0: macro(decodeURIComponent, decodeURIComponent, "decodeURIComponent") \ michael@0: macro(default_, default_, "default") \ michael@0: macro(defineProperty, defineProperty, "defineProperty") \ michael@0: macro(defineGetter, defineGetter, "__defineGetter__") \ michael@0: macro(defineSetter, defineSetter, "__defineSetter__") \ michael@0: macro(delete, delete_, "delete") \ michael@0: macro(deleteProperty, deleteProperty, "deleteProperty") \ michael@0: macro(displayURL, displayURL, "displayURL") \ michael@0: macro(done, done, "done") \ michael@0: macro(each, each, "each") \ michael@0: macro(elementType, elementType, "elementType") \ michael@0: macro(empty, empty, "") \ michael@0: macro(encodeURI, encodeURI, "encodeURI") \ michael@0: macro(encodeURIComponent, encodeURIComponent, "encodeURIComponent") \ michael@0: macro(enumerable, enumerable, "enumerable") \ michael@0: macro(enumerate, enumerate, "enumerate") \ michael@0: macro(escape, escape, "escape") \ michael@0: macro(eval, eval, "eval") \ michael@0: macro(false, false_, "false") \ michael@0: macro(fieldOffsets, fieldOffsets, "fieldOffsets") \ michael@0: macro(fieldTypes, fieldTypes, "fieldTypes") \ michael@0: macro(fileName, fileName, "fileName") \ michael@0: macro(FillTypedArrayWithValue, FillTypedArrayWithValue, "FillTypedArrayWithValue") \ michael@0: macro(fix, fix, "fix") \ michael@0: macro(float32, float32, "float32") \ michael@0: macro(float32x4, float32x4, "float32x4") \ michael@0: macro(float64, float64, "float64") \ michael@0: macro(format, format, "format") \ michael@0: macro(from, from, "from") \ michael@0: macro(get, get, "get") \ michael@0: macro(getInternals, getInternals, "getInternals") \ michael@0: macro(getOwnPropertyDescriptor, getOwnPropertyDescriptor, "getOwnPropertyDescriptor") \ michael@0: macro(getOwnPropertyNames, getOwnPropertyNames, "getOwnPropertyNames") \ michael@0: macro(getPropertyDescriptor, getPropertyDescriptor, "getPropertyDescriptor") \ michael@0: macro(global, global, "global") \ michael@0: macro(Handle, Handle, "Handle") \ michael@0: macro(has, has, "has") \ michael@0: macro(hasOwn, hasOwn, "hasOwn") \ michael@0: macro(hasOwnProperty, hasOwnProperty, "hasOwnProperty") \ michael@0: macro(ignoreCase, ignoreCase, "ignoreCase") \ michael@0: macro(ignorePunctuation, ignorePunctuation, "ignorePunctuation") \ michael@0: macro(index, index, "index") \ michael@0: macro(InitializeCollator, InitializeCollator, "InitializeCollator") \ michael@0: macro(InitializeDateTimeFormat, InitializeDateTimeFormat, "InitializeDateTimeFormat") \ michael@0: macro(InitializeNumberFormat, InitializeNumberFormat, "InitializeNumberFormat") \ michael@0: macro(innermost, innermost, "innermost") \ michael@0: macro(input, input, "input") \ michael@0: macro(int32x4, int32x4, "int32x4") \ michael@0: macro(isFinite, isFinite, "isFinite") \ michael@0: macro(isNaN, isNaN, "isNaN") \ michael@0: macro(isPrototypeOf, isPrototypeOf, "isPrototypeOf") \ michael@0: macro(iterate, iterate, "iterate") \ michael@0: macro(Infinity, Infinity, "Infinity") \ michael@0: macro(int8, int8, "int8") \ michael@0: macro(int16, int16, "int16") \ michael@0: macro(int32, int32, "int32") \ michael@0: macro(isExtensible, isExtensible, "isExtensible") \ michael@0: macro(iterator, iterator, "iterator") \ michael@0: macro(iteratorIntrinsic, iteratorIntrinsic, "__iterator__") \ michael@0: macro(join, join, "join") \ michael@0: macro(keys, keys, "keys") \ michael@0: macro(lastIndex, lastIndex, "lastIndex") \ michael@0: macro(length, length, "length") \ michael@0: macro(let, let, "let") \ michael@0: macro(line, line, "line") \ michael@0: macro(lineNumber, lineNumber, "lineNumber") \ michael@0: macro(loc, loc, "loc") \ michael@0: macro(locale, locale, "locale") \ michael@0: macro(lookupGetter, lookupGetter, "__lookupGetter__") \ michael@0: macro(lookupSetter, lookupSetter, "__lookupSetter__") \ michael@0: macro(maximumFractionDigits, maximumFractionDigits, "maximumFractionDigits") \ michael@0: macro(maximumSignificantDigits, maximumSignificantDigits, "maximumSignificantDigits") \ michael@0: macro(message, message, "message") \ michael@0: macro(minimumFractionDigits, minimumFractionDigits, "minimumFractionDigits") \ michael@0: macro(minimumIntegerDigits, minimumIntegerDigits, "minimumIntegerDigits") \ michael@0: macro(minimumSignificantDigits, minimumSignificantDigits, "minimumSignificantDigits") \ michael@0: macro(module, module, "module") \ michael@0: macro(multiline, multiline, "multiline") \ michael@0: macro(name, name, "name") \ michael@0: macro(NaN, NaN, "NaN") \ michael@0: macro(next, next, "next") \ michael@0: macro(NFC, NFC, "NFC") \ michael@0: macro(NFD, NFD, "NFD") \ michael@0: macro(NFKC, NFKC, "NFKC") \ michael@0: macro(NFKD, NFKD, "NFKD") \ michael@0: macro(noSuchMethod, noSuchMethod, "__noSuchMethod__") \ michael@0: macro(NumberFormat, NumberFormat, "NumberFormat") \ michael@0: macro(NumberFormatFormatGet, NumberFormatFormatGet, "Intl_NumberFormat_format_get") \ michael@0: macro(numeric, numeric, "numeric") \ michael@0: macro(objectArray, objectArray, "[object Array]") \ michael@0: macro(objectFunction, objectFunction, "[object Function]") \ michael@0: macro(objectNull, objectNull, "[object Null]") \ michael@0: macro(objectNumber, objectNumber, "[object Number]") \ michael@0: macro(objectObject, objectObject, "[object Object]") \ michael@0: macro(objectString, objectString, "[object String]") \ michael@0: macro(objectUndefined, objectUndefined, "[object Undefined]") \ michael@0: macro(objectWindow, objectWindow, "[object Window]") \ michael@0: macro(of, of, "of") \ michael@0: macro(offset, offset, "offset") \ michael@0: macro(optimizedOut, optimizedOut, "optimizedOut") \ michael@0: macro(missingArguments, missingArguments, "missingArguments") \ michael@0: macro(outOfMemory, outOfMemory, "out of memory") \ michael@0: macro(parseFloat, parseFloat, "parseFloat") \ michael@0: macro(parseInt, parseInt, "parseInt") \ michael@0: macro(pattern, pattern, "pattern") \ michael@0: macro(preventExtensions, preventExtensions, "preventExtensions") \ michael@0: macro(propertyIsEnumerable, propertyIsEnumerable, "propertyIsEnumerable") \ michael@0: macro(proto, proto, "__proto__") \ michael@0: macro(prototype, prototype, "prototype") \ michael@0: macro(Reify, Reify, "Reify") \ michael@0: macro(return, return_, "return") \ michael@0: macro(sensitivity, sensitivity, "sensitivity") \ michael@0: macro(set, set, "set") \ michael@0: macro(shape, shape, "shape") \ michael@0: macro(source, source, "source") \ michael@0: macro(stack, stack, "stack") \ michael@0: macro(sticky, sticky, "sticky") \ michael@0: macro(StructType, StructType, "StructType") \ michael@0: macro(style, style, "style") \ michael@0: macro(test, test, "test") \ michael@0: macro(throw, throw_, "throw") \ michael@0: macro(timeZone, timeZone, "timeZone") \ michael@0: macro(toGMTString, toGMTString, "toGMTString") \ michael@0: macro(toISOString, toISOString, "toISOString") \ michael@0: macro(toJSON, toJSON, "toJSON") \ michael@0: macro(toLocaleString, toLocaleString, "toLocaleString") \ michael@0: macro(toSource, toSource, "toSource") \ michael@0: macro(toString, toString, "toString") \ michael@0: macro(toUTCString, toUTCString, "toUTCString") \ michael@0: macro(true, true_, "true") \ michael@0: macro(unescape, unescape, "unescape") \ michael@0: macro(uneval, uneval, "uneval") \ michael@0: macro(uint8, uint8, "uint8") \ michael@0: macro(uint8Clamped, uint8Clamped, "uint8Clamped") \ michael@0: macro(uint16, uint16, "uint16") \ michael@0: macro(uint32, uint32, "uint32") \ michael@0: macro(unsized, unsized, "unsized") \ michael@0: macro(unwatch, unwatch, "unwatch") \ michael@0: macro(url, url, "url") \ michael@0: macro(usage, usage, "usage") \ michael@0: macro(useGrouping, useGrouping, "useGrouping") \ michael@0: macro(useAsm, useAsm, "use asm") \ michael@0: macro(useStrict, useStrict, "use strict") \ michael@0: macro(value, value, "value") \ michael@0: macro(valueOf, valueOf, "valueOf") \ michael@0: macro(var, var, "var") \ michael@0: macro(variable, variable, "variable") \ michael@0: macro(void0, void0, "(void 0)") \ michael@0: macro(watch, watch, "watch") \ michael@0: macro(writable, writable, "writable") \ michael@0: macro(w, w, "w") \ michael@0: macro(x, x, "x") \ michael@0: macro(y, y, "y") \ michael@0: macro(yield, yield, "yield") \ michael@0: macro(z, z, "z") \ michael@0: /* Type names must be contiguous and ordered; see js::TypeName. */ \ michael@0: macro(undefined, undefined, "undefined") \ michael@0: macro(object, object, "object") \ michael@0: macro(function, function, "function") \ michael@0: macro(string, string, "string") \ michael@0: macro(number, number, "number") \ michael@0: macro(boolean, boolean, "boolean") \ michael@0: macro(null, null, "null") michael@0: michael@0: #endif /* vm_CommonPropertyNames_h */