author | Jan Vrany <jan.vrany@labware.com> |
Thu, 27 Oct 2022 14:53:59 +0100 | |
branch | jv |
changeset 4735 | 3b11fb3ede98 |
parent 4654 | f001d36a3229 |
permissions | -rw-r--r-- |
4383
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
1 |
" |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
2 |
COPYRIGHT (c) 1989 by Claus Gittinger / eXept Software AG |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
3 |
COPYRIGHT (c) 2016 Jan Vrany |
4654
f001d36a3229
Fixed compiler to produce correct(ish) variable table
Jan Vrany <jan.vrany@labware.com>
parents:
4385
diff
changeset
|
4 |
COPYRIGHT (c) 2020 LabWare |
4383
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
5 |
All Rights Reserved |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
6 |
|
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
7 |
This software is furnished under a license and may be used |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
8 |
only in accordance with the terms of that license and with the |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
9 |
inclusion of the above copyright notice. This software may not |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
10 |
be provided or otherwise made available to, or used by, any |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
11 |
other person. No title to or ownership of the software is |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
12 |
hereby transferred. |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
13 |
" |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
14 |
"{ Package: 'stx:libcomp' }" |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
15 |
|
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
16 |
"{ NameSpace: Smalltalk }" |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
17 |
|
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
18 |
DISection subclass:#DIVariableTable |
4385
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
19 |
instanceVariableNames:'variables_count variables' |
4383
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
20 |
classVariableNames:'' |
4384
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
21 |
poolDictionaries:'DISectionTypes' |
4383
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
22 |
category:'System-Compiler-Debug Info' |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
23 |
! |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
24 |
|
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
25 |
!DIVariableTable class methodsFor:'documentation'! |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
26 |
|
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
27 |
copyright |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
28 |
" |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
29 |
COPYRIGHT (c) 1989 by Claus Gittinger / eXept Software AG |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
30 |
COPYRIGHT (c) 2016 Jan Vrany |
4654
f001d36a3229
Fixed compiler to produce correct(ish) variable table
Jan Vrany <jan.vrany@labware.com>
parents:
4385
diff
changeset
|
31 |
COPYRIGHT (c) 2020 LabWare |
4383
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
32 |
All Rights Reserved |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
33 |
|
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
34 |
This software is furnished under a license and may be used |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
35 |
only in accordance with the terms of that license and with the |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
36 |
inclusion of the above copyright notice. This software may not |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
37 |
be provided or otherwise made available to, or used by, any |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
38 |
other person. No title to or ownership of the software is |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
39 |
hereby transferred. |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
40 |
" |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
41 |
! ! |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
42 |
|
4384
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
43 |
!DIVariableTable class methodsFor:'instance creation'! |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
44 |
|
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
45 |
new |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
46 |
"return an initialized instance" |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
47 |
|
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
48 |
^ self basicNew initialize. |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
49 |
! ! |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
50 |
|
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
51 |
!DIVariableTable methodsFor:'accessing'! |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
52 |
|
4385
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
53 |
variables |
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
54 |
^ variables |
4384
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
55 |
! |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
56 |
|
4385
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
57 |
variablesCount |
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
58 |
^ variables_count |
4384
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
59 |
|
4385
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
60 |
"Created: / 15-07-2018 / 11:48:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
4384
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
61 |
! ! |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
62 |
|
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
63 |
!DIVariableTable methodsFor:'adding & removing'! |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
64 |
|
4385
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
65 |
addVariable: aDIVariable |
4654
f001d36a3229
Fixed compiler to produce correct(ish) variable table
Jan Vrany <jan.vrany@labware.com>
parents:
4385
diff
changeset
|
66 |
(variables includes: aDIVariable) ifTrue:[ |
f001d36a3229
Fixed compiler to produce correct(ish) variable table
Jan Vrany <jan.vrany@labware.com>
parents:
4385
diff
changeset
|
67 |
self error: 'Oops, trying to add the same variable twice?' |
f001d36a3229
Fixed compiler to produce correct(ish) variable table
Jan Vrany <jan.vrany@labware.com>
parents:
4385
diff
changeset
|
68 |
]. |
4385
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
69 |
variables := variables copyWith: aDIVariable. |
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
70 |
variables_count := variables_count + 1 |
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
71 |
|
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
72 |
"Created: / 14-07-2018 / 20:52:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
4654
f001d36a3229
Fixed compiler to produce correct(ish) variable table
Jan Vrany <jan.vrany@labware.com>
parents:
4385
diff
changeset
|
73 |
"Modified: / 09-06-2020 / 13:25:54 / Jan Vrany <jan.vrany@labware.com>" |
4385
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
74 |
! |
4384
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
75 |
|
4385
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
76 |
addVariableNamed:aString isArgument:aBoolean offset:anOnteger physicalBlock: physical lexicalBlock: lexical |
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
77 |
self addVariable:((DIVariable new) |
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
78 |
physicalBlockSourceOffset: (physical isNil ifTrue:[0] ifFalse:[physical startPosition]); |
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
79 |
lexicalBlockSourceOffset: (lexical isNil ifTrue:[0] ifFalse:[lexical startPosition]); |
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
80 |
frameOffset:anOnteger; |
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
81 |
isArgument:aBoolean; |
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
82 |
name:aString) |
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
83 |
|
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
84 |
"Created: / 06-02-2019 / 22:30:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
85 |
"Modified: / 07-02-2019 / 21:57:46 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
4384
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
86 |
! ! |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
87 |
|
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
88 |
!DIVariableTable methodsFor:'initialization'! |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
89 |
|
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
90 |
initialize |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
91 |
"Invoked when a new instance is created." |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
92 |
|
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
93 |
type := DbgInfoSectionVariableTable. |
4385
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
94 |
variables_count := 0. |
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
95 |
variables := #() |
4384
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
96 |
|
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
97 |
"/ super initialize. -- commented since inherited method does nothing |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
98 |
|
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
99 |
"Modified: / 15-07-2018 / 12:33:58 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
100 |
! ! |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
101 |
|
4383
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
102 |
!DIVariableTable methodsFor:'reading & writing'! |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
103 |
|
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
104 |
decode: aStream |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
105 |
size := aStream nextUnsignedInt16MSB: UninterpretedBytes isBigEndian. |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
106 |
type := aStream nextByte. |
4385
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
107 |
variables_count := aStream nextUnsignedInt16MSB: UninterpretedBytes isBigEndian. |
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
108 |
variables := (1 to: variables_count) collect: [ :i | DIVariable decode: aStream ]. |
4383
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
109 |
|
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
110 |
"Created: / 10-07-2018 / 12:50:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
4385
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
111 |
"Modified: / 06-02-2019 / 22:28:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
4384
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
112 |
! |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
113 |
|
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
114 |
encode: aStream |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
115 |
self encodePrepare: aStream. |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
116 |
aStream nextPutByte: type. |
4385
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
117 |
aStream nextPutInt16: variables_count MSB: UninterpretedBytes isBigEndian. |
16741aa9dc2e
DBG: refactor variable table to use new flat format
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4384
diff
changeset
|
118 |
variables do:[:block | block encode: aStream ]. |
4384
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
119 |
self encodeFinish: aStream. |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
120 |
|
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
121 |
"Created: / 15-07-2018 / 10:56:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
4383
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
122 |
! ! |
b93f1405b8c7
DBG: Added classes representing Smalltalk/X debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
diff
changeset
|
123 |
|
4384
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
124 |
!DIVariableTable methodsFor:'testing'! |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
125 |
|
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
126 |
isVariableTableSection |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
127 |
^ true |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
128 |
|
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
129 |
"Created: / 15-07-2018 / 11:27:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
130 |
! ! |
aee25576d864
DBG: teach `ByteCodeCompiler` to generate Smalltalk/X debug info
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
4383
diff
changeset
|
131 |
|
4654
f001d36a3229
Fixed compiler to produce correct(ish) variable table
Jan Vrany <jan.vrany@labware.com>
parents:
4385
diff
changeset
|
132 |
!DIVariableTable class methodsFor:'documentation'! |
f001d36a3229
Fixed compiler to produce correct(ish) variable table
Jan Vrany <jan.vrany@labware.com>
parents:
4385
diff
changeset
|
133 |
|
f001d36a3229
Fixed compiler to produce correct(ish) variable table
Jan Vrany <jan.vrany@labware.com>
parents:
4385
diff
changeset
|
134 |
version_HG |
f001d36a3229
Fixed compiler to produce correct(ish) variable table
Jan Vrany <jan.vrany@labware.com>
parents:
4385
diff
changeset
|
135 |
|
f001d36a3229
Fixed compiler to produce correct(ish) variable table
Jan Vrany <jan.vrany@labware.com>
parents:
4385
diff
changeset
|
136 |
^ '$Changeset: <not expanded> $' |
f001d36a3229
Fixed compiler to produce correct(ish) variable table
Jan Vrany <jan.vrany@labware.com>
parents:
4385
diff
changeset
|
137 |
! ! |
f001d36a3229
Fixed compiler to produce correct(ish) variable table
Jan Vrany <jan.vrany@labware.com>
parents:
4385
diff
changeset
|
138 |