| 141 | v8::CFunction fast_serialize_string(v8::CFunction::Make(serializeStringFast)); |
| 142 | |
| 143 | v8::Local<v8::FunctionTemplate> FastFunction(v8::Isolate *isolate, |
| 144 | v8::FunctionCallback callback, |
| 145 | const v8::CFunction *c_function) { |
| 146 | return v8::FunctionTemplate::New( |
| 147 | isolate, callback, v8::Local<v8::Value>(), v8::Local<v8::Signature>(), 0, |
| 148 | v8::ConstructorBehavior::kThrow, v8::SideEffectType::kHasSideEffect, |
| 149 | c_function); |
| 150 | } |
| 151 | |
| 152 | void Init(v8::Local<v8::Object> exports) { |
| 153 | v8::Local<v8::Context> context = exports->GetCreationContextChecked(); |