Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/GlobalJsObject.h

Issue 29661564: Template out V8 and prepare for other JS engine implementations
Patch Set: Created Jan. 10, 2018, 1:29 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/FileSystemJsObject.cpp ('k') | src/GlobalJsObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/GlobalJsObject.h
===================================================================
--- a/src/GlobalJsObject.h
+++ b/src/GlobalJsObject.h
@@ -23,7 +23,19 @@
namespace AdblockPlus
{
struct AppInfo;
- class JsEngine;
+
+ template <class T> class JsEngineTemplate;
+#ifndef JSENGINEIMPL
+#define JSENGINEIMPL JsEngineTemplate<JsEngineNamespaceImpl>
+#endif
+ typedef JSENGINEIMPL JsEngine;
+
+
+ template <class T> class JsValueTemplate;
+#ifndef JSVALUEIMPL
+#define JSVALUEIMPL JsValueTemplate<JsEngineNamespaceImpl>
+#endif
+ typedef JSVALUEIMPL JsValue;
namespace GlobalJsObject
{
« no previous file with comments | « src/FileSystemJsObject.cpp ('k') | src/GlobalJsObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld