bugGNU Octave - Bugs: bug #64676, VM Support anonymous functions


bug #64676: VM Support anonymous functions

Submitter:  Petter <petter>
Submitted:  Thu 14 Sep 2023 10:36:35 PM UTC
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup

Sun 01 Oct 2023 04:37:20 PM UTC, comment #2: 

No complaints from CI. Closing as fixed.

Arun Giridhar <arungiridhar>
Group Member
Sun 17 Sep 2023 01:23:48 AM UTC, comment #1: 

Thanks. Tested and pushed to: https://hg.savannah.gnu.org/hgweb/octave/rev/d8311055ebe1

Ready for test.

Arun Giridhar <arungiridhar>
Group Member
Thu 14 Sep 2023 10:36:35 PM UTC, original submission:  

New opcodes to support dynamic nargout and ignored outputs for anonymous functions.

* libinterp/corefcn/compile.cc: Print anonymous function's bytecode
* libinterp/corefcn/stack-frame.cc: Correct ip range for argname lookup
* libinterp/octave-value/ov-fcn-handle.cc: Anon. fn. use VM
* libinterp/parse-tree/pt-bytecode-vm-internal.h:
* libinterp/parse-tree/pt-bytecode-vm.cc: New opcodes, refactor ignore data class
* libinterp/parse-tree/pt-bytecode-vm.h:
* libinterp/parse-tree/pt-bytecode-walk.cc: Compile anonymous functions.
* libinterp/parse-tree/pt-bytecode-walk.h: New opcodes, flags
* libinterp/parse-tree/pt-eval.cc: Set ignore outputs when calling into VM
* test/compile/bytecode.tst: Update tests
* test/compile/bytecode_anon_handles.m

Petter <petter>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #55140:  octave_32352.patch added by petter (65KiB - text/plain)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by arungiridhar (Posted a comment)
  • -email is unavailable- added by petter (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.


    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-10-01 arungiridhar StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2023-09-17 arungiridhar StatusNone Ready For Test
    2023-09-14 petter Attached File- Added octave_32352.patch, #55140

    Back to the top

    Powered by Savane 3.13-599c.
    Corresponding source code