diff options
Diffstat (limited to 'Source/JavaScriptCore/inspector/JSJavaScriptCallFrame.h')
-rw-r--r-- | Source/JavaScriptCore/inspector/JSJavaScriptCallFrame.h | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/Source/JavaScriptCore/inspector/JSJavaScriptCallFrame.h b/Source/JavaScriptCore/inspector/JSJavaScriptCallFrame.h index dbbb93fa2..2ac247cae 100644 --- a/Source/JavaScriptCore/inspector/JSJavaScriptCallFrame.h +++ b/Source/JavaScriptCore/inspector/JSJavaScriptCallFrame.h @@ -23,10 +23,7 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef JSJavaScriptCallFrame_h -#define JSJavaScriptCallFrame_h - -#if ENABLE(INSPECTOR) +#pragma once #include "JSDestructibleObject.h" #include "JavaScriptCallFrame.h" @@ -36,6 +33,7 @@ namespace Inspector { class JSJavaScriptCallFrame : public JSC::JSDestructibleObject { public: typedef JSC::JSDestructibleObject Base; + static const unsigned StructureFlags = Base::StructureFlags; DECLARE_INFO; @@ -44,9 +42,9 @@ public: return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info()); } - static JSJavaScriptCallFrame* create(JSC::VM& vm, JSC::Structure* structure, PassRefPtr<JavaScriptCallFrame> impl) + static JSJavaScriptCallFrame* create(JSC::VM& vm, JSC::Structure* structure, Ref<JavaScriptCallFrame>&& impl) { - JSJavaScriptCallFrame* instance = new (NotNull, JSC::allocateCell<JSJavaScriptCallFrame>(vm.heap)) JSJavaScriptCallFrame(vm, structure, impl); + JSJavaScriptCallFrame* instance = new (NotNull, JSC::allocateCell<JSJavaScriptCallFrame>(vm.heap)) JSJavaScriptCallFrame(vm, structure, WTFMove(impl)); instance->finishCreation(vm); return instance; } @@ -58,8 +56,8 @@ public: void releaseImpl(); // Functions. - JSC::JSValue evaluate(JSC::ExecState*); - JSC::JSValue scopeType(JSC::ExecState*); + JSC::JSValue evaluateWithScopeExtension(JSC::ExecState*); + JSC::JSValue scopeDescriptions(JSC::ExecState*); // Attributes. JSC::JSValue caller(JSC::ExecState*) const; @@ -70,31 +68,27 @@ public: JSC::JSValue scopeChain(JSC::ExecState*) const; JSC::JSValue thisObject(JSC::ExecState*) const; JSC::JSValue type(JSC::ExecState*) const; + JSC::JSValue isTailDeleted(JSC::ExecState*) const; // Constants. static const unsigned short GLOBAL_SCOPE = 0; - static const unsigned short LOCAL_SCOPE = 1; - static const unsigned short WITH_SCOPE = 2; - static const unsigned short CLOSURE_SCOPE = 3; - static const unsigned short CATCH_SCOPE = 4; + static const unsigned short WITH_SCOPE = 1; + static const unsigned short CLOSURE_SCOPE = 2; + static const unsigned short CATCH_SCOPE = 3; + static const unsigned short FUNCTION_NAME_SCOPE = 4; + static const unsigned short GLOBAL_LEXICAL_ENVIRONMENT_SCOPE = 5; + static const unsigned short NESTED_LEXICAL_SCOPE = 6; protected: - static const unsigned StructureFlags = Base::StructureFlags; - void finishCreation(JSC::VM&); private: - JSJavaScriptCallFrame(JSC::VM&, JSC::Structure*, PassRefPtr<JavaScriptCallFrame>); + JSJavaScriptCallFrame(JSC::VM&, JSC::Structure*, Ref<JavaScriptCallFrame>&&); ~JSJavaScriptCallFrame(); JavaScriptCallFrame* m_impl; }; JSC::JSValue toJS(JSC::ExecState*, JSC::JSGlobalObject*, JavaScriptCallFrame*); -JSJavaScriptCallFrame* toJSJavaScriptCallFrame(JSC::JSValue); } // namespace Inspector - -#endif // ENABLE(INSPECTOR) - -#endif // !defined(JSJavaScriptCallFrame_h) |