-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dangling object references tracking and cleanup (#383)
* initial instructions * rename code_stack in emit * update release notes * rework memory management across func calls * add stmt object loop conditional replacement mechanism * add func-call-loop stmt cleanup unit test * clean up windows snprintf warnings * add pointer printing to stmt instrs * add stmt->exp level dangling object reference tracking and cleanup * fixed stmt->exp dangling refs for return * dangle ref and stack pointer unit tests * rename unit test 220 * unit tests 226 227
- Loading branch information
Showing
23 changed files
with
1,034 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// casting between vec2, vec3, vec4 | ||
|
||
// vec2 to vec3 | ||
@(1,2) $ vec4 => vec4 v4; <<< v4 >>>; | ||
// vec2 to vec4 | ||
@(1,2) $ vec4 => v4; <<< v4 >>>; | ||
// vec3 to vec4 | ||
@(1,2,3) $ vec4 => v4; <<< v4 >>>; | ||
|
||
// vec4 to vec3 | ||
@(1,2,3,4) $ vec3 => vec3 v3; <<< v3 >>>; | ||
// vec4 to vec2 | ||
@(1,2,3,4) $ vec2 => vec2 v2; <<< v2 >>>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.