mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-08 08:07:32 +03:00
32e36700ae
This cuts the tokenization time from 250ms to 70ms by avoiding js <-> native overhead
20 lines
558 B
C++
20 lines
558 B
C++
#include "include/cef_base.h"
|
|
#include "include/cef_v8.h"
|
|
|
|
namespace v8_extensions {
|
|
|
|
class OnigScanner : public CefV8Handler {
|
|
public:
|
|
OnigScanner();
|
|
|
|
virtual bool Execute(const CefString& name,
|
|
CefRefPtr<CefV8Value> object,
|
|
const CefV8ValueList& arguments,
|
|
CefRefPtr<CefV8Value>& retval,
|
|
CefString& exception) OVERRIDE;
|
|
|
|
// Provide the reference counting implementation for this class.
|
|
IMPLEMENT_REFCOUNTING(OnigRegExp);
|
|
};
|
|
|
|
} |