Skip to content

Instantly share code, notes, and snippets.

@TheCurle
Created March 27, 2021 21:56
Show Gist options
  • Save TheCurle/e21e06cd6d91fe8961390bdcee761591 to your computer and use it in GitHub Desktop.
Save TheCurle/e21e06cd6d91fe8961390bdcee761591 to your computer and use it in GitHub Desktop.
[purpuri logs]
****************
Starting Execution
*****************
Execution frame 0, stack begins 0
Executing TestCaseFinalFieldInterface::EntryPoint
Thread 1 hit Breakpoint 1, Engine::Ignite (this=0x6efc90, Stack=0xe16800)
at C:/Users/Owner/Desktop/Codings/Purpuri/source/Engine.cpp:57
57 if(!New(CurrentFrame)) {
(gdb) c
Continuing.
Creating new object from class TestCaseFinalFieldInterface
Initialized new object
Duplicated the last item on the stack
Pushed int constant 5 to the stack
Invoking a function.. index is 2.
Calculating invocation for instance function.
Invocation is calling into class TestCaseFinalFieldInterface
Invocation resolves to method <init>(I)V
Method has 1 parameters, skipping ahead..
Parameter 0 = 5
Class to invoke is object #2.
Class at 0xe115d0.
Searching class TestCaseFinalFieldInterface for <init>(I)V
Class implements interfaces IOperation
Examining class TestCaseFinalFieldInterface for EntryPoint()I, access 33
Examining class TestCaseFinalFieldInterface for <init>(I)V, access 33
Found at index 1
Method has access 0x1.
Setting locals..
Setting "this" to 2.
Setting local 1 to 5.
Function's parameters start at 2.
Invoking method <init>(I)V - Last frame at 5, new frame begins 3
Execution frame 1, stack begins 3
Executing TestCaseFinalFieldInterface::<init>
Pulled object 2 out of local 0 into the stack
Invoking a function.. index is 4.
Calculating invocation for instance function.
Invocation is calling into class java/lang/Object
Invocation resolves to method <init>()V
Method has 0 parameters, skipping ahead..
Class to invoke is object #2.
Class at 0xe115d0.
Searching class TestCaseFinalFieldInterface for <init>()V
Class implements interfaces IOperation
Examining class TestCaseFinalFieldInterface for EntryPoint()I, access 33
Examining class TestCaseFinalFieldInterface for <init>(I)V, access 33
Examining class TestCaseFinalFieldInterface for op(II)I, access 33
Searching class java/lang/Object for <init>()V
Class implements interfaces
Examining class java/lang/Object for <init>()V, access 33
Found at index 0
Method has access 0x1.
Setting locals..
Setting "this" to 2.
Function's parameters start at 1.
Invoking method <init>()V - Last frame at 6, new frame begins 5
Execution frame 2, stack begins 5
Executing java/lang/Object::<init>
Function returns
Shrinking the stack by 0 positions.
Pushing function return value..
Restoring the value under the function, just in case.
Pulled object 2 out of local 0 into the stack
Pulled int 5 out of local 1 into the stack
Setting field constant to 5.
Function returns
Shrinking the stack by 1 positions.
Pushing function return value..
Restoring the value under the function, just in case.
Pulled the last object on the stack into local 0
Thread 1 hit Breakpoint 1, Engine::Ignite (this=0x6efc90, Stack=0xe16800)
at C:/Users/Owner/Desktop/Codings/Purpuri/source/Engine.cpp:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment