summaryrefslogtreecommitdiff
path: root/Source/JavaScriptCore/inspector/JavaScriptCallFrame.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/JavaScriptCore/inspector/JavaScriptCallFrame.h')
-rw-r--r--Source/JavaScriptCore/inspector/JavaScriptCallFrame.h25
1 files changed, 9 insertions, 16 deletions
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 <wtf/Forward.h>
-#include <wtf/PassRefPtr.h>
#include <wtf/RefCounted.h>
#include <wtf/text/TextPosition.h>
@@ -40,9 +36,9 @@ namespace Inspector {
class JavaScriptCallFrame : public RefCounted<JavaScriptCallFrame> {
public:
- static PassRefPtr<JavaScriptCallFrame> create(PassRefPtr<JSC::DebuggerCallFrame> debuggerCallFrame)
+ static Ref<JavaScriptCallFrame> create(Ref<JSC::DebuggerCallFrame>&& 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<JSC::Exception>& exception) const { return m_debuggerCallFrame->evaluateWithScopeExtension(script, scopeExtension, exception); }
private:
- JavaScriptCallFrame(PassRefPtr<JSC::DebuggerCallFrame>);
+ JavaScriptCallFrame(Ref<JSC::DebuggerCallFrame>&&);
- RefPtr<JSC::DebuggerCallFrame> m_debuggerCallFrame;
+ Ref<JSC::DebuggerCallFrame> m_debuggerCallFrame;
RefPtr<JavaScriptCallFrame> m_caller;
};
} // namespace Inspector
-
-#endif // ENABLE(INSPECTOR)
-
-#endif // JavaScriptCallFrame_h