https://bugs.webkit.org/show_bug.cgi?id=114058
Reviewed by Anders Carlsson.
../JavaScriptCore:
* config.h:
../ThirdParty:
* gtest/include/gtest/internal/gtest-port.h:
../WebCore:
* Modules/webdatabase/Database.cpp:
* bindings/ScriptControllerBase.cpp:
(WebCore::ScriptController::executeIfJavaScriptURL):
* bindings/js/JavaScriptCallFrame.cpp:
* bindings/js/JavaScriptCallFrame.h:
* bindings/scripts/InFilesCompiler.pm:
(generateHeadersHeader):
* css/MediaQueryListListener.cpp:
(WebCore::MediaQueryListListener::queryChanged):
* dom/ContainerNode.cpp:
(WebCore::dispatchChildRemovalEvents):
* dom/EventListener.h:
(EventListener):
(WebCore::EventListener::visitJSFunction):
* dom/EventTarget.h:
(EventTarget):
(WebCore):
(WebCore::EventTarget::visitJSEventListeners):
* dom/Node.cpp:
* dom/Node.h:
* dom/ScriptExecutionContext.cpp:
(WebCore):
(WebCore::ScriptExecutionContext::globalData):
* dom/ScriptExecutionContext.h:
(ScriptExecutionContext):
* html/HTMLCanvasElement.cpp:
(WebCore::HTMLCanvasElement::createImageBuffer):
* html/HTMLImageLoader.cpp:
(WebCore::HTMLImageLoader::notifyFinished):
* inspector/InjectedScriptHost.h:
(InjectedScriptHost):
(WebCore::InjectedScriptHost::evaluateReturnsEvalFunction):
* inspector/InspectorInstrumentation.cpp:
(WebCore):
(WebCore::InspectorInstrumentation::didCommitLoadImpl):
* page/Frame.cpp:
* page/Settings.cpp:
(WebCore):
(WebCore::Settings::shouldRespectPriorityInCSSAttributeSetters):
* page/Settings.h:
(Settings):
* plugins/PluginView.cpp:
(WebCore::PluginView::start):
(WebCore::PluginView::stop):
(WebCore::PluginView::performRequest):
(WebCore::PluginView::npObject):
(WebCore):
(WebCore::PluginView::bindingInstance):
(WebCore::PluginView::privateBrowsingStateChanged):
* plugins/PluginView.h:
(PluginView):
* plugins/PluginViewBase.h:
(PluginViewBase):
(WebCore::PluginViewBase::scriptObject):
* plugins/PluginViewNone.cpp:
(WebCore):
(WebCore::PluginView::bindingInstance):
* plugins/qt/PluginViewQt.cpp:
(WebCore::PluginView::dispatchNPEvent):
(WebCore::PluginView::setNPWindowIfNeeded):
* xml/XMLHttpRequest.cpp:
(WebCore::XMLHttpRequest::dropProtection):
../WebKit/efl:
* ewk/ewk_frame.cpp:
(ewk_frame_script_execute):
../WebKit/qt:
* Api/qwebscriptworld.cpp:
(QWebScriptWorld::QWebScriptWorld):
../WebKit2:
* Shared/linux/WebMemorySamplerLinux.cpp:
(WebKit::WebMemorySampler::sampleWebKit):
* config.h:
../WTF:
* wtf/ThreadRestrictionVerifier.h:
(WTF):
* wtf/WTFThreadData.cpp:
(WTF::WTFThreadData::WTFThreadData):
(WTF::WTFThreadData::~WTFThreadData):
* wtf/WTFThreadData.h:
(WTFThreadData):
* wtf/text/StringImpl.cpp:
(WTF::StringImpl::~StringImpl):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@147795
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2013-04-05 Geoffrey Garen <ggaren@apple.com>
+
+ Made USE(JSC) unconditional
+ https://bugs.webkit.org/show_bug.cgi?id=114058
+
+ Reviewed by Anders Carlsson.
+
+ * config.h:
+
2013-04-05 Filip Pizlo <fpizlo@apple.com>
Unreviewed, rolling out http://trac.webkit.org/changeset/147729
#include <wtf/Platform.h>
#include <wtf/ExportMacros.h>
-// WTF cannot depend on JSC even if USE(JSC).
-#if USE(JSC) && !defined(BUILDING_WTF)
+#if !defined(BUILDING_WTF)
#include "JSExportMacros.h"
-#elif PLATFORM(CHROMIUM)
-// Chromium doesn't have runtime/ in its include paths.
-#include "runtime/JSExportMacros.h"
#endif
#if OS(WINDOWS)
+2013-04-05 Geoffrey Garen <ggaren@apple.com>
+
+ Made USE(JSC) unconditional
+ https://bugs.webkit.org/show_bug.cgi?id=114058
+
+ Reviewed by Anders Carlsson.
+
+ * gtest/include/gtest/internal/gtest-port.h:
+
2013-03-29 Martin Robinson <mrobinson@igalia.com>
Update the version of gyp in the repository
#include <wtf/Platform.h>
#include <wtf/ExportMacros.h>
-#if USE(JSC)
#include <runtime/JSExportMacros.h>
-#endif
#include <wtf/Assertions.h>
#include <wtf/FastMalloc.h>
+2013-04-05 Geoffrey Garen <ggaren@apple.com>
+
+ Made USE(JSC) unconditional
+ https://bugs.webkit.org/show_bug.cgi?id=114058
+
+ Reviewed by Anders Carlsson.
+
+ * wtf/ThreadRestrictionVerifier.h:
+ (WTF):
+ * wtf/WTFThreadData.cpp:
+ (WTF::WTFThreadData::WTFThreadData):
+ (WTF::WTFThreadData::~WTFThreadData):
+ * wtf/WTFThreadData.h:
+ (WTFThreadData):
+ * wtf/text/StringImpl.cpp:
+ (WTF::StringImpl::~StringImpl):
+
2013-04-05 Roger Fong <roger_fong@apple.com>
More VS2010 solution makefile fixes.
// The default mode is to verify that the object will only be used on a single thread. The
// thread gets captured when setShared(true) is called.
// The mode may be changed by calling useMutexMode (or turnOffVerification).
-#if !USE(JSC) // This verifier is completely wrong for JavaScript implementations that use threads
+
+// FIXME: This verifier is switched off because it fires false positives for
+// objects that are used on multiple threads. Instead of an opt-out verifier,
+// we probably need an opt-in verifier that marks select objects as being
+// tied to select threads.
+#if 0
class ThreadRestrictionVerifier {
public:
ThreadRestrictionVerifier()
dispatch_queue_t m_owningQueue;
#endif
};
-#else // !USE(JSC) => so the JSC case
+#else
class ThreadRestrictionVerifier {
public:
ThreadRestrictionVerifier()
: m_apiData(0)
, m_atomicStringTable(0)
, m_atomicStringTableDestructor(0)
-#if USE(JSC)
, m_defaultIdentifierTable(new JSC::IdentifierTable())
, m_currentIdentifierTable(m_defaultIdentifierTable)
, m_stackBounds(StackBounds::currentThreadStackBounds())
#if ENABLE(STACK_STATS)
, m_stackStats()
#endif
-#endif // USE(JSC)
{
}
{
if (m_atomicStringTableDestructor)
m_atomicStringTableDestructor(m_atomicStringTable);
-#if USE(JSC)
delete m_defaultIdentifierTable;
-#endif
}
} // namespace WTF
-#if USE(JSC)
namespace JSC {
IdentifierTable::~IdentifierTable()
}
} // namespace JSC
-#endif
-
#include <wtf/ThreadSpecific.h>
#include <wtf/Threading.h>
-#if USE(JSC)
// FIXME: This is a temporary layering violation while we move more string code to WTF.
namespace JSC {
};
}
-#endif
namespace WTF {
return m_atomicStringTable;
}
-#if USE(JSC)
JSC::IdentifierTable* currentIdentifierTable()
{
return m_currentIdentifierTable;
return m_stackStats;
}
#endif
-#endif // USE(JSC)
void* m_apiData;
AtomicStringTable* m_atomicStringTable;
AtomicStringTableDestructor m_atomicStringTableDestructor;
-#if USE(JSC)
JSC::IdentifierTable* m_defaultIdentifierTable;
JSC::IdentifierTable* m_currentIdentifierTable;
StackBounds m_stackBounds;
#if ENABLE(STACK_STATS)
StackStats::PerThreadStats m_stackStats;
#endif
-#endif // USE(JSC)
static WTF_EXPORTDATA ThreadSpecific<WTFThreadData>* staticData;
friend WTFThreadData& wtfThreadData();
if (isAtomic())
AtomicString::remove(this);
-#if USE(JSC)
if (isIdentifier()) {
if (!wtfThreadData().currentIdentifierTable()->remove(this))
CRASH();
}
-#endif
BufferOwnership ownership = bufferOwnership();
+2013-04-05 Geoffrey Garen <ggaren@apple.com>
+
+ Made USE(JSC) unconditional
+ https://bugs.webkit.org/show_bug.cgi?id=114058
+
+ Reviewed by Anders Carlsson.
+
+ * Modules/webdatabase/Database.cpp:
+ * bindings/ScriptControllerBase.cpp:
+ (WebCore::ScriptController::executeIfJavaScriptURL):
+ * bindings/js/JavaScriptCallFrame.cpp:
+ * bindings/js/JavaScriptCallFrame.h:
+ * bindings/scripts/InFilesCompiler.pm:
+ (generateHeadersHeader):
+ * css/MediaQueryListListener.cpp:
+ (WebCore::MediaQueryListListener::queryChanged):
+ * dom/ContainerNode.cpp:
+ (WebCore::dispatchChildRemovalEvents):
+ * dom/EventListener.h:
+ (EventListener):
+ (WebCore::EventListener::visitJSFunction):
+ * dom/EventTarget.h:
+ (EventTarget):
+ (WebCore):
+ (WebCore::EventTarget::visitJSEventListeners):
+ * dom/Node.cpp:
+ * dom/Node.h:
+ * dom/ScriptExecutionContext.cpp:
+ (WebCore):
+ (WebCore::ScriptExecutionContext::globalData):
+ * dom/ScriptExecutionContext.h:
+ (ScriptExecutionContext):
+ * html/HTMLCanvasElement.cpp:
+ (WebCore::HTMLCanvasElement::createImageBuffer):
+ * html/HTMLImageLoader.cpp:
+ (WebCore::HTMLImageLoader::notifyFinished):
+ * inspector/InjectedScriptHost.h:
+ (InjectedScriptHost):
+ (WebCore::InjectedScriptHost::evaluateReturnsEvalFunction):
+ * inspector/InspectorInstrumentation.cpp:
+ (WebCore):
+ (WebCore::InspectorInstrumentation::didCommitLoadImpl):
+ * page/Frame.cpp:
+ * page/Settings.cpp:
+ (WebCore):
+ (WebCore::Settings::shouldRespectPriorityInCSSAttributeSetters):
+ * page/Settings.h:
+ (Settings):
+ * plugins/PluginView.cpp:
+ (WebCore::PluginView::start):
+ (WebCore::PluginView::stop):
+ (WebCore::PluginView::performRequest):
+ (WebCore::PluginView::npObject):
+ (WebCore):
+ (WebCore::PluginView::bindingInstance):
+ (WebCore::PluginView::privateBrowsingStateChanged):
+ * plugins/PluginView.h:
+ (PluginView):
+ * plugins/PluginViewBase.h:
+ (PluginViewBase):
+ (WebCore::PluginViewBase::scriptObject):
+ * plugins/PluginViewNone.cpp:
+ (WebCore):
+ (WebCore::PluginView::bindingInstance):
+ * plugins/qt/PluginViewQt.cpp:
+ (WebCore::PluginView::dispatchNPEvent):
+ (WebCore::PluginView::setNPWindowIfNeeded):
+ * xml/XMLHttpRequest.cpp:
+ (WebCore::XMLHttpRequest::dropProtection):
+
2013-04-05 Roger Fong <roger_fong@apple.com>
More VS2010 solution makefile fixes.
#include "DatabaseThread.h"
#include "DatabaseTracker.h"
#include "Document.h"
+#include "JSDOMWindow.h"
#include "Logging.h"
#include "NotImplemented.h"
#include "Page.h"
#include <wtf/StdLibExtras.h>
#include <wtf/text/CString.h>
-#if USE(JSC)
-#include "JSDOMWindow.h"
-#endif
-
namespace WebCore {
PassRefPtr<Database> Database::create(ScriptExecutionContext*, PassRefPtr<DatabaseBackendBase> backend)
return true;
String scriptResult;
-#if USE(JSC)
JSDOMWindowShell* shell = windowShell(mainThreadNormalWorld());
JSC::ExecState* exec = shell->window()->globalExec();
if (!result.getString(exec, scriptResult))
return true;
-#else
- if (!result.getString(scriptResult))
- return true;
-#endif
// FIXME: We should always replace the document, but doing so
// synchronously can cause crashes:
#include "config.h"
-#if ENABLE(JAVASCRIPT_DEBUGGER) && USE(JSC)
+#if ENABLE(JAVASCRIPT_DEBUGGER)
#include "JavaScriptCallFrame.h"
#ifndef JavaScriptCallFrame_h
#define JavaScriptCallFrame_h
-#if ENABLE(JAVASCRIPT_DEBUGGER) && USE(JSC)
+#if ENABLE(JAVASCRIPT_DEBUGGER)
#include <debugger/DebuggerCallFrame.h>
#include <interpreter/CallFrame.h>
print F "#if " . $object->conditionalStringFromAttributeValue($conditional) . "\n" if $conditional;
print F "#include \"$interfaceName.h\"\n";
- print F "#if USE(JSC)\n";
print F "#include \"JS$interfaceName.h\"\n";
- print F "#elif USE(V8)\n";
- print F "#include \"V8$interfaceName.h\"\n";
- print F "#endif\n";
print F "#endif\n" if $conditional;
}
#include "MediaQueryList.h"
#include "ScriptFunctionCall.h"
-#if USE(JSC)
#include "JSMediaQueryList.h"
-#else
-#include "V8MediaQueryList.h"
-#endif
namespace WebCore {
void MediaQueryListListener::queryChanged(ScriptState* state, MediaQueryList* query)
{
ScriptCallback callback(state, m_value);
-#if USE(JSC)
callback.appendArgument(toJS(state, deprecatedGlobalObjectForPrototype(state), query));
-#else
- v8::HandleScope handleScope;
- v8::Handle<v8::Context> context = state->context();
- if (context.IsEmpty())
- return; // JS may not be enabled.
- v8::Context::Scope scope(context);
- callback.appendArgument(toV8(query, v8::Handle<v8::Object>(), context->GetIsolate()));
-#endif
callback.call();
}
#include <wtf/CurrentTime.h>
#include <wtf/Vector.h>
-#if USE(JSC)
#include "JSNode.h"
-#endif
using namespace std;
ASSERT(!NoEventDispatchAssertion::isEventDispatchForbidden());
-#if USE(JSC)
willCreatePossiblyOrphanedTreeByRemoval(child);
-#endif
InspectorInstrumentation::willRemoveDOMNode(child->document(), child);
RefPtr<Node> c = child;
virtual void handleEvent(ScriptExecutionContext*, Event*) = 0;
virtual bool wasCreatedFromMarkup() const { return false; }
-#if USE(JSC)
virtual void visitJSFunction(JSC::SlotVisitor&) { }
-#endif
bool isAttribute() const { return virtualisAttribute(); }
Type type() const { return m_type; }
bool fireEventListeners(Event*);
bool isFiringEventListeners();
-#if USE(JSC)
void visitJSEventListeners(JSC::SlotVisitor&);
void invalidateJSEventListeners(JSC::JSObject*);
-#endif
protected:
virtual ~EventTarget();
EventListener* on##attribute() { return recipient ? recipient->getAttributeEventListener(eventNames().attribute##Event) : 0; } \
void setOn##attribute(PassRefPtr<EventListener> listener) { if (recipient) recipient->setAttributeEventListener(eventNames().attribute##Event, listener); } \
-#if USE(JSC)
inline void EventTarget::visitJSEventListeners(JSC::SlotVisitor& visitor)
{
EventListenerIterator iterator(this);
while (EventListener* listener = iterator.nextListener())
listener->visitJSFunction(visitor);
}
-#endif
inline bool EventTarget::isFiringEventListeners()
{
#include "InspectorController.h"
#endif
-#if USE(JSC)
#include <runtime/JSGlobalData.h>
#include <runtime/Operations.h>
-#endif
#if ENABLE(MICRODATA)
#include "HTMLPropertiesCollection.h"
#include <wtf/ListHashSet.h>
#include <wtf/text/AtomicString.h>
-#if USE(JSC)
namespace JSC {
class JSGlobalData;
class SlotVisitor;
}
-#endif
// This needs to be here because Document.h also depends on it.
#define DUMP_NODE_STATISTICS 0
#include <wtf/PassRefPtr.h>
#include <wtf/Vector.h>
-#if USE(JSC)
// FIXME: This is a layering violation.
#include "JSDOMWindow.h"
-#endif
#if ENABLE(SQL_DATABASE)
#include "DatabaseContext.h"
{
}
-#if USE(JSC)
JSC::JSGlobalData* ScriptExecutionContext::globalData()
{
if (isDocument())
ASSERT_NOT_REACHED();
return 0;
}
-#endif
#if ENABLE(SQL_DATABASE)
void ScriptExecutionContext::setDatabaseContext(DatabaseContext* databaseContext)
#include "ScriptState.h"
#include "SecurityContext.h"
#include "Supplementable.h"
+#include <runtime/JSGlobalData.h>
#include <wtf/Forward.h>
#include <wtf/HashSet.h>
#include <wtf/Noncopyable.h>
#include <wtf/Threading.h>
#include <wtf/text/StringHash.h>
-#if USE(JSC)
-#include <runtime/JSGlobalData.h>
-#endif
-
namespace WebCore {
class CachedScript;
void removeTimeout(int timeoutId) { m_timeouts.remove(timeoutId); }
DOMTimer* findTimeout(int timeoutId) { return m_timeouts.get(timeoutId); }
-#if USE(JSC)
JSC::JSGlobalData* globalData();
-#endif
// Interval is in seconds.
void adjustMinimumTimerInterval(double oldMinimumTimerInterval);
#include <math.h>
#include <stdio.h>
-#if USE(JSC)
#include <runtime/JSLock.h>
#include <runtime/Operations.h>
-#endif
#if ENABLE(WEBGL)
#include "WebGLContextAttributes.h"
m_imageBuffer->context()->setStrokeThickness(1);
m_contextStateSaver = adoptPtr(new GraphicsContextStateSaver(*m_imageBuffer->context()));
-#if USE(JSC)
JSC::JSLockHolder lock(scriptExecutionContext()->globalData());
size_t numBytes = 4 * m_imageBuffer->internalSize().width() * m_imageBuffer->internalSize().height();
scriptExecutionContext()->globalData()->heap.reportExtraMemoryCost(numBytes);
-#endif
#if USE(IOSURFACE_CANVAS_BACKING_STORE) || (ENABLE(ACCELERATED_2D_CANVAS) && USE(ACCELERATED_COMPOSITING))
if (m_context && m_context->is2d())
#include "HTMLParserIdioms.h"
#include "Settings.h"
-#if USE(JSC)
#include "JSDOMWindowBase.h"
#include <runtime/JSLock.h>
#include <runtime/Operations.h>
-#endif
namespace WebCore {
ImageLoader::notifyFinished(cachedImage);
bool loadError = cachedImage->errorOccurred() || cachedImage->response().httpStatusCode() >= 400;
-#if USE(JSC)
if (!loadError) {
if (!element->inDocument()) {
JSC::JSGlobalData* globalData = JSDOMWindowBase::commonJSGlobalData();
globalData->heap.reportExtraMemoryCost(cachedImage->encodedSize());
}
}
-#endif
if (loadError && element->hasTagName(HTMLNames::objectTag))
static_cast<HTMLObjectElement*>(element.get())->renderFallbackContent();
void getEventListenersImpl(Node*, Vector<EventListenerInfo>& listenersArray);
// FIXME: Remove evaluateReturnsEvalFunction once InjectedScriptHost returns eval in evaluate on V8. https://webkit.org/b/113134
-#if USE(JSC)
bool evaluateReturnsEvalFunction() { return true; }
-#else
- bool evaluateReturnsEvalFunction() { return false; }
-#endif
void clearConsoleMessages();
void copyText(const String& text);
if (InspectorResourceAgent* resourceAgent = instrumentingAgents->inspectorResourceAgent())
resourceAgent->mainFrameNavigated(loader);
-#if ENABLE(JAVASCRIPT_DEBUGGER) && USE(JSC)
+#if ENABLE(JAVASCRIPT_DEBUGGER)
if (InspectorProfilerAgent* profilerAgent = instrumentingAgents->inspectorProfilerAgent())
profilerAgent->resetState();
if (InspectorHeapProfilerAgent* heapProfilerAgent = instrumentingAgents->inspectorHeapProfilerAgent())
#include "CSSComputedStyleDeclaration.h"
#include "CSSPropertyNames.h"
#include "CachedCSSStyleSheet.h"
+#include "CachedResourceLoader.h"
#include "Chrome.h"
#include "ChromeClient.h"
#include "DOMWindow.h"
-#include "CachedResourceLoader.h"
#include "DocumentType.h"
#include "EditorClient.h"
#include "Event.h"
#include "HitTestResult.h"
#include "ImageBuffer.h"
#include "InspectorInstrumentation.h"
+#include "JSDOMWindowShell.h"
#include "Logging.h"
+#include "MathMLNames.h"
#include "MediaFeatureNames.h"
#include "Navigator.h"
#include "NodeList.h"
#include "RenderTheme.h"
#include "RenderView.h"
#include "RuntimeEnabledFeatures.h"
+#include "SVGNames.h"
#include "ScriptController.h"
#include "ScriptSourceCode.h"
#include "ScriptValue.h"
#include "UserTypingGestureIndicator.h"
#include "VisibleUnits.h"
#include "WebKitFontFamilyNames.h"
+#include "XLinkNames.h"
#include "XMLNSNames.h"
#include "XMLNames.h"
#include "htmlediting.h"
#include "markup.h"
#include "npruntime_impl.h"
+#include "runtime_root.h"
#include <wtf/PassOwnPtr.h>
#include <wtf/RefCountedLeakCounter.h>
#include <wtf/StdLibExtras.h>
#include "RenderLayerCompositor.h"
#endif
-#if USE(JSC)
-#include "JSDOMWindowShell.h"
-#include "runtime_root.h"
-#endif
-
-#include "MathMLNames.h"
-#include "SVGNames.h"
-#include "XLinkNames.h"
-
#if ENABLE(SVG)
#include "SVGDocument.h"
#include "SVGDocumentExtensions.h"
bool Settings::gShouldUseHighResolutionTimers = true;
#endif
-#if USE(JSC)
bool Settings::gShouldRespectPriorityInCSSAttributeSetters = false;
-#endif
// NOTEs
// 1) EditingMacBehavior comprises Tiger, Leopard, SnowLeopard and iOS builds, as well as QtWebKit when built on Mac;
return gUsesOverlayScrollbars;
}
-#if USE(JSC)
void Settings::setShouldRespectPriorityInCSSAttributeSetters(bool flag)
{
gShouldRespectPriorityInCSSAttributeSetters = flag;
{
return gShouldRespectPriorityInCSSAttributeSetters;
}
-#endif
#if ENABLE(HIDDEN_PAGE_DOM_TIMER_THROTTLING)
void Settings::setHiddenPageDOMTimerThrottlingEnabled(bool flag)
void setAggressiveTileRetentionEnabled(bool);
bool aggressiveTileRetentionEnabled() { return m_aggressiveTileRetentionEnabled; }
-#if USE(JSC)
static void setShouldRespectPriorityInCSSAttributeSetters(bool);
static bool shouldRespectPriorityInCSSAttributeSetters();
-#endif
void setTimeWithoutMouseMovementBeforeHidingControls(double time) { m_timeWithoutMouseMovementBeforeHidingControls = time; }
double timeWithoutMouseMovementBeforeHidingControls() const { return m_timeWithoutMouseMovementBeforeHidingControls; }
#if PLATFORM(WIN) || (OS(WINDOWS) && PLATFORM(WX))
static bool gShouldUseHighResolutionTimers;
#endif
-#if USE(JSC)
static bool gShouldRespectPriorityInCSSAttributeSetters;
-#endif
static double gHiddenPageDOMTimerAlignmentInterval;
};
#include "config.h"
#include "PluginView.h"
-#if USE(JSC)
#include "BridgeJSC.h"
-#endif
#include "Chrome.h"
#include "CookieJar.h"
#include "Document.h"
#include "HTMLNames.h"
#include "HTMLPlugInElement.h"
#include "Image.h"
+#include "JSDOMBinding.h"
+#include "JSDOMWindow.h"
#include "KeyboardEvent.h"
#include "MIMETypeRegistry.h"
#include "MouseEvent.h"
#include "SecurityOrigin.h"
#include "Settings.h"
#include "WheelEvent.h"
+#include "c_instance.h"
#include "npruntime_impl.h"
+#include "runtime_root.h"
+#include <runtime/JSCJSValue.h>
+#include <runtime/JSLock.h>
#include <wtf/ASCIICType.h>
#include <wtf/text/WTFString.h>
#include "PluginMessageThrottlerWin.h"
#endif
-#if USE(JSC)
-#include "JSDOMBinding.h"
-#include "JSDOMWindow.h"
-#include "c_instance.h"
-#include "runtime_root.h"
-#include <runtime/JSCJSValue.h>
-#include <runtime/JSLock.h>
-
using JSC::ExecState;
using JSC::JSLock;
using JSC::JSObject;
using JSC::JSValue;
-#endif
#if ENABLE(NETSCAPE_PLUGIN_API)
NPError npErr;
{
PluginView::setCurrentPluginView(this);
-#if USE(JSC)
JSC::JSLock::DropAllLocks dropAllLocks(JSDOMWindowBase::commonJSGlobalData());
-#endif
setCallingPlugin(true);
npErr = m_plugin->pluginFuncs()->newp((NPMIMEType)m_mimeType.utf8().data(), m_instance, m_mode, m_paramCount, m_paramNames, m_paramValues, NULL);
setCallingPlugin(false);
m_isStarted = false;
-#if USE(JSC)
JSC::JSLock::DropAllLocks dropAllLocks(JSDOMWindowBase::commonJSGlobalData());
-#endif
#if ENABLE(NETSCAPE_PLUGIN_API)
#if defined(XP_WIN) && !PLATFORM(GTK)
// FIXME: <rdar://problem/4807469> This should be sent when the document has finished loading
if (request->sendNotification()) {
PluginView::setCurrentPluginView(this);
-#if USE(JSC)
JSC::JSLock::DropAllLocks dropAllLocks(JSDOMWindowBase::commonJSGlobalData());
-#endif
setCallingPlugin(true);
m_plugin->pluginFuncs()->urlnotify(m_instance, requestURL.string().utf8().data(), NPRES_DONE, request->notifyData());
setCallingPlugin(false);
if (targetFrameName.isNull()) {
String resultString;
-#if USE(JSC)
ScriptState* scriptState = m_parentFrame->script()->globalObject(pluginWorld())->globalExec();
-#elif USE(V8)
- ScriptState* scriptState = 0; // Not used with V8
-#endif
CString cstr;
if (result.getString(scriptState, resultString))
cstr = resultString.utf8();
NPError npErr;
{
PluginView::setCurrentPluginView(this);
-#if USE(JSC)
JSC::JSLock::DropAllLocks dropAllLocks(JSDOMWindowBase::commonJSGlobalData());
-#endif
setCallingPlugin(true);
npErr = m_plugin->pluginFuncs()->getvalue(m_instance, NPPVpluginScriptableNPObject, &object);
setCallingPlugin(false);
}
#endif
-#if USE(JSC)
PassRefPtr<JSC::Bindings::Instance> PluginView::bindingInstance()
{
#if ENABLE(NETSCAPE_PLUGIN_API)
return 0;
#endif
}
-#endif
void PluginView::disconnectStream(PluginStream* stream)
{
return;
PluginView::setCurrentPluginView(this);
-#if USE(JSC)
JSC::JSLock::DropAllLocks dropAllLocks(JSDOMWindowBase::commonJSGlobalData());
-#endif
setCallingPlugin(true);
NPBool value = privateBrowsingEnabled;
setValue(m_instance, NPNVprivateModeBool, &value);
typedef struct _GtkSocket GtkSocket;
#endif
-#if USE(JSC)
namespace JSC {
namespace Bindings {
class Instance;
}
}
-#endif
namespace WebCore {
class Frame;
#if ENABLE(NETSCAPE_PLUGIN_API)
NPObject* npObject();
#endif
-#if USE(JSC)
PassRefPtr<JSC::Bindings::Instance> bindingInstance();
-#endif
PluginStatus status() const { return m_status; }
#include "Widget.h"
#include <wtf/text/WTFString.h>
-#if USE(V8)
-struct NPObject;
-#endif
-#if USE(JSC)
namespace JSC {
class ExecState;
class JSGlobalObject;
class JSObject;
}
-#endif
namespace WebCore {
virtual PlatformLayer* platformLayer() const { return 0; }
#endif
-#if USE(V8)
- virtual NPObject* scriptableObject() { return 0; }
-#endif
-#if USE(JSC)
virtual JSC::JSObject* scriptObject(JSC::JSGlobalObject*) { return 0; }
-#endif
virtual void storageBlockingStateChanged() { }
virtual void privateBrowsingStateChanged(bool) { }
virtual bool getFormValue(String&) { return false; }
#include "config.h"
#include "PluginView.h"
-#if USE(JSC)
#include "BridgeJSC.h"
#include <runtime/JSObject.h>
-#endif
using namespace WTF;
}
#endif
-#if USE(JSC)
PassRefPtr<JSC::Bindings::Instance> PluginView::bindingInstance()
{
return 0;
}
-#endif
void PluginView::privateBrowsingStateChanged(bool)
{
#include "config.h"
#include "PluginView.h"
-#if USE(JSC)
#include "BridgeJSC.h"
-#endif
#include "Chrome.h"
#include "ChromeClient.h"
#include "Document.h"
#include "HostWindow.h"
#include "IFrameShimSupport.h"
#include "Image.h"
-#if USE(JSC)
#include "JSDOMBinding.h"
-#endif
#include "KeyboardEvent.h"
#include "MouseEvent.h"
#include "NotImplemented.h"
#include "RenderObject.h"
#include "Settings.h"
#include "npruntime_impl.h"
-#if USE(JSC)
#include "runtime_root.h"
-#endif
#include <QKeyEvent>
#include <QPainter>
#include <X11/X.h>
#include <qpa/qplatformnativeinterface.h>
using JSC::ExecState;
-#if USE(JSC)
using JSC::Interpreter;
-#endif
using JSC::JSLock;
using JSC::JSObject;
}
PluginView::setCurrentPluginView(this);
-#if USE(JSC)
JSC::JSLock::DropAllLocks dropAllLocks(JSDOMWindowBase::commonJSGlobalData());
-#endif
setCallingPlugin(true);
bool accepted = !m_plugin->pluginFuncs()->event(m_instance, &event);
setCallingPlugin(false);
}
PluginView::setCurrentPluginView(this);
-#if USE(JSC)
JSC::JSLock::DropAllLocks dropAllLocks(JSDOMWindowBase::commonJSGlobalData());
-#endif
setCallingPlugin(true);
m_plugin->pluginFuncs()->setwindow(m_instance, &m_npWindow);
setCallingPlugin(false);
#include "HTTPParsers.h"
#include "HistogramSupport.h"
#include "InspectorInstrumentation.h"
+#include "JSDOMBinding.h"
+#include "JSDOMWindow.h"
#include "MemoryCache.h"
#include "ParsedContentType.h"
#include "ResourceError.h"
#include "XMLHttpRequestProgressEvent.h"
#include "XMLHttpRequestUpload.h"
#include "markup.h"
+#include <heap/Strong.h>
+#include <runtime/JSLock.h>
+#include <runtime/Operations.h>
#include <wtf/ArrayBuffer.h>
#include <wtf/ArrayBufferView.h>
#include <wtf/RefCountedLeakCounter.h>
#include "CachedResourceRequestInitiators.h"
#endif
-#if USE(JSC)
-#include "JSDOMBinding.h"
-#include "JSDOMWindow.h"
-#include <heap/Strong.h>
-#include <runtime/JSLock.h>
-#include <runtime/Operations.h>
-#endif
-
namespace WebCore {
DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, xmlHttpRequestCounter, ("XMLHttpRequest"));
void XMLHttpRequest::dropProtection()
{
-#if USE(JSC)
// The XHR object itself holds on to the responseText, and
// thus has extra cost even independent of any
// responseText or responseXML objects it has handed
JSC::JSGlobalData* globalData = scriptExecutionContext()->globalData();
JSC::JSLockHolder lock(globalData);
globalData->heap.reportExtraMemoryCost(m_responseBuilder.length() * 2);
-#endif
unsetPendingActivity(this);
}
+2013-04-05 Geoffrey Garen <ggaren@apple.com>
+
+ Made USE(JSC) unconditional
+ https://bugs.webkit.org/show_bug.cgi?id=114058
+
+ Reviewed by Anders Carlsson.
+
+ * ewk/ewk_frame.cpp:
+ (ewk_frame_script_execute):
+
2013-04-04 Christophe Dumez <ch.dumez@sisa.samsung.com>
[Cairo] Fix canvas drawing of SVG-based patterns and remove NativeImageCairo
EINA_SAFETY_ON_NULL_RETURN_VAL(smartData->frame, 0);
EINA_SAFETY_ON_NULL_RETURN_VAL(script, 0);
-#if USE(JSC)
WTF::String resultString;
JSC::JSValue result = smartData->frame->script()->executeScript(WTF::String::fromUTF8(script), true).jsValue();
JSC::JSLockHolder lock(exec);
resultString = result.toString(exec)->value(exec);
return eina_stringshare_add(resultString.utf8().data());
-#else
- notImplemented();
- return 0;
-#endif
}
Eina_Bool ewk_frame_editable_get(const Evas_Object* ewkFrame)
*/
QWebScriptWorld::QWebScriptWorld()
{
-#if USE(JSC)
d = new QWebScriptWorldPrivate(ScriptController::createWorld());
-#endif
}
QWebScriptWorld::QWebScriptWorld(const QWebScriptWorld& other)
+2013-04-05 Geoffrey Garen <ggaren@apple.com>
+
+ Made USE(JSC) unconditional
+ https://bugs.webkit.org/show_bug.cgi?id=114058
+
+ Reviewed by Anders Carlsson.
+
+ * Api/qwebscriptworld.cpp:
+ (QWebScriptWorld::QWebScriptWorld):
+
2013-04-04 Sze Howe Koh <szehowe.koh@gmail.com>
[Qt] docs: Fix module name format
+2013-04-05 Geoffrey Garen <ggaren@apple.com>
+
+ Made USE(JSC) unconditional
+ https://bugs.webkit.org/show_bug.cgi?id=114058
+
+ Reviewed by Anders Carlsson.
+
+ * Shared/linux/WebMemorySamplerLinux.cpp:
+ (WebKit::WebMemorySampler::sampleWebKit):
+ * config.h:
+
2013-04-05 Ed Bartosh <bartosh@gmail.com>
[EFL] --no-tiled-backing-store build fails because of not used #if USE(ACCELERATED_COMPOSITING)
appendKeyValuePair(webKitMemoryStats, ASCIILiteral("Fast Malloc Committed Memory"), fastMallocBytesCommitted);
#endif
-#if USE(JSC)
size_t jscHeapBytesInUse = JSDOMWindow::commonJSGlobalData()->heap.size();
size_t jscHeapBytesCommitted = JSDOMWindow::commonJSGlobalData()->heap.capacity();
totalBytesInUse += jscHeapBytesInUse;
appendKeyValuePair(webKitMemoryStats, ASCIILiteral("JavaScript Stack Bytes"), globalMemoryStats.stackBytes);
appendKeyValuePair(webKitMemoryStats, ASCIILiteral("JavaScript JIT Bytes"), globalMemoryStats.JITBytes);
-#endif
appendKeyValuePair(webKitMemoryStats, ASCIILiteral("Total Memory In Use"), totalBytesInUse);
appendKeyValuePair(webKitMemoryStats, ASCIILiteral("Total Committed Memory"), totalBytesCommitted);
#include "cmakeconfig.h"
#endif
+#include <runtime/JSExportMacros.h>
#include <wtf/DisallowCType.h>
#include <wtf/Platform.h>
#include <wtf/ExportMacros.h>
-#if USE(JSC)
-#include <runtime/JSExportMacros.h>
-#endif
#ifdef __cplusplus
#ifndef EXTERN_C_BEGIN