DescriptionUse Traits in V8StringResource to avoid code duplication
Use Traits in V8StringResource to avoid code duplication in
StringTraits::fromV8String() for 1-byte / 2-bytes v8::String.
This also gets rid of template specializations for the oneByte boolean
argument which makes the code a bit clearer as fromV8String<false> /
fromV8String<true> was not very readable.
There is no visible impact on performance according to Dromaeo DOM Core:
http://dromaeo.com/?id=219949,219955
The binary size is slightly smaller (184 bytes), likely because the compiler is
able to simplify the code further as fromV8String() is now implicitly inlined
but it wasn't before due to template specialization.
R=haraken@chromium.org, adamk@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171677
Patch Set 1 #Patch Set 2 : Slight clean up #Messages
Total messages: 5 (0 generated)
|