28 #ifndef V8_ACCESSORS_H_
29 #define V8_ACCESSORS_H_
39 #define ACCESSOR_DESCRIPTOR_LIST(V) \
40 V(FunctionPrototype) \
43 V(FunctionArguments) \
51 V(ScriptColumnOffset) \
54 V(ScriptCompilationType) \
56 V(ScriptContextData) \
57 V(ScriptEvalFromScript) \
58 V(ScriptEvalFromScriptPosition) \
59 V(ScriptEvalFromFunctionName) \
67 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \
68 static const AccessorDescriptor name;
70 #undef ACCESSOR_DESCRIPTOR_DECLARATION
73 #define ACCESSOR_DESCRIPTOR_DECLARATION(name) \
76 #undef ACCESSOR_DESCRIPTOR_DECLARATION
94 static MaybeObject* FunctionGetLength(
Object*
object,
void*);
95 static MaybeObject* FunctionGetName(
Object*
object,
void*);
96 static MaybeObject* FunctionGetCaller(
Object*
object,
void*);
99 static MaybeObject* ArrayGetLength(
Object*
object,
void*);
100 static MaybeObject* StringGetLength(
Object*
object,
void*);
101 static MaybeObject* ScriptGetName(
Object*
object,
void*);
102 static MaybeObject* ScriptGetId(
Object*
object,
void*);
103 static MaybeObject* ScriptGetSource(
Object*
object,
void*);
104 static MaybeObject* ScriptGetLineOffset(
Object*
object,
void*);
105 static MaybeObject* ScriptGetColumnOffset(
Object*
object,
void*);
106 static MaybeObject* ScriptGetData(
Object*
object,
void*);
107 static MaybeObject* ScriptGetType(
Object*
object,
void*);
108 static MaybeObject* ScriptGetCompilationType(
Object*
object,
void*);
109 static MaybeObject* ScriptGetLineEnds(
Object*
object,
void*);
110 static MaybeObject* ScriptGetContextData(
Object*
object,
void*);
111 static MaybeObject* ScriptGetEvalFromScript(
Object*
object,
void*);
112 static MaybeObject* ScriptGetEvalFromScriptPosition(
Object*
object,
void*);
113 static MaybeObject* ScriptGetEvalFromFunctionName(
Object*
object,
void*);
114 static MaybeObject* ObjectGetPrototype(
Object* receiver,
void*);
115 static MaybeObject* ObjectSetPrototype(
JSObject* receiver,
122 static Object* IllegalGetAccessor(
Object*
object,
void*);
123 static MaybeObject* ReadOnlySetAccessor(
JSObject*,
Object* value,
void*);
128 #endif // V8_ACCESSORS_H_
#define ACCESSOR_DESCRIPTOR_DECLARATION(name)
static MaybeObject * FunctionGetArguments(Object *object, void *)
static Handle< AccessorInfo > MakeModuleExport(Handle< String > name, int index, PropertyAttributes attributes)
#define ACCESSOR_DESCRIPTOR_LIST(V)
static MUST_USE_RESULT MaybeObject * FunctionSetPrototype(JSObject *object, Object *value, void *)
static MUST_USE_RESULT MaybeObject * FunctionGetPrototype(Object *object, void *)