Regarding only changing the script source in OnBeforeCompile you could
add a
flag to the Script object and set that when leaving OnBeforeCompile.
Done.
Maybe it even makes sense to use BitField to merge
Type, CompilationType and this new freeze flag into one 32-bit int so that
they
only occupy only one kPointerSize.
I'd leave it to somebody more experienced in v8 if that is possible.
https://chromiumcodereview.appspot.com/9677043/
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev