mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Rename ESCARGOT_ENABLE_SHADOWREALM to ENABLE_SHADOWREALM in source code
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
2482f40fe2
commit
fc47134b6e
8 changed files with 13 additions and 13 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
namespace Escargot {
|
||||
|
||||
#if defined(ESCARGOT_ENABLE_SHADOWREALM)
|
||||
#if defined(ENABLE_SHADOWREALM)
|
||||
|
||||
ShadowRealmObject::ShadowRealmObject(ExecutionState& state)
|
||||
: DerivedObject(state)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
namespace Escargot {
|
||||
|
||||
#if defined(ESCARGOT_ENABLE_SHADOWREALM)
|
||||
#if defined(ENABLE_SHADOWREALM)
|
||||
|
||||
class WrappedFunctionObject : public DerivedObject {
|
||||
friend class Object;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue