Title: [149294] trunk/Source/WebCore
- Revision
- 149294
- Author
- [email protected]
- Date
- 2013-04-29 10:12:00 -0700 (Mon, 29 Apr 2013)
Log Message
Add branch-prediction hint to FAST_RETURN_IF_NO_FRONTENDS.
<http://webkit.org/b/115357>
Reviewed by Anders Carlsson.
Since this macro is used in some very hot code paths, give the compiler an extra hint
to try and minimize the impact it has when the inspector is not active.
* inspector/InspectorInstrumentation.h:
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (149293 => 149294)
--- trunk/Source/WebCore/ChangeLog 2013-04-29 16:33:04 UTC (rev 149293)
+++ trunk/Source/WebCore/ChangeLog 2013-04-29 17:12:00 UTC (rev 149294)
@@ -1,3 +1,15 @@
+2013-04-29 Andreas Kling <[email protected]>
+
+ Add branch-prediction hint to FAST_RETURN_IF_NO_FRONTENDS.
+ <http://webkit.org/b/115357>
+
+ Reviewed by Anders Carlsson.
+
+ Since this macro is used in some very hot code paths, give the compiler an extra hint
+ to try and minimize the impact it has when the inspector is not active.
+
+ * inspector/InspectorInstrumentation.h:
+
2013-04-29 Patrick Gansterer <[email protected]>
[WIN] Add WTF_USE_IMLANG_FONT_LINK2
Modified: trunk/Source/WebCore/inspector/InspectorInstrumentation.h (149293 => 149294)
--- trunk/Source/WebCore/inspector/InspectorInstrumentation.h 2013-04-29 16:33:04 UTC (rev 149293)
+++ trunk/Source/WebCore/inspector/InspectorInstrumentation.h 2013-04-29 17:12:00 UTC (rev 149294)
@@ -94,7 +94,7 @@
class WorkerContextProxy;
class XMLHttpRequest;
-#define FAST_RETURN_IF_NO_FRONTENDS(value) if (!hasFrontends()) return value;
+#define FAST_RETURN_IF_NO_FRONTENDS(value) if (LIKELY(!hasFrontends())) return value;
class InspectorInstrumentationCookie {
#if ENABLE(INSPECTOR)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes