Rename ESCARGOT_ENABLE_SHADOWREALM to ENABLE_SHADOWREALM in source code

Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
Seonghyun Kim 2025-08-25 11:18:28 +09:00 committed by MuHong Byun
commit fc47134b6e
8 changed files with 13 additions and 13 deletions

View file

@ -72,10 +72,6 @@ IF (ESCARGOT_SMALL_CONFIG)
SET (ESCARGOT_DEFINITIONS ${ESCARGOT_DEFINITIONS} -DESCARGOT_SMALL_CONFIG)
ENDIF()
IF (ESCARGOT_ENABLE_SHADOWREALM)
SET (ESCARGOT_DEFINITIONS ${ESCARGOT_DEFINITIONS} -DESCARGOT_ENABLE_SHADOWREALM)
ENDIF()
IF (NOT DEFINED ESCARGOT_LIBICU_SUPPORT)
SET (ESCARGOT_LIBICU_SUPPORT ON)
ENDIF()
@ -171,6 +167,10 @@ IF (ESCARGOT_TEMPORAL)
SET (ESCARGOT_DEFINITIONS ${ESCARGOT_DEFINITIONS} -DENABLE_TEMPORAL)
ENDIF()
IF (ESCARGOT_ENABLE_SHADOWREALM)
SET (ESCARGOT_DEFINITIONS ${ESCARGOT_DEFINITIONS} -DENABLE_SHADOWREALM)
ENDIF()
IF (ESCARGOT_TLS_ACCESS_BY_ADDRESS)
SET (ESCARGOT_DEFINITIONS ${ESCARGOT_DEFINITIONS} -DENABLE_TLS_ACCESS_BY_ADDRESS)
ENDIF()

View file

@ -36,7 +36,7 @@
namespace Escargot {
#if defined(ESCARGOT_ENABLE_SHADOWREALM)
#if defined(ENABLE_SHADOWREALM)
// https://tc39.es/proposal-shadowrealm/#sec-shadowrealm
static Value builtinShadowRealmConstructor(ExecutionState& state, Value thisValue, size_t argc, Value* argv, Optional<Object*> newTarget)

View file

@ -214,7 +214,7 @@ class FunctionObject;
F(setPrototypeObject, Object, objName) \
F(setIteratorPrototype, Object, objName)
#if defined(ESCARGOT_ENABLE_SHADOWREALM)
#if defined(ENABLE_SHADOWREALM)
#define GLOBALOBJECT_BUILTIN_SHADOWREALM(F, objName) \
F(shadowRealm, FunctionObject, objName) \
F(shadowRealmPrototype, Object, objName)

View file

@ -757,7 +757,7 @@ public:
return (ScriptClassConstructorPrototypeObject*)this;
}
#if defined(ESCARGOT_ENABLE_SHADOWREALM)
#if defined(ENABLE_SHADOWREALM)
ShadowRealmObject* asShadowRealmObject()
{
ASSERT(isShadowRealmObject());
@ -884,7 +884,7 @@ public:
return (WrapForValidIteratorObject*)this;
}
#if defined(ESCARGOT_ENABLE_SHADOWREALM)
#if defined(ENABLE_SHADOWREALM)
WrappedFunctionObject* asWrappedFunctionObject()
{
ASSERT(isWrappedFunctionObject());

View file

@ -36,7 +36,7 @@
namespace Escargot {
#if defined(ESCARGOT_ENABLE_SHADOWREALM)
#if defined(ENABLE_SHADOWREALM)
ShadowRealmObject::ShadowRealmObject(ExecutionState& state)
: DerivedObject(state)

View file

@ -27,7 +27,7 @@
namespace Escargot {
#if defined(ESCARGOT_ENABLE_SHADOWREALM)
#if defined(ENABLE_SHADOWREALM)
class ShadowRealmObject : public DerivedObject {
public:
@ -56,7 +56,7 @@ private:
Context* m_realmContext;
};
#endif // defined(ESCARGOT_ENABLE_SHADOWREALM)
#endif // defined(ENABLE_SHADOWREALM)
} // namespace Escargot
#endif

View file

@ -26,7 +26,7 @@
namespace Escargot {
#if defined(ESCARGOT_ENABLE_SHADOWREALM)
#if defined(ENABLE_SHADOWREALM)
WrappedFunctionObject::WrappedFunctionObject(ExecutionState& state, Object* wrappedTargetFunction, Context* realm, const Value& length, const Value& name)
: DerivedObject(state, state.context()->globalObject()->objectPrototype(), ESCARGOT_OBJECT_BUILTIN_PROPERTY_NUMBER + 2)

View file

@ -28,7 +28,7 @@
namespace Escargot {
#if defined(ESCARGOT_ENABLE_SHADOWREALM)
#if defined(ENABLE_SHADOWREALM)
class WrappedFunctionObject : public DerivedObject {
friend class Object;