Skip to content

Commit 4f2fdc9

Browse files
committed
Cleanup baseline
1 parent 006b1cd commit 4f2fdc9

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

src/BaselineOfSindarin/BaselineOfSindarin.class.st

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ BaselineOfSindarin >> baseline: spec [
1010

1111
<baseline>
1212
spec for: #common do: [
13-
spec postLoadDoIt: #postloadWithLoader:withPackageSpec:.
14-
1513
spec
1614
package: 'Sindarin';
1715
package: 'Sindarin-Tests';
@@ -21,17 +19,3 @@ BaselineOfSindarin >> baseline: spec [
2119
group: 'default' with: #( 'Sindarin' 'Sindarin-Tests' );
2220
group: 'experiments' with: #( 'default' 'Sindarin-Experiments' )
2321
]
24-
25-
{ #category : 'baselines' }
26-
BaselineOfSindarin >> postloadWithLoader: loader withPackageSpec: spec [
27-
28-
InstructionStream compiledMethodAt: #willJumpIfFalse ifAbsent: [
29-
Smalltalk compiler
30-
source: 'willJumpIfFalse
31-
"Answer whether the next bytecode is a jump-if-false."
32-
33-
^ self method encoderClass isBranchIfFalseAt: pc in: self method';
34-
class: InstructionStream;
35-
compile;
36-
install ]
37-
]

src/Sindarin/InstructionStream.extension.st

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
Extension { #name : 'InstructionStream' }
22

3+
{ #category : '*Sindarin' }
4+
InstructionStream >> willCreateBlock [
5+
"next bytecode is a block creation"
6+
7+
^ self method encoderClass isCreateFullBlockAt: pc in: self method
8+
]
9+
310
{ #category : '*Sindarin' }
411
InstructionStream >> willJump [
512
"Answer whether the next bytecode will jump."

0 commit comments

Comments
 (0)