2 This file is part of the WebKit open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY!
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
21 #ifndef JSJavaScriptCallFrame_h
22 #define JSJavaScriptCallFrame_h
24 #if ENABLE(JAVASCRIPT_DEBUGGER)
26 #include "JSDOMBinding.h"
27 #include "JavaScriptCallFrame.h"
28 #include <runtime/JSGlobalObject.h>
29 #include <runtime/JSObject.h>
30 #include <runtime/ObjectPrototype.h>
34 class JSJavaScriptCallFrame : public JSDOMWrapper {
36 typedef JSDOMWrapper Base;
37 static JSJavaScriptCallFrame* create(JSC::Structure* structure, JSDOMGlobalObject* globalObject, PassRefPtr<JavaScriptCallFrame> impl)
39 JSJavaScriptCallFrame* ptr = new (JSC::allocateCell<JSJavaScriptCallFrame>(globalObject->globalData().heap)) JSJavaScriptCallFrame(structure, globalObject, impl);
40 ptr->finishCreation(globalObject->globalData());
44 static JSC::JSObject* createPrototype(JSC::ExecState*, JSC::JSGlobalObject*);
45 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertySlot&);
46 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier& propertyName, JSC::PropertyDescriptor&);
47 static const JSC::ClassInfo s_info;
49 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
51 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
56 JSC::JSValue scopeChain(JSC::ExecState*) const;
57 JSC::JSValue thisObject(JSC::ExecState*) const;
58 JSC::JSValue type(JSC::ExecState*) const;
61 JSC::JSValue evaluate(JSC::ExecState*);
62 JSC::JSValue scopeType(JSC::ExecState*);
63 JavaScriptCallFrame* impl() const { return m_impl; }
64 void releaseImpl() { m_impl->deref(); m_impl = 0; }
67 JavaScriptCallFrame* m_impl;
69 JSJavaScriptCallFrame(JSC::Structure*, JSDOMGlobalObject*, PassRefPtr<JavaScriptCallFrame>);
70 void finishCreation(JSC::JSGlobalData&);
71 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
74 class JSJavaScriptCallFrameOwner : public JSC::WeakHandleOwner {
75 virtual bool isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown>, void* context, JSC::SlotVisitor&);
76 virtual void finalize(JSC::Handle<JSC::Unknown>, void* context);
79 inline JSC::WeakHandleOwner* wrapperOwner(DOMWrapperWorld*, JavaScriptCallFrame*)
81 DEFINE_STATIC_LOCAL(JSJavaScriptCallFrameOwner, jsJavaScriptCallFrameOwner, ());
82 return &jsJavaScriptCallFrameOwner;
85 inline void* wrapperContext(DOMWrapperWorld* world, JavaScriptCallFrame*)
90 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, JavaScriptCallFrame*);
91 JavaScriptCallFrame* toJavaScriptCallFrame(JSC::JSValue);
93 class JSJavaScriptCallFramePrototype : public JSC::JSNonFinalObject {
95 typedef JSC::JSNonFinalObject Base;
96 static JSC::JSObject* self(JSC::ExecState*, JSC::JSGlobalObject*);
97 static JSJavaScriptCallFramePrototype* create(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::Structure* structure)
99 JSJavaScriptCallFramePrototype* ptr = new (JSC::allocateCell<JSJavaScriptCallFramePrototype>(globalData.heap)) JSJavaScriptCallFramePrototype(globalData, globalObject, structure);
100 ptr->finishCreation(globalData);
104 static const JSC::ClassInfo s_info;
105 static bool getOwnPropertySlot(JSC::JSCell*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertySlot&);
106 static bool getOwnPropertyDescriptor(JSC::JSObject*, JSC::ExecState*, const JSC::Identifier&, JSC::PropertyDescriptor&);
107 static JSC::Structure* createStructure(JSC::JSGlobalData& globalData, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
109 return JSC::Structure::create(globalData, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), &s_info);
113 JSJavaScriptCallFramePrototype(JSC::JSGlobalData& globalData, JSC::JSGlobalObject*, JSC::Structure* structure) : JSC::JSNonFinalObject(globalData, structure) { }
115 static const unsigned StructureFlags = JSC::OverridesGetOwnPropertySlot | Base::StructureFlags;
120 JSC::EncodedJSValue JSC_HOST_CALL jsJavaScriptCallFramePrototypeFunctionEvaluate(JSC::ExecState*);
121 JSC::EncodedJSValue JSC_HOST_CALL jsJavaScriptCallFramePrototypeFunctionScopeType(JSC::ExecState*);
124 JSC::JSValue jsJavaScriptCallFrameCaller(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
125 JSC::JSValue jsJavaScriptCallFrameSourceID(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
126 JSC::JSValue jsJavaScriptCallFrameLine(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
127 JSC::JSValue jsJavaScriptCallFrameColumn(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
128 JSC::JSValue jsJavaScriptCallFrameScopeChain(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
129 JSC::JSValue jsJavaScriptCallFrameThisObject(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
130 JSC::JSValue jsJavaScriptCallFrameFunctionName(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
131 JSC::JSValue jsJavaScriptCallFrameType(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
134 JSC::JSValue jsJavaScriptCallFrameGLOBAL_SCOPE(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
135 JSC::JSValue jsJavaScriptCallFrameLOCAL_SCOPE(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
136 JSC::JSValue jsJavaScriptCallFrameWITH_SCOPE(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
137 JSC::JSValue jsJavaScriptCallFrameCLOSURE_SCOPE(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
138 JSC::JSValue jsJavaScriptCallFrameCATCH_SCOPE(JSC::ExecState*, JSC::JSValue, const JSC::Identifier&);
140 } // namespace WebCore
142 #endif // ENABLE(JAVASCRIPT_DEBUGGER)