#ifndef CommonIdentifiers_h
#define CommonIdentifiers_h
+#include "BytecodeIntrinsicRegistry.h"
#include "Identifier.h"
#include <wtf/Noncopyable.h>
// 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) \
macro(EvalError) \
macro(Function) \
macro(Infinity) \
+ macro(Intl) \
macro(JSON) \
macro(Map)\
macro(MapIterator)\
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) \
macro(bytecodesID) \
macro(callee) \
macro(caller) \
- macro(cast) \
macro(clear) \
macro(close) \
macro(closed) \
+ macro(column) \
macro(compilationKind) \
macro(compilations) \
macro(compile) \
macro(constructor) \
macro(count) \
macro(counters) \
+ macro(defineProperty) \
macro(description) \
macro(descriptions) \
macro(displayName) \
macro(exec) \
macro(executionCount) \
macro(exitKind) \
+ macro(flags) \
macro(focus) \
macro(forEach) \
macro(forward) \
macro(id) \
macro(ignoreCase) \
macro(index) \
+ macro(indexedDB) \
macro(inferredName) \
macro(input) \
macro(instructionCount) \
macro(keys) \
macro(lastIndex) \
macro(length) \
+ macro(line) \
macro(message) \
macro(multiline) \
macro(name) \
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) \
macro(valueOf) \
macro(values) \
macro(webkit) \
+ macro(webkitIndexedDB) \
macro(window) \
macro(writable)
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) \
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 {
#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