Classes | Namespaces | Defines | Typedefs | Functions | Variables

jsvalue.h File Reference

#include "jsprvtd.h"
#include "jsstdint.h"
#include <math.h>
Include dependency graph for jsvalue.h:
This graph shows which files directly or indirectly include this file:

Classes

class  js::Value
struct  js::ClassSizeMeasurement
struct  js::ClassExtension
struct  js::ObjectOps
struct  js::Class
struct  js::PropertyDescriptor

Namespaces

namespace  js

Defines

#define JS_CLASS_MEMBERS
#define JS_NULL_CLASS_EXT   {NULL,NULL,NULL,NULL,NULL}
#define JS_NULL_OBJECT_OPS   {NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL,NULL,NULL}
#define JS_VALUEIFY(type, v)   ((type)(v))
#define JS_JSVALIFY(type, v)   ((type)(v))
#define JS_VALUEIFY_NATIVE(n)   ((js::Native)(n))
#define JS_JSVALIFY_NATIVE(n)   ((JSNative)(n))
#define JS_FN(name, call, nargs, flags)   {name, JS_JSVALIFY_NATIVE(call), nargs, (flags) | JSFUN_STUB_GSOPS}

Typedefs

typedef JSBool(* js::Native )(JSContext *cx, uintN argc, Value *vp)
typedef JSBool(* js::PropertyOp )(JSContext *cx, JSObject *obj, jsid id, Value *vp)
typedef JSBool(* js::ConvertOp )(JSContext *cx, JSObject *obj, JSType type, Value *vp)
typedef JSBool(* js::NewEnumerateOp )(JSContext *cx, JSObject *obj, JSIterateOp enum_op, Value *statep, jsid *idp)
typedef JSBool(* js::HasInstanceOp )(JSContext *cx, JSObject *obj, const Value *v, JSBool *bp)
typedef JSBool(* js::CheckAccessOp )(JSContext *cx, JSObject *obj, jsid id, JSAccessMode mode, Value *vp)
typedef JSBool(* js::EqualityOp )(JSContext *cx, JSObject *obj, const Value *v, JSBool *bp)
typedef JSBool(* js::DefinePropOp )(JSContext *cx, JSObject *obj, jsid id, const Value *value, PropertyOp getter, PropertyOp setter, uintN attrs)
typedef JSBool(* js::PropertyIdOp )(JSContext *cx, JSObject *obj, JSObject *receiver, jsid id, Value *vp)
typedef JSBool(* js::StrictPropertyIdOp )(JSContext *cx, JSObject *obj, jsid id, Value *vp, JSBool strict)
typedef JSBool(* js::DeleteIdOp )(JSContext *cx, JSObject *obj, jsid id, Value *vp, JSBool strict)
typedef JSBool(* js::CallOp )(JSContext *cx, uintN argc, Value *vp)
typedef JSBool(* js::LookupPropOp )(JSContext *cx, JSObject *obj, jsid id, JSObject **objp, JSProperty **propp)
typedef JSBool(* js::AttributesOp )(JSContext *cx, JSObject *obj, jsid id, uintN *attrsp)
typedef JSType(* js::TypeOfOp )(JSContext *cx, JSObject *obj)
typedef void(* js::TraceOp )(JSTracer *trc, JSObject *obj)
typedef JSObject *(* js::ObjectOp )(JSContext *cx, JSObject *obj)
typedef void(* js::FinalizeOp )(JSContext *cx, JSObject *obj)
typedef JSBool(* js::FixOp )(JSContext *cx, JSObject *obj, bool *fixed, AutoIdVector *props)
typedef js::Value js::ValueArgType

Functions

bool js::SameType (const Value &lhs, const Value &rhs)
void js::js_static_assert (int arg[(offsetof(JSClass, name)==offsetof(Class, name))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSClass, flags)==offsetof(Class, flags))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSClass, addProperty)==offsetof(Class, addProperty))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSClass, delProperty)==offsetof(Class, delProperty))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSClass, getProperty)==offsetof(Class, getProperty))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSClass, setProperty)==offsetof(Class, setProperty))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSClass, enumerate)==offsetof(Class, enumerate))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSClass, resolve)==offsetof(Class, resolve))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSClass, convert)==offsetof(Class, convert))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSClass, finalize)==offsetof(Class, finalize))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSClass, reserved0)==offsetof(Class, reserved0))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSClass, checkAccess)==offsetof(Class, checkAccess))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSClass, call)==offsetof(Class, call))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSClass, construct)==offsetof(Class, construct))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSClass, xdrObject)==offsetof(Class, xdrObject))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSClass, hasInstance)==offsetof(Class, hasInstance))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSClass, mark)==offsetof(Class, mark))?1:-1])
void js::js_static_assert (int arg[(sizeof(JSClass)==sizeof(Class))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSPropertyDescriptor, obj)==offsetof(PropertyDescriptor, obj))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSPropertyDescriptor, attrs)==offsetof(PropertyDescriptor, attrs))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSPropertyDescriptor, getter)==offsetof(PropertyDescriptor, getter))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSPropertyDescriptor, setter)==offsetof(PropertyDescriptor, setter))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSPropertyDescriptor, value)==offsetof(PropertyDescriptor, value))?1:-1])
void js::js_static_assert (int arg[(offsetof(JSPropertyDescriptor, shortid)==offsetof(PropertyDescriptor, shortid))?1:-1])
void js::js_static_assert (int arg[(sizeof(JSPropertyDescriptor)==sizeof(PropertyDescriptor))?1:-1])

Variables

class js::Value js::JSVAL_ALIGNMENT

Define Documentation

#define JS_CLASS_MEMBERS
Value:
const char          *name;                                                \
    uint32              flags;                                                \
                                                                              \
    /* Mandatory non-null function pointer members. */                        \
    PropertyOp          addProperty;                                          \
    PropertyOp          delProperty;                                          \
    PropertyOp          getProperty;                                          \
    PropertyOp          setProperty;                                          \
    JSEnumerateOp       enumerate;                                            \
    JSResolveOp         resolve;                                              \
    ConvertOp           convert;                                              \
    JSFinalizeOp        finalize;                                             \
                                                                              \
    /* Optionally non-null members start here. */                             \
    JSClassInternal     reserved0;                                            \
    CheckAccessOp       checkAccess;                                          \
    Native              call;                                                 \
    Native              construct;                                            \
    JSXDRObjectOp       xdrObject;                                            \
    HasInstanceOp       hasInstance;                                          \
    JSMarkOp            mark
#define JS_FN (   name,
  call,
  nargs,
  flags 
)    {name, JS_JSVALIFY_NATIVE(call), nargs, (flags) | JSFUN_STUB_GSOPS}
#define JS_JSVALIFY (   type,
  v 
)    ((type)(v))
#define JS_JSVALIFY_NATIVE (   n  )     ((JSNative)(n))
#define JS_NULL_CLASS_EXT   {NULL,NULL,NULL,NULL,NULL}
#define JS_NULL_OBJECT_OPS   {NULL,NULL,NULL,NULL,NULL,NULL, NULL,NULL,NULL,NULL,NULL,NULL}
#define JS_VALUEIFY (   type,
  v 
)    ((type)(v))
#define JS_VALUEIFY_NATIVE (   n  )     ((js::Native)(n))