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

Unified Diff: include/AdblockPlus/JsValue.h

Issue 29451722: Issue 4907 - Update v8 to 5.7.278 in libadblockplus (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: fix support of ARCH=ia32 Created June 2, 2017, 7:19 a.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
Index: include/AdblockPlus/JsValue.h
diff --git a/include/AdblockPlus/JsValue.h b/include/AdblockPlus/JsValue.h
index df87833883540ffa5f6516df4ab75e2d9bda7105..7c448c85ea661c05d74e6467c0cde58e4f972fe3 100644
--- a/include/AdblockPlus/JsValue.h
+++ b/include/AdblockPlus/JsValue.h
@@ -27,9 +27,8 @@ namespace v8
{
class Value;
class Object;
- template<class T> class Handle;
template<class T> class Local;
- template<class T> class Persistent;
+ template<class T> class Global;
}
namespace AdblockPlus
@@ -57,6 +56,7 @@ namespace AdblockPlus
virtual ~JsValue();
JsValue& operator=(const JsValue& src);
+ JsValue& operator=(JsValue&& src);
bool IsUndefined() const;
bool IsNull() const;
@@ -142,13 +142,14 @@ namespace AdblockPlus
protected:
JsEnginePtr jsEngine;
private:
- JsValue(JsEnginePtr jsEngine, v8::Handle<v8::Value> value);
- void SetProperty(const std::string& name, v8::Handle<v8::Value> val);
+ JsValue(JsEnginePtr jsEngine, v8::Local<v8::Value> value);
+ void SetProperty(const std::string& name, v8::Local<v8::Value> val);
+
// Parameter args is not const because a pointer to its internal arrays is
// passed to v8::Function::Call but the latter does not expect a const pointer.
- JsValue Call(std::vector<v8::Handle<v8::Value>>& args, v8::Local<v8::Object> thisObj) const;
+ JsValue Call(std::vector<v8::Local<v8::Value>>& args, v8::Local<v8::Object> thisObj) const;
- std::unique_ptr<v8::Persistent<v8::Value>> value;
+ std::unique_ptr<v8::Global<v8::Value>> value;
};
}
« README.md ('K') | « include/AdblockPlus/JsEngine.h ('k') | libadblockplus.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld