File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -462,6 +462,12 @@ typename std::enable_if<T::value, void>::type VirtualMachine::DumpStack() {
462462 RELAY_LOG (INFO) << " \n " ;
463463 break ;
464464 }
465+ case VMObjectTag::kDatatype : {
466+ VMDatatypeCell* datatype = (VMDatatypeCell*)stack[i].operator ->();
467+ std::cout << " fields: " << datatype->fields .size ();
468+ std::cout << " \n " ;
469+ break ;
470+ }
465471 default : {
466472 RELAY_LOG (INFO) << " \n " ;
467473 }
@@ -616,7 +622,7 @@ void VirtualMachine::Run() {
616622 CHECK (instr.dest < stack.size ())
617623 << " dest=" << instr.dest
618624 << " stack_size=" << stack.size ();
619- stack[instr.dest ] = stack[instr.source ];
625+ stack[bp + instr.dest ] = stack[bp + instr.source ];
620626 DumpStack ();
621627 pc++;
622628 goto main_loop;
You can’t perform that action at this time.
0 commit comments