Re: templatizing CopyStringChars/CopyLinearStringChars and adding start param
Tom Schuster <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.jseng |
|---|---|
| Message-ID | <CAN7ST62zJW0qpFQ-rd1GgRkTdSqacxnsPZDw8FdvSOsXbXuwpg@mail.gmail.com> |
You don't have to ask every time when you need some API for SpiderNode. Node is important so we will try to add everything that is needed for it within reason, especially if it's just some external API. Just open a bug, mention it's for SpiderNode and ask for review. Keep up the good work, Tom On May 7, 2016 2:49 AM, "Myk Melez" <[email protected]> wrote: > > SpiderShim uses custom implementations of CopyStringChars and > CopyLinearStringChars [1] with two enhancements: > > 1. Per the V8 API, they accept an additional "start" parameter that > identifies the index in the src string from which to start copying > characters. > > 2. They're templatized, with char16_t* and char* specializations of > CopyLinearStringChars, so SpiderShim's String::Write implementation can > call CopyStringChars for both types of destination buffers [2]. > > Would it be feasible to upstream those enhancements? > > -myk > > [1] > https://github.com/mozilla/spidernode/blob/e9b2841/deps/spidershim/src/v8string.h#L52-L108 > [2] > https://github.com/mozilla/spidernode/blob/e9b2841/deps/spidershim/src/v8string.cc#L363-L392 > > _______________________________________________ > dev-tech-js-engine mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-tech-js-engine >