#include "rr.h" #include "v8_handle.h" #include "v8_function.h" #include "v8_template.h" #include "v8_external.h" #include "v8_callbacks.h" using namespace v8; namespace { VALUE ObjectTemplateClass; VALUE FunctionTemplateClass; Handle make_v8_data(int argc, VALUE *argv, const char* argf) { VALUE handler; VALUE data; rb_scan_args(argc, argv, argf, &handler, &data); Handle v8_data = Array::New(2); v8_data->Set(0, External::New((void*)handler)); v8_data->Set(1, External::New((void*)data)); return v8_data; } Persistent