summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/JavaScriptCore/runtime/PropertySlot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/webkit/JavaScriptCore/runtime/PropertySlot.cpp')
-rw-r--r--src/3rdparty/webkit/JavaScriptCore/runtime/PropertySlot.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/3rdparty/webkit/JavaScriptCore/runtime/PropertySlot.cpp b/src/3rdparty/webkit/JavaScriptCore/runtime/PropertySlot.cpp
index e0a1b5d..08f50b4 100644
--- a/src/3rdparty/webkit/JavaScriptCore/runtime/PropertySlot.cpp
+++ b/src/3rdparty/webkit/JavaScriptCore/runtime/PropertySlot.cpp
@@ -19,8 +19,10 @@
*/
#include "config.h"
+#ifdef QT_BUILD_SCRIPT_LIB
#include "ExceptionHelpers.h"
#include "Interpreter.h"
+#endif
#include "PropertySlot.h"
#include "JSFunction.h"
@@ -38,6 +40,7 @@ JSValue PropertySlot::functionGetter(ExecState* exec, const Identifier&, const P
CallData callData;
CallType callType = slot.m_data.getterFunc->getCallData(callData);
if (callType == CallTypeHost) {
+#ifdef QT_BUILD_SCRIPT_LIB
ScopeChainNode* scopeChain = exec->scopeChain();
Interpreter *interp = exec->interpreter();
Register *oldEnd = interp->registerFile().end();
@@ -51,6 +54,9 @@ JSValue PropertySlot::functionGetter(ExecState* exec, const Identifier&, const P
JSValue result = callData.native.function(newCallFrame, slot.m_data.getterFunc, slot.slotBase(), exec->emptyList());
interp->registerFile().shrink(oldEnd);
return result;
+#else
+ return callData.native.function(exec, slot.m_data.getterFunc, slot.slotBase(), exec->emptyList());
+#endif
}
ASSERT(callType == CallTypeJS);
// FIXME: Can this be done more efficiently using the callData?