Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- |
michael@0 | 2 | * vim: set ts=8 sts=4 et sw=4 tw=99: |
michael@0 | 3 | * This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 6 | |
michael@0 | 7 | /* A higher-order macro for enumerating all cached property names. */ |
michael@0 | 8 | |
michael@0 | 9 | #ifndef vm_CommonPropertyNames_h |
michael@0 | 10 | #define vm_CommonPropertyNames_h |
michael@0 | 11 | |
michael@0 | 12 | #include "jsprototypes.h" |
michael@0 | 13 | |
michael@0 | 14 | #define FOR_EACH_COMMON_PROPERTYNAME(macro) \ |
michael@0 | 15 | macro(anonymous, anonymous, "anonymous") \ |
michael@0 | 16 | macro(Any, Any, "Any") \ |
michael@0 | 17 | macro(apply, apply, "apply") \ |
michael@0 | 18 | macro(arguments, arguments, "arguments") \ |
michael@0 | 19 | macro(as, as, "as") \ |
michael@0 | 20 | macro(ArrayIteratorNext, ArrayIteratorNext, "ArrayIteratorNext") \ |
michael@0 | 21 | macro(ArrayType, ArrayType, "ArrayType") \ |
michael@0 | 22 | macro(ArrayValues, ArrayValues, "ArrayValues") \ |
michael@0 | 23 | macro(buffer, buffer, "buffer") \ |
michael@0 | 24 | macro(builder, builder, "builder") \ |
michael@0 | 25 | macro(byteLength, byteLength, "byteLength") \ |
michael@0 | 26 | macro(byteAlignment, byteAlignment, "byteAlignment") \ |
michael@0 | 27 | macro(byteOffset, byteOffset, "byteOffset") \ |
michael@0 | 28 | macro(bytes, bytes, "bytes") \ |
michael@0 | 29 | macro(BYTES_PER_ELEMENT, BYTES_PER_ELEMENT, "BYTES_PER_ELEMENT") \ |
michael@0 | 30 | macro(call, call, "call") \ |
michael@0 | 31 | macro(callee, callee, "callee") \ |
michael@0 | 32 | macro(caller, caller, "caller") \ |
michael@0 | 33 | macro(callFunction, callFunction, "callFunction") \ |
michael@0 | 34 | macro(caseFirst, caseFirst, "caseFirst") \ |
michael@0 | 35 | macro(Collator, Collator, "Collator") \ |
michael@0 | 36 | macro(CollatorCompareGet, CollatorCompareGet, "Intl_Collator_compare_get") \ |
michael@0 | 37 | macro(columnNumber, columnNumber, "columnNumber") \ |
michael@0 | 38 | macro(comma, comma, ",") \ |
michael@0 | 39 | macro(compare, compare, "compare") \ |
michael@0 | 40 | macro(configurable, configurable, "configurable") \ |
michael@0 | 41 | macro(construct, construct, "construct") \ |
michael@0 | 42 | macro(constructor, constructor, "constructor") \ |
michael@0 | 43 | macro(ConvertAndCopyTo, ConvertAndCopyTo, "ConvertAndCopyTo") \ |
michael@0 | 44 | macro(currency, currency, "currency") \ |
michael@0 | 45 | macro(currencyDisplay, currencyDisplay, "currencyDisplay") \ |
michael@0 | 46 | macro(std_iterator, std_iterator, "@@iterator") \ |
michael@0 | 47 | macro(DateTimeFormat, DateTimeFormat, "DateTimeFormat") \ |
michael@0 | 48 | macro(DateTimeFormatFormatGet, DateTimeFormatFormatGet, "Intl_DateTimeFormat_format_get") \ |
michael@0 | 49 | macro(decodeURI, decodeURI, "decodeURI") \ |
michael@0 | 50 | macro(decodeURIComponent, decodeURIComponent, "decodeURIComponent") \ |
michael@0 | 51 | macro(default_, default_, "default") \ |
michael@0 | 52 | macro(defineProperty, defineProperty, "defineProperty") \ |
michael@0 | 53 | macro(defineGetter, defineGetter, "__defineGetter__") \ |
michael@0 | 54 | macro(defineSetter, defineSetter, "__defineSetter__") \ |
michael@0 | 55 | macro(delete, delete_, "delete") \ |
michael@0 | 56 | macro(deleteProperty, deleteProperty, "deleteProperty") \ |
michael@0 | 57 | macro(displayURL, displayURL, "displayURL") \ |
michael@0 | 58 | macro(done, done, "done") \ |
michael@0 | 59 | macro(each, each, "each") \ |
michael@0 | 60 | macro(elementType, elementType, "elementType") \ |
michael@0 | 61 | macro(empty, empty, "") \ |
michael@0 | 62 | macro(encodeURI, encodeURI, "encodeURI") \ |
michael@0 | 63 | macro(encodeURIComponent, encodeURIComponent, "encodeURIComponent") \ |
michael@0 | 64 | macro(enumerable, enumerable, "enumerable") \ |
michael@0 | 65 | macro(enumerate, enumerate, "enumerate") \ |
michael@0 | 66 | macro(escape, escape, "escape") \ |
michael@0 | 67 | macro(eval, eval, "eval") \ |
michael@0 | 68 | macro(false, false_, "false") \ |
michael@0 | 69 | macro(fieldOffsets, fieldOffsets, "fieldOffsets") \ |
michael@0 | 70 | macro(fieldTypes, fieldTypes, "fieldTypes") \ |
michael@0 | 71 | macro(fileName, fileName, "fileName") \ |
michael@0 | 72 | macro(FillTypedArrayWithValue, FillTypedArrayWithValue, "FillTypedArrayWithValue") \ |
michael@0 | 73 | macro(fix, fix, "fix") \ |
michael@0 | 74 | macro(float32, float32, "float32") \ |
michael@0 | 75 | macro(float32x4, float32x4, "float32x4") \ |
michael@0 | 76 | macro(float64, float64, "float64") \ |
michael@0 | 77 | macro(format, format, "format") \ |
michael@0 | 78 | macro(from, from, "from") \ |
michael@0 | 79 | macro(get, get, "get") \ |
michael@0 | 80 | macro(getInternals, getInternals, "getInternals") \ |
michael@0 | 81 | macro(getOwnPropertyDescriptor, getOwnPropertyDescriptor, "getOwnPropertyDescriptor") \ |
michael@0 | 82 | macro(getOwnPropertyNames, getOwnPropertyNames, "getOwnPropertyNames") \ |
michael@0 | 83 | macro(getPropertyDescriptor, getPropertyDescriptor, "getPropertyDescriptor") \ |
michael@0 | 84 | macro(global, global, "global") \ |
michael@0 | 85 | macro(Handle, Handle, "Handle") \ |
michael@0 | 86 | macro(has, has, "has") \ |
michael@0 | 87 | macro(hasOwn, hasOwn, "hasOwn") \ |
michael@0 | 88 | macro(hasOwnProperty, hasOwnProperty, "hasOwnProperty") \ |
michael@0 | 89 | macro(ignoreCase, ignoreCase, "ignoreCase") \ |
michael@0 | 90 | macro(ignorePunctuation, ignorePunctuation, "ignorePunctuation") \ |
michael@0 | 91 | macro(index, index, "index") \ |
michael@0 | 92 | macro(InitializeCollator, InitializeCollator, "InitializeCollator") \ |
michael@0 | 93 | macro(InitializeDateTimeFormat, InitializeDateTimeFormat, "InitializeDateTimeFormat") \ |
michael@0 | 94 | macro(InitializeNumberFormat, InitializeNumberFormat, "InitializeNumberFormat") \ |
michael@0 | 95 | macro(innermost, innermost, "innermost") \ |
michael@0 | 96 | macro(input, input, "input") \ |
michael@0 | 97 | macro(int32x4, int32x4, "int32x4") \ |
michael@0 | 98 | macro(isFinite, isFinite, "isFinite") \ |
michael@0 | 99 | macro(isNaN, isNaN, "isNaN") \ |
michael@0 | 100 | macro(isPrototypeOf, isPrototypeOf, "isPrototypeOf") \ |
michael@0 | 101 | macro(iterate, iterate, "iterate") \ |
michael@0 | 102 | macro(Infinity, Infinity, "Infinity") \ |
michael@0 | 103 | macro(int8, int8, "int8") \ |
michael@0 | 104 | macro(int16, int16, "int16") \ |
michael@0 | 105 | macro(int32, int32, "int32") \ |
michael@0 | 106 | macro(isExtensible, isExtensible, "isExtensible") \ |
michael@0 | 107 | macro(iterator, iterator, "iterator") \ |
michael@0 | 108 | macro(iteratorIntrinsic, iteratorIntrinsic, "__iterator__") \ |
michael@0 | 109 | macro(join, join, "join") \ |
michael@0 | 110 | macro(keys, keys, "keys") \ |
michael@0 | 111 | macro(lastIndex, lastIndex, "lastIndex") \ |
michael@0 | 112 | macro(length, length, "length") \ |
michael@0 | 113 | macro(let, let, "let") \ |
michael@0 | 114 | macro(line, line, "line") \ |
michael@0 | 115 | macro(lineNumber, lineNumber, "lineNumber") \ |
michael@0 | 116 | macro(loc, loc, "loc") \ |
michael@0 | 117 | macro(locale, locale, "locale") \ |
michael@0 | 118 | macro(lookupGetter, lookupGetter, "__lookupGetter__") \ |
michael@0 | 119 | macro(lookupSetter, lookupSetter, "__lookupSetter__") \ |
michael@0 | 120 | macro(maximumFractionDigits, maximumFractionDigits, "maximumFractionDigits") \ |
michael@0 | 121 | macro(maximumSignificantDigits, maximumSignificantDigits, "maximumSignificantDigits") \ |
michael@0 | 122 | macro(message, message, "message") \ |
michael@0 | 123 | macro(minimumFractionDigits, minimumFractionDigits, "minimumFractionDigits") \ |
michael@0 | 124 | macro(minimumIntegerDigits, minimumIntegerDigits, "minimumIntegerDigits") \ |
michael@0 | 125 | macro(minimumSignificantDigits, minimumSignificantDigits, "minimumSignificantDigits") \ |
michael@0 | 126 | macro(module, module, "module") \ |
michael@0 | 127 | macro(multiline, multiline, "multiline") \ |
michael@0 | 128 | macro(name, name, "name") \ |
michael@0 | 129 | macro(NaN, NaN, "NaN") \ |
michael@0 | 130 | macro(next, next, "next") \ |
michael@0 | 131 | macro(NFC, NFC, "NFC") \ |
michael@0 | 132 | macro(NFD, NFD, "NFD") \ |
michael@0 | 133 | macro(NFKC, NFKC, "NFKC") \ |
michael@0 | 134 | macro(NFKD, NFKD, "NFKD") \ |
michael@0 | 135 | macro(noSuchMethod, noSuchMethod, "__noSuchMethod__") \ |
michael@0 | 136 | macro(NumberFormat, NumberFormat, "NumberFormat") \ |
michael@0 | 137 | macro(NumberFormatFormatGet, NumberFormatFormatGet, "Intl_NumberFormat_format_get") \ |
michael@0 | 138 | macro(numeric, numeric, "numeric") \ |
michael@0 | 139 | macro(objectArray, objectArray, "[object Array]") \ |
michael@0 | 140 | macro(objectFunction, objectFunction, "[object Function]") \ |
michael@0 | 141 | macro(objectNull, objectNull, "[object Null]") \ |
michael@0 | 142 | macro(objectNumber, objectNumber, "[object Number]") \ |
michael@0 | 143 | macro(objectObject, objectObject, "[object Object]") \ |
michael@0 | 144 | macro(objectString, objectString, "[object String]") \ |
michael@0 | 145 | macro(objectUndefined, objectUndefined, "[object Undefined]") \ |
michael@0 | 146 | macro(objectWindow, objectWindow, "[object Window]") \ |
michael@0 | 147 | macro(of, of, "of") \ |
michael@0 | 148 | macro(offset, offset, "offset") \ |
michael@0 | 149 | macro(optimizedOut, optimizedOut, "optimizedOut") \ |
michael@0 | 150 | macro(missingArguments, missingArguments, "missingArguments") \ |
michael@0 | 151 | macro(outOfMemory, outOfMemory, "out of memory") \ |
michael@0 | 152 | macro(parseFloat, parseFloat, "parseFloat") \ |
michael@0 | 153 | macro(parseInt, parseInt, "parseInt") \ |
michael@0 | 154 | macro(pattern, pattern, "pattern") \ |
michael@0 | 155 | macro(preventExtensions, preventExtensions, "preventExtensions") \ |
michael@0 | 156 | macro(propertyIsEnumerable, propertyIsEnumerable, "propertyIsEnumerable") \ |
michael@0 | 157 | macro(proto, proto, "__proto__") \ |
michael@0 | 158 | macro(prototype, prototype, "prototype") \ |
michael@0 | 159 | macro(Reify, Reify, "Reify") \ |
michael@0 | 160 | macro(return, return_, "return") \ |
michael@0 | 161 | macro(sensitivity, sensitivity, "sensitivity") \ |
michael@0 | 162 | macro(set, set, "set") \ |
michael@0 | 163 | macro(shape, shape, "shape") \ |
michael@0 | 164 | macro(source, source, "source") \ |
michael@0 | 165 | macro(stack, stack, "stack") \ |
michael@0 | 166 | macro(sticky, sticky, "sticky") \ |
michael@0 | 167 | macro(StructType, StructType, "StructType") \ |
michael@0 | 168 | macro(style, style, "style") \ |
michael@0 | 169 | macro(test, test, "test") \ |
michael@0 | 170 | macro(throw, throw_, "throw") \ |
michael@0 | 171 | macro(timeZone, timeZone, "timeZone") \ |
michael@0 | 172 | macro(toGMTString, toGMTString, "toGMTString") \ |
michael@0 | 173 | macro(toISOString, toISOString, "toISOString") \ |
michael@0 | 174 | macro(toJSON, toJSON, "toJSON") \ |
michael@0 | 175 | macro(toLocaleString, toLocaleString, "toLocaleString") \ |
michael@0 | 176 | macro(toSource, toSource, "toSource") \ |
michael@0 | 177 | macro(toString, toString, "toString") \ |
michael@0 | 178 | macro(toUTCString, toUTCString, "toUTCString") \ |
michael@0 | 179 | macro(true, true_, "true") \ |
michael@0 | 180 | macro(unescape, unescape, "unescape") \ |
michael@0 | 181 | macro(uneval, uneval, "uneval") \ |
michael@0 | 182 | macro(uint8, uint8, "uint8") \ |
michael@0 | 183 | macro(uint8Clamped, uint8Clamped, "uint8Clamped") \ |
michael@0 | 184 | macro(uint16, uint16, "uint16") \ |
michael@0 | 185 | macro(uint32, uint32, "uint32") \ |
michael@0 | 186 | macro(unsized, unsized, "unsized") \ |
michael@0 | 187 | macro(unwatch, unwatch, "unwatch") \ |
michael@0 | 188 | macro(url, url, "url") \ |
michael@0 | 189 | macro(usage, usage, "usage") \ |
michael@0 | 190 | macro(useGrouping, useGrouping, "useGrouping") \ |
michael@0 | 191 | macro(useAsm, useAsm, "use asm") \ |
michael@0 | 192 | macro(useStrict, useStrict, "use strict") \ |
michael@0 | 193 | macro(value, value, "value") \ |
michael@0 | 194 | macro(valueOf, valueOf, "valueOf") \ |
michael@0 | 195 | macro(var, var, "var") \ |
michael@0 | 196 | macro(variable, variable, "variable") \ |
michael@0 | 197 | macro(void0, void0, "(void 0)") \ |
michael@0 | 198 | macro(watch, watch, "watch") \ |
michael@0 | 199 | macro(writable, writable, "writable") \ |
michael@0 | 200 | macro(w, w, "w") \ |
michael@0 | 201 | macro(x, x, "x") \ |
michael@0 | 202 | macro(y, y, "y") \ |
michael@0 | 203 | macro(yield, yield, "yield") \ |
michael@0 | 204 | macro(z, z, "z") \ |
michael@0 | 205 | /* Type names must be contiguous and ordered; see js::TypeName. */ \ |
michael@0 | 206 | macro(undefined, undefined, "undefined") \ |
michael@0 | 207 | macro(object, object, "object") \ |
michael@0 | 208 | macro(function, function, "function") \ |
michael@0 | 209 | macro(string, string, "string") \ |
michael@0 | 210 | macro(number, number, "number") \ |
michael@0 | 211 | macro(boolean, boolean, "boolean") \ |
michael@0 | 212 | macro(null, null, "null") |
michael@0 | 213 | |
michael@0 | 214 | #endif /* vm_CommonPropertyNames_h */ |