Chromium Code Reviews
DescriptionDevirtualize ExceptionState's helper throwing methods.
All the helper methods end up delegating to setException(), so only
setException() needs to be virtual. This reduces binary size by 44KB on
a Linux x64 build.
A minor disadvantage is throwing with the subclasses is less efficient
now: an Exception object is created, only to be discarded when calling
setException(). However, throwing an exception shouldn't be on the hot
code path, so the trade off should be acceptable.
BUG=none
Patch Set 1 #
Total comments: 1
Patch Set 2 : . #
Messages
Total messages: 10 (5 generated)
|
||||||||||||||||||||||||||||