Skip to content

Commit 3962ffe

Browse files
Merge pull request #74 from adri09070/adding-missing-methods-if-needed-when-loading-p12
compiling missing method when loading master or Pharo12 in P12, because it deletes a method from the entire system, while it should ONLY delete it from Sindarin
2 parents 63dd353 + 7c9925b commit 3962ffe

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

src/BaselineOfSindarin/BaselineOfSindarin.class.st

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,31 @@ Class {
66

77
{ #category : #baselines }
88
BaselineOfSindarin >> baseline: spec [
9+
910
<baseline>
10-
11+
spec for: #common do: [
12+
spec postLoadDoIt: #postloadWithLoader:withPackageSpec:.
13+
14+
spec
15+
package: 'Sindarin';
16+
package: 'Sindarin-Tests';
17+
package: 'Sindarin-Experiments' ].
18+
1119
spec
12-
for: #common
13-
do: [
14-
spec
15-
package: 'Sindarin';
16-
package: 'Sindarin-Tests';
17-
package: 'Sindarin-Experiments' ].
18-
19-
spec
20-
group: 'default' with: #( 'Sindarin' 'Sindarin-Tests');
21-
group: 'experiments' with: #('default' 'Sindarin-Experiments')
20+
group: 'default' with: #( 'Sindarin' 'Sindarin-Tests' );
21+
group: 'experiments' with: #( 'default' 'Sindarin-Experiments' )
22+
]
23+
24+
{ #category : #baselines }
25+
BaselineOfSindarin >> postloadWithLoader: loader withPackageSpec: spec [
26+
27+
InstructionStream compiledMethodAt: #willJumpIfFalse ifAbsent: [
28+
Smalltalk compiler
29+
source: 'willJumpIfFalse
30+
"Answer whether the next bytecode is a jump-if-false."
31+
32+
^ self method encoderClass isBranchIfFalseAt: pc in: self method';
33+
class: InstructionStream;
34+
compile;
35+
install ]
2236
]

0 commit comments

Comments
 (0)