Git Product home page Git Product logo

Comments (5)

lmichaelis avatar lmichaelis commented on June 19, 2024

Hi, thanks for the report. Looks like I missed that additional -- which is probably the incorrect part about this. I'll double-check tomorrow.

If you want to try to fix it right now, you can try swapping the -- to postfix instead of prefix. Not 100% sure that's the fix but it's worth a shot.

from zenkit.

Try avatar Try commented on June 19, 2024

Hm, I've just commented the code - work fine. Again I'm not completely sure of the intent there, yet to me it look:

case opcode::movvf: {
	auto [ref, idx, context] = pop_reference(); // daedalus_stack_frame is deallocated here already

	if (!ref->is_member() || context != nullptr ||
		!(_m_flags & execution_flag::vm_allow_null_instance_access)) {
		// set and nothing else - fine
		ref->set_int(pop_int(), idx, context);
	} else if (ref->is_member()) {
		// should be nop?
	}

	break;
}

from zenkit.

lmichaelis avatar lmichaelis commented on June 19, 2024

There are two frames at play here, since it's a movvf ("move function reference into variable"). First, there is the variable being moved into, and then there is the value being assigned (notice the pop_int()). This is why, if the check fails (so if the variable is a member, not instance is set and the VM does allow null-instance access), we need to destroy the next stack frame which should be at _m_stack[_m_stack_ptr].

from zenkit.

lmichaelis avatar lmichaelis commented on June 19, 2024

Added fixes on main.

from zenkit.

Try avatar Try commented on June 19, 2024

Verified - fix works. Thanks!

from zenkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.