#include "v8.h" #include "v8_handle.h" #include "v8_script.h" using namespace v8; namespace { VALUE New(VALUE self, VALUE source, VALUE source_name) { HandleScope scope; Local src(rr_rb2v8(source)->ToString()); Local src_name(rr_rb2v8(source_name)->ToString()); return rr_v8_handle_new(self, Script::Compile(src, src_name)); } VALUE Compile(VALUE self, VALUE source, VALUE source_name) { HandleScope scope; Local src(rr_rb2v8(source)->ToString()); Local src_name(rr_rb2v8(source_name)->ToString()); return rr_v8_handle_new(self, Script::Compile(src, src_name)); } VALUE Run(VALUE self) { HandleScope scope; Persistent