benchmark: fix v8 benchmark

V8 benchmark redefines global RexExp variable that is used by
console.log. Because of that context can't be shared any more.
Also updates the vm API change for passing the filename.