From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- .../JavaScriptCore/inspector/JavaScriptCallFrame.h | 25 ++++++++-------------- 1 file changed, 9 insertions(+), 16 deletions(-) (limited to 'Source/JavaScriptCore/inspector/JavaScriptCallFrame.h') diff --git a/Source/JavaScriptCore/inspector/JavaScriptCallFrame.h b/Source/JavaScriptCore/inspector/JavaScriptCallFrame.h index b584067a2..ee1f8aea3 100644 --- a/Source/JavaScriptCore/inspector/JavaScriptCallFrame.h +++ b/Source/JavaScriptCore/inspector/JavaScriptCallFrame.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2008, 2013 Apple Inc. All Rights Reserved. + * Copyright (C) 2008, 2013-2014 Apple Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -23,16 +23,12 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef JavaScriptCallFrame_h -#define JavaScriptCallFrame_h - -#if ENABLE(INSPECTOR) +#pragma once #include "JSCJSValueInlines.h" #include "debugger/DebuggerCallFrame.h" #include "interpreter/CallFrame.h" #include -#include #include #include @@ -40,9 +36,9 @@ namespace Inspector { class JavaScriptCallFrame : public RefCounted { public: - static PassRefPtr create(PassRefPtr debuggerCallFrame) + static Ref create(Ref&& debuggerCallFrame) { - return adoptRef(new JavaScriptCallFrame(debuggerCallFrame)); + return adoptRef(*new JavaScriptCallFrame(WTFMove(debuggerCallFrame))); } JavaScriptCallFrame* caller(); @@ -53,21 +49,18 @@ public: String functionName() const { return m_debuggerCallFrame->functionName(); } JSC::DebuggerCallFrame::Type type() const { return m_debuggerCallFrame->type(); } - JSC::JSScope* scopeChain() const { return m_debuggerCallFrame->scope(); } + JSC::DebuggerScope* scopeChain() const { return m_debuggerCallFrame->scope(); } JSC::JSGlobalObject* vmEntryGlobalObject() const { return m_debuggerCallFrame->vmEntryGlobalObject(); } + bool isTailDeleted() const { return m_debuggerCallFrame->isTailDeleted(); } JSC::JSValue thisValue() const { return m_debuggerCallFrame->thisValue(); } - JSC::JSValue evaluate(const String& script, JSC::JSValue& exception) const { return m_debuggerCallFrame->evaluate(script, exception); } + JSC::JSValue evaluateWithScopeExtension(const String& script, JSC::JSObject* scopeExtension, NakedPtr& exception) const { return m_debuggerCallFrame->evaluateWithScopeExtension(script, scopeExtension, exception); } private: - JavaScriptCallFrame(PassRefPtr); + JavaScriptCallFrame(Ref&&); - RefPtr m_debuggerCallFrame; + Ref m_debuggerCallFrame; RefPtr m_caller; }; } // namespace Inspector - -#endif // ENABLE(INSPECTOR) - -#endif // JavaScriptCallFrame_h -- cgit v1.2.1