We have two ways of converting a Value to a GCCellPtr
Categories
(Core :: JavaScript: GC, enhancement, P3)
Tracking
()
People
(Reporter: jonco, Assigned: tupos9)
Details
(Keywords: good-first-bug)
Attachments
(3 files)
2.33 KB,
patch
|
jonco
:
feedback+
|
Details | Diff | Splinter Review |
6.43 KB,
patch
|
Details | Diff | Splinter Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Updated•7 years ago
|
Comment 1•7 years ago
|
||
Reporter | ||
Comment 2•7 years ago
|
||
Comment 3•7 years ago
|
||
Reporter | ||
Comment 4•7 years ago
|
||
Comment 5•5 years ago
|
||
Since no one was working on this issue since last few years. I picked up this issue as suggested by @jonco . I have made the changes in the files but won't be able to get what you are trying to say in the these lines. Sorry I am newbie to this project and still understanding how things work here.
Can you remove the GCCellPtr constructor that takes a Value too?
I think you'll have to add a toGCCellPtr() method to the
WrappedPtrOperations<JS::Value, Wrapper> specialisation in Value.h, along
the same lines as the other methods there. That allows calling this on
RootedValue, HandleValue, etc.
Reporter | ||
Comment 6•5 years ago
|
||
(In reply to Aman Verma from comment #5)
Can you post your patch so far?
The comments were about removing the GCCellPtr constructor overload that takes a const Value&. This needs to be removed and existing uses of it need to be converted to use Value::toGCCellPtr.
The last comment was about adding a toGCCellPtr() method to the
WrappedPtrOperations specialisation here: https://searchfox.org/mozilla-central/source/js/public/Value.h#1127
This should be implemented in the same way as all the other methods there.
Hope this helps. If you have any questions please ping me on IRC.
Comment 7•5 years ago
|
||
I did remove the constructor while replacing all uses of toGCCellPtr(), along with the check-in file js/src/jsapi-tests/testGCCellPtr.cpp. I'd like to hear some feedback as I'm pretty unfamiliar with c++ language, might run into many compilation errors.
Updated•5 years ago
|
Updated•5 years ago
|
Updated•4 years ago
|
Comment 10•4 years ago
|
||
bugherder |
Updated•4 years ago
|
Description
•