Commit a51d41c
committed
CogVM source as per VMMaker.oscog-eem.3690
Simplify getting/setting the flags in imageHeaderFlags. No longer extract these into
separate variables (eliminating 10 variables), but instead test the bits directly.
Declare imageHeaderFlags in sq.h as extern const; provide sendWheelEvents as a macro.
Split and rename primitiveDoMixedArithmetic into numericPrimsMixArithmetic &
numericPrimsMixComparison. This involves adding loadFloatOrIntForComparisonFrom:
alongside loadFloatOrIntFrom:. See Cuis-Smalltalk/Cuis-Smalltalk-Dev#308
Have the MTVM exit with an error if the flag for processHasThreadAffinity is not set,
instead of testing it everywhere. Hence get rid of willNotThreadWarnCount, and avoid
testing processHasThreadAffinity except once at startup.
Commit the plumbing for processHasOSErr which will be tested by the FFI to collect
errno/GetLastError immediately after any FFI call, eliminating the possibility of
preemtion between call and error fetch if implemented at the image level.
Move InterpreterPrimitives>>{primitiveFailForFFIException:at:,primitiveInvokeObjectAsMethod,primitiveMethod}
from InterpreterPrimitives to StackInterpreterPrimitives/StackInterpreter, which allows
moving messageSelector and newMethod down to StackInterpreter which is a better place for them.
Make the logging into ownerLog in CogThreadManager conditional, controlled by the global enableOwnerLog.
Cogit:
Rename compileAbstractInstructionsFrom:through: to what it does, compileBytecodesFrom:through:1 parent 56c571a commit a51d41c
File tree
69 files changed
+19402
-17735
lines changed- platforms
- Cross/vm
- iOS/vm/OSX
- unix
- vm-display-X11
- vm-display-fbdev
- win32/vm
- src
- plugins/VectorEnginePlugin
- spur32.cog.lowcode
- spur32.cog
- spur32.sista
- spur32.stack.lowcode
- spur32.stack
- spur64.cog.lowcode
- spur64.cog
- spur64.sista
- spur64.stack.lowcode
- spur64.stack
- v3.cog
- v3.stack
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
69 files changed
+19402
-17735
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
222 | 225 | | |
223 | 226 | | |
224 | 227 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
| 382 | + | |
382 | 383 | | |
383 | 384 | | |
384 | 385 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | | - | |
17 | | - | |
18 | 20 | | |
19 | 21 | | |
20 | | - | |
21 | 22 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 23 | + | |
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
| |||
384 | 380 | | |
385 | 381 | | |
386 | 382 | | |
| 383 | + | |
387 | 384 | | |
388 | 385 | | |
389 | 386 | | |
| |||
610 | 607 | | |
611 | 608 | | |
612 | 609 | | |
| 610 | + | |
613 | 611 | | |
614 | 612 | | |
615 | 613 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
| 380 | + | |
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3495 | 3495 | | |
3496 | 3496 | | |
3497 | 3497 | | |
3498 | | - | |
3499 | 3498 | | |
3500 | 3499 | | |
3501 | 3500 | | |
| |||
3634 | 3633 | | |
3635 | 3634 | | |
3636 | 3635 | | |
3637 | | - | |
| 3636 | + | |
3638 | 3637 | | |
3639 | 3638 | | |
3640 | 3639 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
56 | 54 | | |
57 | 55 | | |
58 | 56 | | |
| |||
642 | 640 | | |
643 | 641 | | |
644 | 642 | | |
645 | | - | |
| 643 | + | |
646 | 644 | | |
647 | 645 | | |
648 | 646 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | 74 | | |
78 | 75 | | |
79 | 76 | | |
| |||
383 | 380 | | |
384 | 381 | | |
385 | 382 | | |
386 | | - | |
| 383 | + | |
387 | 384 | | |
388 | 385 | | |
389 | 386 | | |
| |||
413 | 410 | | |
414 | 411 | | |
415 | 412 | | |
416 | | - | |
| 413 | + | |
417 | 414 | | |
418 | 415 | | |
419 | 416 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments