v8/test
marja@chromium.org 394af55a8c Script streaming: more UTF-8 handing fixes (again).
1) Since we fill the output buffer both from the chunks and the conversion
buffer, it's possible that we run out of space and call CopyCharsHelper with 0
length. The underlying functions don't handle it gracefully, so check there.

2) There was a bug where we used to try to copy too many characters from the
beginning of the data chunk into the conversion buffer. Continuation bytes in
UTF-8 are of the form 0b10XXXXXX. If a byte is bigger than that, it's the first
byte of a new UTF-8 character and we should ignore it.

These two together (or maybe in combination with surrogates) are a probable
reason for crbug.com/420932.

3) The test data was off; \uc481 is \xec\x92\x81.

BUG=420932
LOG=N
R=yangguo@chromium.org

Review URL: https://codereview.chromium.org/662003003

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24725 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-10-20 09:23:43 +00:00
..
benchmarks Run benchmarks tests with --turbo-asm flag. 2014-10-13 09:30:27 +00:00
cctest Script streaming: more UTF-8 handing fixes (again). 2014-10-20 09:23:43 +00:00
fuzz-natives Rename Runtime_CompileUnoptimized to Runtime_CompileLazy, because that is what it does. Split Compiler::GetUnoptimizedCode into two variants, one for lazy compilation (which can return optimized code!) and the other that actually returns unoptimized code. 2014-09-17 15:29:42 +00:00
intl Allow identifier code points from supplementary multilingual planes. 2014-10-10 07:13:46 +00:00
js-perf-test Initial set of perf tests for classes. 2014-10-17 09:26:55 +00:00
message Enable access check tests that no longer fail with TF. 2014-08-14 13:24:57 +00:00
mjsunit [arm64] Skip TF tests that time out in simulator debug runs. 2014-10-20 09:01:14 +00:00
mozilla Exact black-list of AST nodes for TurboFan. 2014-09-15 15:06:05 +00:00
preparser ES6: Duplicate properties are no longer an error 2014-08-20 14:25:48 +00:00
promises-aplus Enable access check tests that no longer fail with TF. 2014-08-14 13:24:57 +00:00
test262 Convert argument toObject() in Object.getOwnPropertyNames/Descriptors 2014-10-15 14:01:20 +00:00
test262-es6 Update test262-es6 2014-09-11 13:39:37 +00:00
unittests [turbofan] Skip bounds checks for positive indices only. 2014-10-20 06:25:41 +00:00
webkit Fix webkit getOwnPropertyNames test after r24706 removed Array.prototype.values 2014-10-17 20:27:24 +00:00