Skip to content

Commit

Permalink
Adding extra descriptors on the interpreter as pragmas on bytecode me…
Browse files Browse the repository at this point in the history
…thods
  • Loading branch information
PalumboN committed Apr 25, 2023
1 parent 4783c54 commit 7e38e7f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions smalltalksrc/VMMaker/StackInterpreter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -12514,6 +12514,7 @@ StackInterpreter >> pushLiteralConstant: literalIndex [
{ #category : #'stack bytecodes' }
StackInterpreter >> pushLiteralConstantBytecode [
<expandCases>
<needsFrameNever: 1>
self
cCode: "this bytecode will be expanded so that refs to currentBytecode below will be constant"
[self fetchNextBytecode.
Expand Down Expand Up @@ -12620,6 +12621,7 @@ StackInterpreter >> pushNewArrayBytecode [

{ #category : #'stack bytecodes' }
StackInterpreter >> pushReceiverBytecode [
<needsFrameNever: 1>

self fetchNextBytecode.
self push: self receiver.
Expand All @@ -12635,6 +12637,7 @@ StackInterpreter >> pushReceiverVariable: fieldIndex [
{ #category : #'stack bytecodes' }
StackInterpreter >> pushReceiverVariableBytecode [
<expandCases>
<needsFrameNever: 1>
self
cCode: "this bytecode will be expanded so that refs to currentBytecode below will be constant"
[self fetchNextBytecode.
Expand Down Expand Up @@ -13073,6 +13076,9 @@ StackInterpreter >> returnTopFromBlock [

{ #category : #'return bytecodes' }
StackInterpreter >> returnTopFromMethod [
<compilationInfo: #return>
<compilationInfo: #isMappedInBlock>
<needsFrameIfInBlock: -1>

self commonReturn: self stackTop
]
Expand Down

0 comments on commit 7e38e7f

Please sign in to comment.