283a6cf32b808c703b219862ac491df3c9fc8b4b |
|
16-Jan-2016 |
Yang Ni <yangni@google.com> |
Handle return values of rsObject type Bug: 25570907 Bug: 25777125 This made further improvements over a previous fix on return values of rsObject type. 1) The temp variable created for a return expression is now set using rsSetObject() rather than directly put in the initializer of the temp. This way, the returned rsObject would have a sys ref count of at least 1 and won't become invalid on the return for the caller. 2) On the caller side, introduced another temp variable .rs.tmpXXX for the result of any function call that returns an rsObject. This temp is set in the initializer upon declaration, without using rsSetObject(). A destructor is inserted at the end of the enclosing scope for the temp. 3) Both temp variables above are now named with a unique suffix (that is a unique integer, which starts from 0 and increases monotonically within the function currently being analyzed and transformed.) 4) Fixed an issue in the previous fix, when there are multiple rsObjects defined in a block, we will only introduce one temp variable for a return statement. The previous CL would introduce one temp for each rsObject, mistakenly. Change-Id: Id3604f93b166089e3aca896d1c6c509b3ea19bcf (cherry picked from commit b478c3dd0a47dc4c0c884d911819c9cf53c46649)
/frameworks/compile/slang/slang_rs_ast_replace.h
|
5abbe0e9ca2508260b627ffef2bf01e2554e8357 |
|
13-Aug-2014 |
Chris Wailes <chriswailes@google.com> |
Replace the NULL macro with nullptr literal. Change-Id: I33609969cd0d7aa55eaa83fb2c65f5faa6d55fa0
/frameworks/compile/slang/slang_rs_ast_replace.h
|
796e7b1400d3f3f7c07496d88bb48129ea925bb9 |
|
27-May-2014 |
Jean-Luc Brouillet <jeanluc@google.com> |
Remove useless "return;" statements. More cleanups to follow... Change-Id: Ib8348255273771c1e9ff07e79bd7fbc8f2795a5b
/frameworks/compile/slang/slang_rs_ast_replace.h
|
ecddee364d731c09c77b4c3fa647fa4f50e26756 |
|
21-Jul-2011 |
Stephen Hines <srhines@google.com> |
Fix style issues. Change-Id: I646b5232cfac772c5a310b62f435a2cc79b2c831
/frameworks/compile/slang/slang_rs_ast_replace.h
|
292e00a0259ac28cac1055cb6077cf6fc7c6743c |
|
19-Mar-2011 |
Stephen Hines <srhines@google.com> |
Add support for RSASTReplace for ref-counting. BUG=3092382 Change-Id: Ia17d40753952e4a021b39549a082cc4b3f20916c
/frameworks/compile/slang/slang_rs_ast_replace.h
|