Diff
Modified: trunk/Source/_javascript_Core/ChangeLog (167810 => 167811)
--- trunk/Source/_javascript_Core/ChangeLog 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/_javascript_Core/ChangeLog 2014-04-25 18:15:48 UTC (rev 167811)
@@ -1,3 +1,23 @@
+2014-04-25 Andreas Kling <[email protected]>
+
+ Mark some things with WTF_MAKE_FAST_ALLOCATED.
+ <https://webkit.org/b/132198>
+
+ Use FastMalloc for more things.
+
+ Reviewed by Anders Carlsson.
+
+ * builtins/BuiltinExecutables.h:
+ * heap/GCThreadSharedData.h:
+ * inspector/JSConsoleClient.h:
+ * inspector/agents/InspectorAgent.h:
+ * runtime/CodeCache.h:
+ * runtime/JSGlobalObject.h:
+ * runtime/Lookup.cpp:
+ (JSC::HashTable::createTable):
+ (JSC::HashTable::deleteTable):
+ * runtime/WeakGCMap.h:
+
2014-04-25 Antoine Quint <[email protected]>
Implement Array.prototype.find()
Modified: trunk/Source/_javascript_Core/builtins/BuiltinExecutables.h (167810 => 167811)
--- trunk/Source/_javascript_Core/builtins/BuiltinExecutables.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/_javascript_Core/builtins/BuiltinExecutables.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -38,6 +38,7 @@
class VM;
class BuiltinExecutables {
+ WTF_MAKE_FAST_ALLOCATED;
public:
static PassOwnPtr<BuiltinExecutables> create(VM& vm)
{
Modified: trunk/Source/_javascript_Core/heap/GCThreadSharedData.h (167810 => 167811)
--- trunk/Source/_javascript_Core/heap/GCThreadSharedData.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/_javascript_Core/heap/GCThreadSharedData.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -51,6 +51,7 @@
};
class GCThreadSharedData {
+ WTF_MAKE_FAST_ALLOCATED;
public:
GCThreadSharedData(VM*);
~GCThreadSharedData();
Modified: trunk/Source/_javascript_Core/inspector/JSConsoleClient.h (167810 => 167811)
--- trunk/Source/_javascript_Core/inspector/JSConsoleClient.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/_javascript_Core/inspector/JSConsoleClient.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -34,6 +34,7 @@
class InspectorProfilerAgent;
class JSConsoleClient final : public JSC::ConsoleClient {
+ WTF_MAKE_FAST_ALLOCATED;
public:
explicit JSConsoleClient(InspectorConsoleAgent*, InspectorProfilerAgent*);
virtual ~JSConsoleClient() { }
Modified: trunk/Source/_javascript_Core/inspector/agents/InspectorAgent.h (167810 => 167811)
--- trunk/Source/_javascript_Core/inspector/agents/InspectorAgent.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/_javascript_Core/inspector/agents/InspectorAgent.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -49,6 +49,7 @@
class JS_EXPORT_PRIVATE InspectorAgent final : public InspectorAgentBase, public InspectorInspectorBackendDispatcherHandler {
WTF_MAKE_NONCOPYABLE(InspectorAgent);
+ WTF_MAKE_FAST_ALLOCATED;
public:
InspectorAgent();
virtual ~InspectorAgent();
Modified: trunk/Source/_javascript_Core/runtime/CodeCache.h (167810 => 167811)
--- trunk/Source/_javascript_Core/runtime/CodeCache.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/_javascript_Core/runtime/CodeCache.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -235,6 +235,7 @@
// Caches top-level code such as <script>, eval(), new Function, and JSEvaluateScript().
class CodeCache {
+ WTF_MAKE_FAST_ALLOCATED;
public:
static PassOwnPtr<CodeCache> create() { return adoptPtr(new CodeCache); }
Modified: trunk/Source/_javascript_Core/runtime/JSGlobalObject.h (167810 => 167811)
--- trunk/Source/_javascript_Core/runtime/JSGlobalObject.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/_javascript_Core/runtime/JSGlobalObject.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -141,6 +141,8 @@
typedef HashMap<OpaqueJSClass*, std::unique_ptr<OpaqueJSClassContextData>> OpaqueJSClassDataMap;
struct JSGlobalObjectRareData {
+ WTF_MAKE_FAST_ALLOCATED;
+ public:
JSGlobalObjectRareData()
: profileGroup(0)
{
Modified: trunk/Source/_javascript_Core/runtime/Lookup.cpp (167810 => 167811)
--- trunk/Source/_javascript_Core/runtime/Lookup.cpp 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/_javascript_Core/runtime/Lookup.cpp 2014-04-25 18:15:48 UTC (rev 167811)
@@ -29,7 +29,7 @@
void HashTable::createTable(VM& vm) const
{
ASSERT(!keys);
- keys = new StringImpl*[numberOfValues];
+ keys = static_cast<StringImpl**>(fastMalloc(sizeof(StringImpl*) * numberOfValues));
for (int i = 0; i < numberOfValues; ++i) {
if (values[i].m_key)
@@ -46,7 +46,7 @@
if (keys[i])
keys[i]->deref();
}
- delete [] keys;
+ fastFree(keys);
keys = nullptr;
}
}
Modified: trunk/Source/_javascript_Core/runtime/WeakGCMap.h (167810 => 167811)
--- trunk/Source/_javascript_Core/runtime/WeakGCMap.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/_javascript_Core/runtime/WeakGCMap.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -37,6 +37,7 @@
template<typename KeyArg, typename ValueArg, typename HashArg = typename DefaultHash<KeyArg>::Hash,
typename KeyTraitsArg = HashTraits<KeyArg>>
class WeakGCMap {
+ WTF_MAKE_FAST_ALLOCATED;
typedef Weak<ValueArg> ValueType;
typedef HashMap<KeyArg, ValueType, HashArg, KeyTraitsArg> HashMapType;
Modified: trunk/Source/WebCore/ChangeLog (167810 => 167811)
--- trunk/Source/WebCore/ChangeLog 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/ChangeLog 2014-04-25 18:15:48 UTC (rev 167811)
@@ -1,3 +1,34 @@
+2014-04-25 Andreas Kling <[email protected]>
+
+ Mark some things with WTF_MAKE_FAST_ALLOCATED.
+ <https://webkit.org/b/132198>
+
+ Use FastMalloc for more things.
+
+ Reviewed by Anders Carlsson.
+
+ * bindings/js/ScriptController.h:
+ * dom/DocumentOrderedMap.h:
+ * inspector/InspectorCSSAgent.h:
+ * inspector/InspectorDOMAgent.h:
+ * inspector/InspectorDOMDebuggerAgent.h:
+ * inspector/InspectorDOMStorageAgent.h:
+ * inspector/InspectorDatabaseAgent.h:
+ * inspector/InspectorLayerTreeAgent.h:
+ * inspector/InspectorPageAgent.h:
+ * inspector/InspectorResourceAgent.h:
+ * inspector/InspectorTimelineAgent.h:
+ * inspector/InspectorWorkerAgent.h:
+ * inspector/PageRuntimeAgent.h:
+ * loader/HistoryController.h:
+ * page/DeviceClient.h:
+ * page/DeviceController.h:
+ * page/EventHandler.h:
+ * page/Page.h:
+ * page/scrolling/ScrollingStateNode.h:
+ * platform/graphics/FontGenericFamilies.h:
+ * platform/graphics/FontPlatformData.h:
+
2014-04-25 Radu Stavila <[email protected]>
[CSS Regions] Rename objectShouldPaintInFlowRegion to something more clear
Modified: trunk/Source/WebCore/bindings/js/ScriptController.h (167810 => 167811)
--- trunk/Source/WebCore/bindings/js/ScriptController.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/bindings/js/ScriptController.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -69,6 +69,8 @@
};
class ScriptController {
+ WTF_MAKE_FAST_ALLOCATED;
+
friend class ScriptCachedFrameData;
typedef HashMap<RefPtr<DOMWrapperWorld>, JSC::Strong<JSDOMWindowShell>> ShellMap;
Modified: trunk/Source/WebCore/dom/DocumentOrderedMap.h (167810 => 167811)
--- trunk/Source/WebCore/dom/DocumentOrderedMap.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/dom/DocumentOrderedMap.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -45,6 +45,7 @@
class TreeScope;
class DocumentOrderedMap {
+ WTF_MAKE_FAST_ALLOCATED;
public:
void add(const AtomicStringImpl&, Element&, const TreeScope&);
void remove(const AtomicStringImpl&, Element&);
Modified: trunk/Source/WebCore/inspector/InspectorCSSAgent.h (167810 => 167811)
--- trunk/Source/WebCore/inspector/InspectorCSSAgent.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/inspector/InspectorCSSAgent.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -71,6 +71,7 @@
, public Inspector::InspectorCSSBackendDispatcherHandler
, public InspectorStyleSheet::Listener {
WTF_MAKE_NONCOPYABLE(InspectorCSSAgent);
+ WTF_MAKE_FAST_ALLOCATED;
public:
class InlineStyleOverrideScope {
public:
Modified: trunk/Source/WebCore/inspector/InspectorDOMAgent.h (167810 => 167811)
--- trunk/Source/WebCore/inspector/InspectorDOMAgent.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/inspector/InspectorDOMAgent.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -95,6 +95,7 @@
class InspectorDOMAgent : public InspectorAgentBase, public Inspector::InspectorDOMBackendDispatcherHandler {
WTF_MAKE_NONCOPYABLE(InspectorDOMAgent);
+ WTF_MAKE_FAST_ALLOCATED;
public:
struct DOMListener {
virtual ~DOMListener()
Modified: trunk/Source/WebCore/inspector/InspectorDOMDebuggerAgent.h (167810 => 167811)
--- trunk/Source/WebCore/inspector/InspectorDOMDebuggerAgent.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/inspector/InspectorDOMDebuggerAgent.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -55,6 +55,7 @@
class InspectorDOMDebuggerAgent : public InspectorAgentBase, public Inspector::InspectorDebuggerAgent::Listener, public Inspector::InspectorDOMDebuggerBackendDispatcherHandler {
WTF_MAKE_NONCOPYABLE(InspectorDOMDebuggerAgent);
+ WTF_MAKE_FAST_ALLOCATED;
public:
InspectorDOMDebuggerAgent(InstrumentingAgents*, InspectorDOMAgent*, Inspector::InspectorDebuggerAgent*);
virtual ~InspectorDOMDebuggerAgent();
Modified: trunk/Source/WebCore/inspector/InspectorDOMStorageAgent.h (167810 => 167811)
--- trunk/Source/WebCore/inspector/InspectorDOMStorageAgent.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/inspector/InspectorDOMStorageAgent.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -52,6 +52,7 @@
typedef String ErrorString;
class InspectorDOMStorageAgent : public InspectorAgentBase, public Inspector::InspectorDOMStorageBackendDispatcherHandler {
+ WTF_MAKE_FAST_ALLOCATED;
public:
InspectorDOMStorageAgent(InstrumentingAgents*, InspectorPageAgent*);
~InspectorDOMStorageAgent();
Modified: trunk/Source/WebCore/inspector/InspectorDatabaseAgent.h (167810 => 167811)
--- trunk/Source/WebCore/inspector/InspectorDatabaseAgent.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/inspector/InspectorDatabaseAgent.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -50,6 +50,7 @@
typedef String ErrorString;
class InspectorDatabaseAgent : public InspectorAgentBase, public Inspector::InspectorDatabaseBackendDispatcherHandler {
+ WTF_MAKE_FAST_ALLOCATED;
public:
explicit InspectorDatabaseAgent(InstrumentingAgents*);
~InspectorDatabaseAgent();
Modified: trunk/Source/WebCore/inspector/InspectorLayerTreeAgent.h (167810 => 167811)
--- trunk/Source/WebCore/inspector/InspectorLayerTreeAgent.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/inspector/InspectorLayerTreeAgent.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -47,6 +47,7 @@
typedef String ErrorString;
class InspectorLayerTreeAgent : public InspectorAgentBase, public Inspector::InspectorLayerTreeBackendDispatcherHandler {
+ WTF_MAKE_FAST_ALLOCATED;
public:
explicit InspectorLayerTreeAgent(InstrumentingAgents*);
~InspectorLayerTreeAgent();
Modified: trunk/Source/WebCore/inspector/InspectorPageAgent.h (167810 => 167811)
--- trunk/Source/WebCore/inspector/InspectorPageAgent.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/inspector/InspectorPageAgent.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -68,6 +68,7 @@
class InspectorPageAgent : public InspectorAgentBase, public Inspector::InspectorPageBackendDispatcherHandler {
WTF_MAKE_NONCOPYABLE(InspectorPageAgent);
+ WTF_MAKE_FAST_ALLOCATED;
public:
InspectorPageAgent(InstrumentingAgents*, Page*, InspectorClient*, InspectorOverlay*);
Modified: trunk/Source/WebCore/inspector/InspectorResourceAgent.h (167810 => 167811)
--- trunk/Source/WebCore/inspector/InspectorResourceAgent.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/inspector/InspectorResourceAgent.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -76,6 +76,7 @@
typedef String ErrorString;
class InspectorResourceAgent : public InspectorAgentBase, public Inspector::InspectorNetworkBackendDispatcherHandler {
+ WTF_MAKE_FAST_ALLOCATED;
public:
InspectorResourceAgent(InstrumentingAgents*, InspectorPageAgent*, InspectorClient*);
~InspectorResourceAgent();
Modified: trunk/Source/WebCore/inspector/InspectorTimelineAgent.h (167810 => 167811)
--- trunk/Source/WebCore/inspector/InspectorTimelineAgent.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/inspector/InspectorTimelineAgent.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -126,6 +126,7 @@
, public Inspector::InspectorTimelineBackendDispatcherHandler
, public Inspector::ScriptDebugListener {
WTF_MAKE_NONCOPYABLE(InspectorTimelineAgent);
+ WTF_MAKE_FAST_ALLOCATED;
public:
enum InspectorType { PageInspector, WorkerInspector };
Modified: trunk/Source/WebCore/inspector/InspectorWorkerAgent.h (167810 => 167811)
--- trunk/Source/WebCore/inspector/InspectorWorkerAgent.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/inspector/InspectorWorkerAgent.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -49,6 +49,7 @@
typedef String ErrorString;
class InspectorWorkerAgent : public InspectorAgentBase, public Inspector::InspectorWorkerBackendDispatcherHandler {
+ WTF_MAKE_FAST_ALLOCATED;
public:
explicit InspectorWorkerAgent(InstrumentingAgents*);
~InspectorWorkerAgent();
Modified: trunk/Source/WebCore/inspector/PageRuntimeAgent.h (167810 => 167811)
--- trunk/Source/WebCore/inspector/PageRuntimeAgent.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/inspector/PageRuntimeAgent.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -53,6 +53,7 @@
typedef String ErrorString;
class PageRuntimeAgent final : public Inspector::InspectorRuntimeAgent {
+ WTF_MAKE_FAST_ALLOCATED;
public:
PageRuntimeAgent(Inspector::InjectedScriptManager*, Page*, InspectorPageAgent*);
virtual ~PageRuntimeAgent() { }
Modified: trunk/Source/WebCore/loader/HistoryController.h (167810 => 167811)
--- trunk/Source/WebCore/loader/HistoryController.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/loader/HistoryController.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -45,6 +45,7 @@
class HistoryController {
WTF_MAKE_NONCOPYABLE(HistoryController);
+ WTF_MAKE_FAST_ALLOCATED;
public:
enum HistoryUpdateType { UpdateAll, UpdateAllExceptBackForwardList };
Modified: trunk/Source/WebCore/page/DeviceClient.h (167810 => 167811)
--- trunk/Source/WebCore/page/DeviceClient.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/page/DeviceClient.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -30,6 +30,7 @@
namespace WebCore {
class DeviceClient {
+ WTF_MAKE_FAST_ALLOCATED;
public:
virtual ~DeviceClient() { }
Modified: trunk/Source/WebCore/page/DeviceController.h (167810 => 167811)
--- trunk/Source/WebCore/page/DeviceController.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/page/DeviceController.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -39,6 +39,7 @@
class Page;
class DeviceController : public Supplement<Page> {
+ WTF_MAKE_FAST_ALLOCATED;
public:
explicit DeviceController(DeviceClient*);
~DeviceController() { }
Modified: trunk/Source/WebCore/page/EventHandler.h (167810 => 167811)
--- trunk/Source/WebCore/page/EventHandler.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/page/EventHandler.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -119,6 +119,7 @@
class EventHandler {
WTF_MAKE_NONCOPYABLE(EventHandler);
+ WTF_MAKE_FAST_ALLOCATED;
public:
explicit EventHandler(Frame&);
~EventHandler();
Modified: trunk/Source/WebCore/page/Page.h (167810 => 167811)
--- trunk/Source/WebCore/page/Page.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/page/Page.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -110,6 +110,7 @@
class Page : public Supplementable<Page> {
WTF_MAKE_NONCOPYABLE(Page);
+ WTF_MAKE_FAST_ALLOCATED;
friend class Settings;
friend class PageThrottler;
Modified: trunk/Source/WebCore/page/scrolling/ScrollingStateNode.h (167810 => 167811)
--- trunk/Source/WebCore/page/scrolling/ScrollingStateNode.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/page/scrolling/ScrollingStateNode.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -146,6 +146,7 @@
};
class ScrollingStateNode {
+ WTF_MAKE_FAST_ALLOCATED;
public:
ScrollingStateNode(ScrollingNodeType, ScrollingStateTree&, ScrollingNodeID);
virtual ~ScrollingStateNode();
Modified: trunk/Source/WebCore/platform/graphics/FontGenericFamilies.h (167810 => 167811)
--- trunk/Source/WebCore/platform/graphics/FontGenericFamilies.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/platform/graphics/FontGenericFamilies.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -44,6 +44,7 @@
typedef HashMap<int, AtomicString, DefaultHash<int>::Hash, UScriptCodeHashTraits> ScriptFontFamilyMap;
class FontGenericFamilies {
+ WTF_MAKE_FAST_ALLOCATED;
public:
FontGenericFamilies();
Modified: trunk/Source/WebCore/platform/graphics/FontPlatformData.h (167810 => 167811)
--- trunk/Source/WebCore/platform/graphics/FontPlatformData.h 2014-04-25 17:58:19 UTC (rev 167810)
+++ trunk/Source/WebCore/platform/graphics/FontPlatformData.h 2014-04-25 18:15:48 UTC (rev 167811)
@@ -86,6 +86,7 @@
#endif
class FontPlatformData {
+ WTF_MAKE_FAST_ALLOCATED;
public:
FontPlatformData(WTF::HashTableDeletedValueType);
FontPlatformData();