X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/81345200c95645a1b0d2635520f96ad55dfde63f..ed1e77d3adeb83d26fd1dfb16dd84cabdcefd250:/runtime/CommonIdentifiers.h diff --git a/runtime/CommonIdentifiers.h b/runtime/CommonIdentifiers.h index 96f88f8..41b94f1 100644 --- a/runtime/CommonIdentifiers.h +++ b/runtime/CommonIdentifiers.h @@ -21,13 +21,13 @@ #ifndef CommonIdentifiers_h #define CommonIdentifiers_h +#include "BytecodeIntrinsicRegistry.h" #include "Identifier.h" #include // MarkedArgumentBuffer of property names, passed to a macro so we can do set them up various // ways without repeating the list. #define JSC_COMMON_IDENTIFIERS_EACH_PROPERTY_NAME(macro) \ - macro(ArgumentsIterator) \ macro(Array) \ macro(ArrayBuffer) \ macro(ArrayIterator) \ @@ -38,6 +38,7 @@ macro(EvalError) \ macro(Function) \ macro(Infinity) \ + macro(Intl) \ macro(JSON) \ macro(Map)\ macro(MapIterator)\ @@ -52,16 +53,19 @@ macro(Set)\ macro(SetIterator)\ macro(String) \ + macro(Symbol) \ macro(SyntaxError) \ macro(TypeError) \ macro(URIError) \ macro(UTC) \ macro(WeakMap)\ + macro(WeakSet)\ macro(__defineGetter__) \ macro(__defineSetter__) \ macro(__lookupGetter__) \ macro(__lookupSetter__) \ macro(add) \ + macro(additionalJettisonReason) \ macro(anonymous) \ macro(arguments) \ macro(assign) \ @@ -77,10 +81,10 @@ macro(bytecodesID) \ macro(callee) \ macro(caller) \ - macro(cast) \ macro(clear) \ macro(close) \ macro(closed) \ + macro(column) \ macro(compilationKind) \ macro(compilations) \ macro(compile) \ @@ -88,6 +92,7 @@ macro(constructor) \ macro(count) \ macro(counters) \ + macro(defineProperty) \ macro(description) \ macro(descriptions) \ macro(displayName) \ @@ -99,6 +104,7 @@ macro(exec) \ macro(executionCount) \ macro(exitKind) \ + macro(flags) \ macro(focus) \ macro(forEach) \ macro(forward) \ @@ -114,6 +120,7 @@ macro(id) \ macro(ignoreCase) \ macro(index) \ + macro(indexedDB) \ macro(inferredName) \ macro(input) \ macro(instructionCount) \ @@ -126,6 +133,7 @@ macro(keys) \ macro(lastIndex) \ macro(length) \ + macro(line) \ macro(message) \ macro(multiline) \ macro(name) \ @@ -140,17 +148,21 @@ macro(osrExitSites) \ macro(osrExits) \ macro(parse) \ + macro(parseInt) \ macro(postMessage) \ macro(profiledBytecodes) \ macro(propertyIsEnumerable) \ macro(prototype) \ + macro(raw) \ macro(reload) \ macro(replace) \ + macro(resolve) \ macro(set) \ macro(showModalDialog) \ macro(size) \ macro(slice) \ macro(source) \ + macro(sourceURL) \ macro(sourceCode) \ macro(stack) \ macro(subarray) \ @@ -167,6 +179,7 @@ macro(valueOf) \ macro(values) \ macro(webkit) \ + macro(webkitIndexedDB) \ macro(window) \ macro(writable) @@ -218,11 +231,37 @@ macro(with) \ macro(yield) -#define JSC_COMMON_PRIVATE_IDENTIFIERS_EACH_PROPERTY_NAME(macro) \ +#define JSC_COMMON_PRIVATE_IDENTIFIERS_EACH_WELL_KNOWN_SYMBOL_NOT_IMPLEMENTED_YET(macro)\ + macro(hasInstance) \ + macro(isConcatSpreadable) \ + macro(match) \ + macro(replace) \ + macro(search) \ + macro(species) \ + macro(split) \ + macro(toPrimitive) \ + macro(toStringTag) + +#define JSC_COMMON_PRIVATE_IDENTIFIERS_EACH_WELL_KNOWN_SYMBOL(macro) \ macro(iterator) \ - macro(iteratorNext) \ - macro(resolve) \ - macro(reject) \ + macro(unscopables) + +#define JSC_COMMON_BYTECODE_INTRINSICS_EACH_NAME(macro) \ + macro(putByValDirect) \ + macro(toString) + +#define JSC_COMMON_PRIVATE_IDENTIFIERS_EACH_PROPERTY_NAME(macro) \ + JSC_COMMON_BYTECODE_INTRINSICS_EACH_NAME(macro) \ + macro(symbolIterator) \ + macro(iteratedObject) \ + macro(arrayIteratorNextIndex) \ + macro(arrayIterationKind) \ + macro(arrayIterationKindKey) \ + macro(arrayIterationKindValue) \ + macro(arrayIterationKindKeyValue) \ + macro(charCodeAt) \ + macro(iteratedString) \ + macro(stringIteratorNextIndex) \ macro(promise) \ macro(fulfillmentHandler) \ macro(rejectionHandler) \ @@ -231,9 +270,34 @@ macro(deferred) \ macro(countdownHolder) \ macro(Object) \ + macro(objectKeys) \ + macro(objectGetOwnPropertyDescriptor) \ + macro(objectGetOwnPropertySymbols) \ + macro(Number) \ + macro(Array) \ + macro(String) \ + macro(Promise) \ + macro(abs) \ + macro(floor) \ + macro(isFinite) \ + macro(getPrototypeOf) \ + macro(getOwnPropertyNames) \ macro(TypeError) \ macro(undefined) \ - macro(BuiltinLog) + macro(BuiltinLog) \ + macro(homeObject) \ + macro(getTemplateObject) \ + macro(enqueueJob) \ + macro(handler) \ + macro(promiseState) \ + macro(promisePending) \ + macro(promiseFulfilled) \ + macro(promiseRejected) \ + macro(promiseFulfillReactions) \ + macro(promiseRejectReactions) \ + macro(promiseResult) \ + macro(capabilities) \ + namespace JSC { @@ -269,9 +333,22 @@ namespace JSC { #define JSC_IDENTIFIER_DECLARE_PRIVATE_PROPERTY_NAME_GLOBAL(name) const Identifier name##PrivateName; JSC_COMMON_PRIVATE_IDENTIFIERS_EACH_PROPERTY_NAME(JSC_IDENTIFIER_DECLARE_PRIVATE_PROPERTY_NAME_GLOBAL) #undef JSC_IDENTIFIER_DECLARE_PRIVATE_PROPERTY_NAME_GLOBAL - + +#define JSC_IDENTIFIER_DECLARE_PRIVATE_WELL_KNOWN_SYMBOL_GLOBAL(name) const Identifier name##Symbol; + JSC_COMMON_PRIVATE_IDENTIFIERS_EACH_WELL_KNOWN_SYMBOL(JSC_IDENTIFIER_DECLARE_PRIVATE_WELL_KNOWN_SYMBOL_GLOBAL) +#undef JSC_IDENTIFIER_DECLARE_PRIVATE_WELL_KNOWN_SYMBOL_GLOBAL + + bool isPrivateName(SymbolImpl& uid) const; + bool isPrivateName(UniquedStringImpl& uid) const; + bool isPrivateName(const Identifier&) const; + const Identifier* getPrivateName(const Identifier&) const; Identifier getPublicName(const Identifier&) const; + + const BytecodeIntrinsicRegistry& bytecodeIntrinsicRegistry() const { return m_bytecodeIntrinsicRegistry; } + + private: + BytecodeIntrinsicRegistry m_bytecodeIntrinsicRegistry; }; } // namespace JSC