Skip to content

Commit

Permalink
rename before inlinings
Browse files Browse the repository at this point in the history
  • Loading branch information
ivojawer committed Jul 25, 2023
1 parent 519117e commit d22631c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions smalltalksrc/Slang/CCodeGenerator.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,9 @@ CCodeGenerator >> emitCCodeOn: aStream doInlining: inlineFlag doAssertions: asse
logger cr ].
assertionFlag ifFalse: [ self removeAssertions ].
self renameConflictingMethods.
self renameKeywordsConflicts.
self renameConflictingLocals.
self doInlining: inlineFlag.
Expand All @@ -1054,11 +1057,6 @@ CCodeGenerator >> emitCCodeOn: aStream doInlining: inlineFlag doAssertions: asse
"code generation"
self renameConflictingMethods.
self renameKeywordsConflicts.
self renameConflictingLocals.
"If we're outputting the VM put the main interpreter loop first for two reasons.
1, so that the dispdbg.h header included at the bytecode dispatch can define
macros that affect all C code in the interpreter, and 2, so that all primitive
Expand Down
4 changes: 2 additions & 2 deletions smalltalksrc/VMMaker/StackInterpreter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -12324,9 +12324,9 @@ StackInterpreter >> printStackPage: page useCount: n [
[self cr; tab; print: 'baseFP '; printHexPtr: page baseFP.
self "cr;" tab; print: 'headFP '; printHexPtr: page headFP.
self "cr;" tab; print: 'headSP '; printHexPtr: page headSP].
self cr; tab; print: 'prev '; printHexPtr: (self cCode: 'page->prevPage' inSmalltalk: [page prevPage baseAddress]);
self cr; tab; print: 'prev '; printHexPtr: (self cCode: 'l_page->prevPage' inSmalltalk: [page prevPage baseAddress]);
print: ' ('; printNum: (stackPages pageIndexFor: page prevPage realStackLimit); printChar: $).
self tab; print: 'next '; printHexPtr: (self cCode: 'page->nextPage' inSmalltalk: [page nextPage baseAddress]);
self tab; print: 'next '; printHexPtr: (self cCode: 'l_page->nextPage' inSmalltalk: [page nextPage baseAddress]);
print: ' ('; printNum: (stackPages pageIndexFor: page nextPage realStackLimit); printChar: $).
self cr
]
Expand Down

0 comments on commit d22631c

Please sign in to comment.