修复双次打印bug
This commit is contained in:
parent
07c040b40d
commit
50fbc40039
@ -118,8 +118,7 @@ public class VirtualMachineEngine {
|
|||||||
rootLvs.compact(); // trim leading / trailing null slots
|
rootLvs.compact(); // trim leading / trailing null slots
|
||||||
}
|
}
|
||||||
|
|
||||||
printStack();
|
|
||||||
printLocalVariables();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------- Helper: ensure root frame ---------- */
|
/* ---------- Helper: ensure root frame ---------- */
|
||||||
|
|||||||
8
test
8
test
@ -6,9 +6,9 @@ module: CommonTasks
|
|||||||
return_type:int
|
return_type:int
|
||||||
|
|
||||||
body:
|
body:
|
||||||
num1 = 10
|
num1 = 1
|
||||||
num2=1
|
num2=2
|
||||||
return num1 + CommonTasks.test(2)
|
return num1 + CommonTasks.test(3)
|
||||||
end body
|
end body
|
||||||
end function
|
end function
|
||||||
|
|
||||||
@ -18,7 +18,7 @@ module: CommonTasks
|
|||||||
return_type:int
|
return_type:int
|
||||||
body:
|
body:
|
||||||
declare result : int
|
declare result : int
|
||||||
declare num2: int =1
|
declare num2: int =4
|
||||||
result = num2 + num1
|
result = num2 + num1
|
||||||
return result
|
return result
|
||||||
end body
|
end body
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user