[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-11 Thread marja
Committed patchset #62 (id:1260001) manually as 23865 (presubmit successful). https://codereview.chromium.org/366153002/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-11 Thread marja
On 2014/09/11 11:06:48, marja wrote: Committed patchset #62 (id:1260001) manually as 23865 (presubmit successful). FYI, I had to revert this; the special characters were too much for the Windows compiler. A reincarnated version is here: https://codereview.chromium.org/566553002/

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-10 Thread rossberg
From a superficial look, LGTM. Just one comment https://codereview.chromium.org/366153002/diff/1180001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/366153002/diff/1180001/include/v8.h#newcode1129 include/v8.h:1129: enum Encoding { ONE_BYTE, TWO_BYTE, UTF8 }; Not

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-10 Thread yangguo
https://codereview.chromium.org/366153002/diff/1180001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/366153002/diff/1180001/include/v8.h#newcode1129 include/v8.h:1129: enum Encoding { ONE_BYTE, TWO_BYTE, UTF8 }; On 2014/09/10 13:39:28, rossberg wrote: Not specific to

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-10 Thread marja
(thanks for having a look; now only commenting on the encoding names, will fix the other naming comment later) https://codereview.chromium.org/366153002/diff/1180001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/366153002/diff/1180001/include/v8.h#newcode1129

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-10 Thread rossberg
On 2014/09/10 13:53:09, marja wrote: On 2014/09/10 13:48:58, Yang wrote: On 2014/09/10 13:39:28, rossberg wrote: Not specific to this CL, but I wonder if we shouldn't eventually change these names to ASCII and UCS2, for more clarity... Rather Latin1 instead of ASCII. Yep, not ASCII,

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-10 Thread marja
https://codereview.chromium.org/366153002/diff/1180001/src/parser.h File src/parser.h (right): https://codereview.chromium.org/366153002/diff/1180001/src/parser.h#newcode672 src/parser.h:672: Scope** ad_hoc_eval_scope); On 2014/09/10 13:39:28, rossberg wrote: Why is this called

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-09 Thread jochen
lgtm https://codereview.chromium.org/366153002/diff/1160001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/366153002/diff/1160001/include/v8.h#newcode1096 include/v8.h:1096: class V8_EXPORT ExternalSourceStream { nit. no need to V8 EXPORT - everything here is inline

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-09 Thread marja
Thanks for review! https://codereview.chromium.org/366153002/diff/1160001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/366153002/diff/1160001/include/v8.h#newcode1096 include/v8.h:1096: class V8_EXPORT ExternalSourceStream { On 2014/09/09 08:06:20, jochen wrote:

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-09 Thread yangguo
On 2014/09/09 11:46:30, marja wrote: Thanks for review! https://codereview.chromium.org/366153002/diff/1160001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/366153002/diff/1160001/include/v8.h#newcode1096 include/v8.h:1096: class V8_EXPORT ExternalSourceStream {

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-09 Thread marja
rossberg, fyi, I'm adding the streaming parsing API here, in case you want to have a look. (If you don't have time to have a look before I land this, comments are still welcome and I can do follow-up changes. The streaming code path is pretty isolated.)

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-08 Thread jochen
is there a way for the embedder to cancel parsing? https://codereview.chromium.org/366153002/diff/1120001/include/v8.h File include/v8.h (right): https://codereview.chromium.org/366153002/diff/1120001/include/v8.h#newcode1102 include/v8.h:1102: ExternalSourceStream(Encoding encoding) :

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-08 Thread marja
jochen: thanks for having a look! yangguo: jochen said you'd be a good person for reviewing the UTF-8 handling part, so, could you review scanner-character-streams.* ? https://codereview.chromium.org/366153002/diff/1120001/include/v8.h File include/v8.h (right):

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-08 Thread marja
On 2014/09/08 11:27:07, jochen wrote: is there a way for the embedder to cancel parsing? Yes; I clarified this in the comments: * If the embedder wants to cancel the streaming, they should make the next * GetMoreData call return 0. V8 will interpret it as end of data (and most * probably,

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-08 Thread marja
yangguo: jochen said you'd be a good person for reviewing the UTF-8 handling part, so, could you review scanner-character-streams.* ? I also meant to mention that there are tests in test-api.cc which test these parts. https://codereview.chromium.org/366153002/ -- -- v8-dev mailing list

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-05 Thread svenpanne
API LGTM https://codereview.chromium.org/366153002/ -- -- v8-dev mailing list v8-dev@googlegroups.com http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups v8-dev group. To unsubscribe from this group and stop receiving emails from

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-04 Thread marja
svenpanne, jochen, ptal. Okay, now this is ready for review for realz. There are even tests. Please review as follows: svenpanne: v8.h jochen: everything Re: previous discussion, I changed const char* to const uint8_t* in the API, since that seems to be the data type for bunch of raw bytes on

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-04 Thread marja
On 2014/09/04 13:45:00, marja wrote: svenpanne, jochen, ptal. Okay, now this is ready for review for realz. There are even tests. Please review as follows: svenpanne: v8.h jochen: everything Re: previous discussion, I changed const char* to const uint8_t* in the API, since that seems

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-02 Thread marja
https://codereview.chromium.org/366153002/diff/91/include/v8.h File include/v8.h (right): https://codereview.chromium.org/366153002/diff/91/include/v8.h#newcode1134 include/v8.h:1134: ~StreamedSource(); Meanwhile, things seem to progress in bleeding edge. There's no V8_FINAL any more;

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-01 Thread marja
Reviewers: jochen, Sven Panne, Message: Thanks for having a look! I gather that this looks generally reasonable (the only non-trivially fixable comment was about SetEncoding and I have changed the API), so next I'll 1) develop tests and 2) fix the UTF-8 handling 3) land refactorings

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-01 Thread jochen
https://codereview.chromium.org/366153002/diff/91/test/cctest/test-api.cc File test/cctest/test-api.cc (right): https://codereview.chromium.org/366153002/diff/91/test/cctest/test-api.cc#newcode23021 test/cctest/test-api.cc:23021: snprintf(copy, len + 1, %s, chunks_[index_]); On

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-09-01 Thread marja
https://codereview.chromium.org/366153002/diff/91/test/cctest/test-api.cc File test/cctest/test-api.cc (right): https://codereview.chromium.org/366153002/diff/91/test/cctest/test-api.cc#newcode23021 test/cctest/test-api.cc:23021: snprintf(copy, len + 1, %s, chunks_[index_]); Argh, this

[v8-dev] Re: Add script streaming API - DRAFT - NOT FOR COMMITTING. (issue 366153002 by ma...@chromium.org)

2014-08-14 Thread marja
Reviewers: jochen (OOO until Sept), Message: Thanks for comments (mostly done expect one counter-argument). https://codereview.chromium.org/366153002/diff/61/include/v8.h File include/v8.h (right): https://codereview.chromium.org/366153002/diff/61/include/v8.h#newcode968