1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/vm/CommonPropertyNames.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,214 @@ 1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- 1.5 + * vim: set ts=8 sts=4 et sw=4 tw=99: 1.6 + * This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +/* A higher-order macro for enumerating all cached property names. */ 1.11 + 1.12 +#ifndef vm_CommonPropertyNames_h 1.13 +#define vm_CommonPropertyNames_h 1.14 + 1.15 +#include "jsprototypes.h" 1.16 + 1.17 +#define FOR_EACH_COMMON_PROPERTYNAME(macro) \ 1.18 + macro(anonymous, anonymous, "anonymous") \ 1.19 + macro(Any, Any, "Any") \ 1.20 + macro(apply, apply, "apply") \ 1.21 + macro(arguments, arguments, "arguments") \ 1.22 + macro(as, as, "as") \ 1.23 + macro(ArrayIteratorNext, ArrayIteratorNext, "ArrayIteratorNext") \ 1.24 + macro(ArrayType, ArrayType, "ArrayType") \ 1.25 + macro(ArrayValues, ArrayValues, "ArrayValues") \ 1.26 + macro(buffer, buffer, "buffer") \ 1.27 + macro(builder, builder, "builder") \ 1.28 + macro(byteLength, byteLength, "byteLength") \ 1.29 + macro(byteAlignment, byteAlignment, "byteAlignment") \ 1.30 + macro(byteOffset, byteOffset, "byteOffset") \ 1.31 + macro(bytes, bytes, "bytes") \ 1.32 + macro(BYTES_PER_ELEMENT, BYTES_PER_ELEMENT, "BYTES_PER_ELEMENT") \ 1.33 + macro(call, call, "call") \ 1.34 + macro(callee, callee, "callee") \ 1.35 + macro(caller, caller, "caller") \ 1.36 + macro(callFunction, callFunction, "callFunction") \ 1.37 + macro(caseFirst, caseFirst, "caseFirst") \ 1.38 + macro(Collator, Collator, "Collator") \ 1.39 + macro(CollatorCompareGet, CollatorCompareGet, "Intl_Collator_compare_get") \ 1.40 + macro(columnNumber, columnNumber, "columnNumber") \ 1.41 + macro(comma, comma, ",") \ 1.42 + macro(compare, compare, "compare") \ 1.43 + macro(configurable, configurable, "configurable") \ 1.44 + macro(construct, construct, "construct") \ 1.45 + macro(constructor, constructor, "constructor") \ 1.46 + macro(ConvertAndCopyTo, ConvertAndCopyTo, "ConvertAndCopyTo") \ 1.47 + macro(currency, currency, "currency") \ 1.48 + macro(currencyDisplay, currencyDisplay, "currencyDisplay") \ 1.49 + macro(std_iterator, std_iterator, "@@iterator") \ 1.50 + macro(DateTimeFormat, DateTimeFormat, "DateTimeFormat") \ 1.51 + macro(DateTimeFormatFormatGet, DateTimeFormatFormatGet, "Intl_DateTimeFormat_format_get") \ 1.52 + macro(decodeURI, decodeURI, "decodeURI") \ 1.53 + macro(decodeURIComponent, decodeURIComponent, "decodeURIComponent") \ 1.54 + macro(default_, default_, "default") \ 1.55 + macro(defineProperty, defineProperty, "defineProperty") \ 1.56 + macro(defineGetter, defineGetter, "__defineGetter__") \ 1.57 + macro(defineSetter, defineSetter, "__defineSetter__") \ 1.58 + macro(delete, delete_, "delete") \ 1.59 + macro(deleteProperty, deleteProperty, "deleteProperty") \ 1.60 + macro(displayURL, displayURL, "displayURL") \ 1.61 + macro(done, done, "done") \ 1.62 + macro(each, each, "each") \ 1.63 + macro(elementType, elementType, "elementType") \ 1.64 + macro(empty, empty, "") \ 1.65 + macro(encodeURI, encodeURI, "encodeURI") \ 1.66 + macro(encodeURIComponent, encodeURIComponent, "encodeURIComponent") \ 1.67 + macro(enumerable, enumerable, "enumerable") \ 1.68 + macro(enumerate, enumerate, "enumerate") \ 1.69 + macro(escape, escape, "escape") \ 1.70 + macro(eval, eval, "eval") \ 1.71 + macro(false, false_, "false") \ 1.72 + macro(fieldOffsets, fieldOffsets, "fieldOffsets") \ 1.73 + macro(fieldTypes, fieldTypes, "fieldTypes") \ 1.74 + macro(fileName, fileName, "fileName") \ 1.75 + macro(FillTypedArrayWithValue, FillTypedArrayWithValue, "FillTypedArrayWithValue") \ 1.76 + macro(fix, fix, "fix") \ 1.77 + macro(float32, float32, "float32") \ 1.78 + macro(float32x4, float32x4, "float32x4") \ 1.79 + macro(float64, float64, "float64") \ 1.80 + macro(format, format, "format") \ 1.81 + macro(from, from, "from") \ 1.82 + macro(get, get, "get") \ 1.83 + macro(getInternals, getInternals, "getInternals") \ 1.84 + macro(getOwnPropertyDescriptor, getOwnPropertyDescriptor, "getOwnPropertyDescriptor") \ 1.85 + macro(getOwnPropertyNames, getOwnPropertyNames, "getOwnPropertyNames") \ 1.86 + macro(getPropertyDescriptor, getPropertyDescriptor, "getPropertyDescriptor") \ 1.87 + macro(global, global, "global") \ 1.88 + macro(Handle, Handle, "Handle") \ 1.89 + macro(has, has, "has") \ 1.90 + macro(hasOwn, hasOwn, "hasOwn") \ 1.91 + macro(hasOwnProperty, hasOwnProperty, "hasOwnProperty") \ 1.92 + macro(ignoreCase, ignoreCase, "ignoreCase") \ 1.93 + macro(ignorePunctuation, ignorePunctuation, "ignorePunctuation") \ 1.94 + macro(index, index, "index") \ 1.95 + macro(InitializeCollator, InitializeCollator, "InitializeCollator") \ 1.96 + macro(InitializeDateTimeFormat, InitializeDateTimeFormat, "InitializeDateTimeFormat") \ 1.97 + macro(InitializeNumberFormat, InitializeNumberFormat, "InitializeNumberFormat") \ 1.98 + macro(innermost, innermost, "innermost") \ 1.99 + macro(input, input, "input") \ 1.100 + macro(int32x4, int32x4, "int32x4") \ 1.101 + macro(isFinite, isFinite, "isFinite") \ 1.102 + macro(isNaN, isNaN, "isNaN") \ 1.103 + macro(isPrototypeOf, isPrototypeOf, "isPrototypeOf") \ 1.104 + macro(iterate, iterate, "iterate") \ 1.105 + macro(Infinity, Infinity, "Infinity") \ 1.106 + macro(int8, int8, "int8") \ 1.107 + macro(int16, int16, "int16") \ 1.108 + macro(int32, int32, "int32") \ 1.109 + macro(isExtensible, isExtensible, "isExtensible") \ 1.110 + macro(iterator, iterator, "iterator") \ 1.111 + macro(iteratorIntrinsic, iteratorIntrinsic, "__iterator__") \ 1.112 + macro(join, join, "join") \ 1.113 + macro(keys, keys, "keys") \ 1.114 + macro(lastIndex, lastIndex, "lastIndex") \ 1.115 + macro(length, length, "length") \ 1.116 + macro(let, let, "let") \ 1.117 + macro(line, line, "line") \ 1.118 + macro(lineNumber, lineNumber, "lineNumber") \ 1.119 + macro(loc, loc, "loc") \ 1.120 + macro(locale, locale, "locale") \ 1.121 + macro(lookupGetter, lookupGetter, "__lookupGetter__") \ 1.122 + macro(lookupSetter, lookupSetter, "__lookupSetter__") \ 1.123 + macro(maximumFractionDigits, maximumFractionDigits, "maximumFractionDigits") \ 1.124 + macro(maximumSignificantDigits, maximumSignificantDigits, "maximumSignificantDigits") \ 1.125 + macro(message, message, "message") \ 1.126 + macro(minimumFractionDigits, minimumFractionDigits, "minimumFractionDigits") \ 1.127 + macro(minimumIntegerDigits, minimumIntegerDigits, "minimumIntegerDigits") \ 1.128 + macro(minimumSignificantDigits, minimumSignificantDigits, "minimumSignificantDigits") \ 1.129 + macro(module, module, "module") \ 1.130 + macro(multiline, multiline, "multiline") \ 1.131 + macro(name, name, "name") \ 1.132 + macro(NaN, NaN, "NaN") \ 1.133 + macro(next, next, "next") \ 1.134 + macro(NFC, NFC, "NFC") \ 1.135 + macro(NFD, NFD, "NFD") \ 1.136 + macro(NFKC, NFKC, "NFKC") \ 1.137 + macro(NFKD, NFKD, "NFKD") \ 1.138 + macro(noSuchMethod, noSuchMethod, "__noSuchMethod__") \ 1.139 + macro(NumberFormat, NumberFormat, "NumberFormat") \ 1.140 + macro(NumberFormatFormatGet, NumberFormatFormatGet, "Intl_NumberFormat_format_get") \ 1.141 + macro(numeric, numeric, "numeric") \ 1.142 + macro(objectArray, objectArray, "[object Array]") \ 1.143 + macro(objectFunction, objectFunction, "[object Function]") \ 1.144 + macro(objectNull, objectNull, "[object Null]") \ 1.145 + macro(objectNumber, objectNumber, "[object Number]") \ 1.146 + macro(objectObject, objectObject, "[object Object]") \ 1.147 + macro(objectString, objectString, "[object String]") \ 1.148 + macro(objectUndefined, objectUndefined, "[object Undefined]") \ 1.149 + macro(objectWindow, objectWindow, "[object Window]") \ 1.150 + macro(of, of, "of") \ 1.151 + macro(offset, offset, "offset") \ 1.152 + macro(optimizedOut, optimizedOut, "optimizedOut") \ 1.153 + macro(missingArguments, missingArguments, "missingArguments") \ 1.154 + macro(outOfMemory, outOfMemory, "out of memory") \ 1.155 + macro(parseFloat, parseFloat, "parseFloat") \ 1.156 + macro(parseInt, parseInt, "parseInt") \ 1.157 + macro(pattern, pattern, "pattern") \ 1.158 + macro(preventExtensions, preventExtensions, "preventExtensions") \ 1.159 + macro(propertyIsEnumerable, propertyIsEnumerable, "propertyIsEnumerable") \ 1.160 + macro(proto, proto, "__proto__") \ 1.161 + macro(prototype, prototype, "prototype") \ 1.162 + macro(Reify, Reify, "Reify") \ 1.163 + macro(return, return_, "return") \ 1.164 + macro(sensitivity, sensitivity, "sensitivity") \ 1.165 + macro(set, set, "set") \ 1.166 + macro(shape, shape, "shape") \ 1.167 + macro(source, source, "source") \ 1.168 + macro(stack, stack, "stack") \ 1.169 + macro(sticky, sticky, "sticky") \ 1.170 + macro(StructType, StructType, "StructType") \ 1.171 + macro(style, style, "style") \ 1.172 + macro(test, test, "test") \ 1.173 + macro(throw, throw_, "throw") \ 1.174 + macro(timeZone, timeZone, "timeZone") \ 1.175 + macro(toGMTString, toGMTString, "toGMTString") \ 1.176 + macro(toISOString, toISOString, "toISOString") \ 1.177 + macro(toJSON, toJSON, "toJSON") \ 1.178 + macro(toLocaleString, toLocaleString, "toLocaleString") \ 1.179 + macro(toSource, toSource, "toSource") \ 1.180 + macro(toString, toString, "toString") \ 1.181 + macro(toUTCString, toUTCString, "toUTCString") \ 1.182 + macro(true, true_, "true") \ 1.183 + macro(unescape, unescape, "unescape") \ 1.184 + macro(uneval, uneval, "uneval") \ 1.185 + macro(uint8, uint8, "uint8") \ 1.186 + macro(uint8Clamped, uint8Clamped, "uint8Clamped") \ 1.187 + macro(uint16, uint16, "uint16") \ 1.188 + macro(uint32, uint32, "uint32") \ 1.189 + macro(unsized, unsized, "unsized") \ 1.190 + macro(unwatch, unwatch, "unwatch") \ 1.191 + macro(url, url, "url") \ 1.192 + macro(usage, usage, "usage") \ 1.193 + macro(useGrouping, useGrouping, "useGrouping") \ 1.194 + macro(useAsm, useAsm, "use asm") \ 1.195 + macro(useStrict, useStrict, "use strict") \ 1.196 + macro(value, value, "value") \ 1.197 + macro(valueOf, valueOf, "valueOf") \ 1.198 + macro(var, var, "var") \ 1.199 + macro(variable, variable, "variable") \ 1.200 + macro(void0, void0, "(void 0)") \ 1.201 + macro(watch, watch, "watch") \ 1.202 + macro(writable, writable, "writable") \ 1.203 + macro(w, w, "w") \ 1.204 + macro(x, x, "x") \ 1.205 + macro(y, y, "y") \ 1.206 + macro(yield, yield, "yield") \ 1.207 + macro(z, z, "z") \ 1.208 + /* Type names must be contiguous and ordered; see js::TypeName. */ \ 1.209 + macro(undefined, undefined, "undefined") \ 1.210 + macro(object, object, "object") \ 1.211 + macro(function, function, "function") \ 1.212 + macro(string, string, "string") \ 1.213 + macro(number, number, "number") \ 1.214 + macro(boolean, boolean, "boolean") \ 1.215 + macro(null, null, "null") 1.216 + 1.217 +#endif /* vm_CommonPropertyNames_h */