Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Issue 121793005: Mark localName() / prefix() / namespaceURI() virtual methods as FINAL (Closed)

Created:
6 years, 11 months ago by Inactive
Modified:
6 years, 11 months ago
CC:
blink-reviews, dglazkov+blink, sof, eae+blinkwatch, adamk+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Mark localName() / prefix() / namespaceURI() virtual methods as FINAL Mark localName() / prefix() / namespaceURI() virtual methods as FINAL in Element as these are never overriden in Element subclasses. They have different implementations in Attr and Element only, and the Attr class is already marked as FINAL. This increases the chances these methods are inlined by the compiler and thus help with performance as these are hot in some benchmarks. Some callers such as HTMLTagNodeList::nodeMatchesInlined() are hot and already know the type is an Element at compile time. R=adamk, abarth Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=164380

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M Source/core/dom/Element.h View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Inactive
6 years, 11 months ago (2013-12-30 16:42:54 UTC) #1
eseidel1
Lgtm On Dec 30, 2013 8:42 AM, <ch.dumez@samsung.com> wrote: > Reviewers: abarth, adamk, > > ...
6 years, 11 months ago (2013-12-30 16:44:59 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/121793005/1
6 years, 11 months ago (2013-12-30 16:47:08 UTC) #3
commit-bot: I haz the power
6 years, 11 months ago (2013-12-30 16:51:34 UTC) #4
Message was sent while issue was closed.
Change committed as 164380

Powered by Google App Engine
This is Rietveld 408576698