Skip to content

Commit

Permalink
Encoder is not referenced and just has two methods on the class side
Browse files Browse the repository at this point in the history
- move methods down
- remove Encoder

fixes pharo-project#2334
  • Loading branch information
MarcusDenker committed Nov 6, 2019
1 parent 306da59 commit 26de376
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 17 deletions.
@@ -1,6 +1,6 @@
Extension { #name : #Encoder }
Extension { #name : #BytecodeEncoder }

{ #category : #'*Flashback-Decompiler' }
Encoder class >> skipTemps: numTemps for: aDecompiler [
BytecodeEncoder class >> skipTemps: numTemps for: aDecompiler [
numTemps timesRepeat: [ aDecompiler goToNextInstruction ]
]
8 changes: 7 additions & 1 deletion src/Kernel-BytecodeEncoders/BytecodeEncoder.class.st
Expand Up @@ -3,7 +3,7 @@ I am an abstract superclass for different bytecode set encoders. Subclasses inh
"
Class {
#name : #BytecodeEncoder,
#superclass : #Encoder,
#superclass : #Object,
#instVars : [
'stream',
'position',
Expand Down Expand Up @@ -56,6 +56,12 @@ BytecodeEncoder class >> nonExtensionPcAt: pc in: method [
^thePC
]

{ #category : #'bytecode decoding' }
BytecodeEncoder class >> quickPrimSpecialConstants [
"Note: they are different from the encoder special literals."
^ #(true false nil -1 0 1 2)
]

{ #category : #'bytecode decoding' }
BytecodeEncoder class >> specialSelectors [
^ #(#+ #- #< #> #'<=' #'>=' #= #'~=' #* #/ #'\\' #@ #bitShift: #'//' #bitAnd: #bitOr: #at: #at:put: #size #next #nextPut: #atEnd #'==' nil "class" #'~~' #value #value: #do: #new #new: #x #y)
Expand Down
14 changes: 0 additions & 14 deletions src/Kernel-BytecodeEncoders/Encoder.class.st

This file was deleted.

0 comments on commit 26de376

Please sign in to comment.