buffer/thug — pull request #29 by Innismir (2012-10-12 19:01:58+00:00)
Title: V8-patch2.diff fix for V8 r12718

This is to fix Step 2 in the instructions:
---
2. Patch V8 source code with the patches you can find in thug/patches
directory

$ cp thug/patches/V8-patch* .
$ patch -p0 < V8-patch1.diff
patching file v8/src/log.h
$ patch -p0 < V8-patch2.diff
patching file v8/src/parser.h
Hunk #1 succeeded at 456 (offset 7 lines).
---
innismir@fullerton:~/thug_test$ patch -p0 < V8-patch2.diff
patching file v8/src/parser.h
Hunk #1 FAILED at 449.
1 out of 1 hunk FAILED -- saving rejects to file v8/src/parser.h.rej
innismir@fullerton:~/thug_test$
----
v8/src/parser.h has changed slightly in r12718, with kMaxNumFunctionLocals now set at 131071. I've eliminated that from the patch since it's more than 65533. kMaxNumFunctionParameters remains in the patch, increasing it from 32766 to 65534.