#include "v8.h" #include "v8_ref.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_ref_create(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_ref_create(self, Script::Compile(src, src_name)); } VALUE Run(VALUE self) { HandleScope scope; Local