commit | d4a17e1863ab232b718caeb4afdd4252af99cef0 | [log] [tgz] |
---|---|---|
author | esprehn <esprehn@chromium.org> | Sat Aug 27 11:05:09 2016 |
committer | Commit bot <commit-bot@chromium.org> | Sat Aug 27 11:08:31 2016 |
tree | 76f17c6e9a317907b717c4e28432c9211c703626 | |
parent | a52eb4201de9237701af410cb1d5c38a88373e58 [diff] |
Use StringView for v8String(). By using StringView here we can avoid allocating externalized strings for all of the literal strings used like v8String(isolate, "example") where we would first allocate a WTF::String then externalize it into a v8::String. Instead we can just go directly to a v8::String which is faster and uses less memory. BUG=615174 Review-Url: https://codereview.chromium.org/2285743003 Cr-Commit-Position: refs/heads/master@{#414920}