Bug 1290337 - Part 13: Replace Value parameter to const Value& in finalizeInBackground. r=sfink

This commit is contained in:
Tooru Fujisawa
2016-09-11 18:15:23 +09:00
parent 59ba07a396
commit a33ab4d32a
6 changed files with 6 additions and 6 deletions

View File

@@ -667,7 +667,7 @@ class nsOuterWindowProxy : public js::Wrapper
public:
constexpr nsOuterWindowProxy() : js::Wrapper(0) { }
virtual bool finalizeInBackground(JS::Value priv) const override {
virtual bool finalizeInBackground(const JS::Value& priv) const override {
return false;
}

View File

@@ -11633,7 +11633,7 @@ class CGDOMJSProxyHandler_className(ClassMethod):
class CGDOMJSProxyHandler_finalizeInBackground(ClassMethod):
def __init__(self, descriptor):
args = [Argument('JS::Value', 'priv')]
args = [Argument('const JS::Value&', 'priv')]
ClassMethod.__init__(self, "finalizeInBackground", "bool", args,
virtual=True, override=True, const=True)
self.descriptor = descriptor

View File

@@ -93,7 +93,7 @@ class CPOWProxyHandler : public BaseProxyHandler
constexpr CPOWProxyHandler()
: BaseProxyHandler(&family) {}
virtual bool finalizeInBackground(Value priv) const override {
virtual bool finalizeInBackground(const Value& priv) const override {
return false;
}

View File

@@ -211,7 +211,7 @@ class JS_FRIEND_API(BaseProxyHandler)
return offsetof(BaseProxyHandler, mFamily);
}
virtual bool finalizeInBackground(Value priv) const {
virtual bool finalizeInBackground(const Value& priv) const {
/*
* Called on creation of a proxy to determine whether its finalize
* method can be finalized on the background thread.

View File

@@ -66,7 +66,7 @@ class JS_FRIEND_API(Wrapper) : public BaseProxyHandler
mFlags(aFlags)
{ }
virtual bool finalizeInBackground(Value priv) const override;
virtual bool finalizeInBackground(const Value& priv) const override;
/* Standard internal methods. */
virtual bool getOwnPropertyDescriptor(JSContext* cx, HandleObject proxy, HandleId id,

View File

@@ -21,7 +21,7 @@
using namespace js;
bool
Wrapper::finalizeInBackground(Value priv) const
Wrapper::finalizeInBackground(const Value& priv) const
{
if (!priv.isObject())
return true;