JavaContext.st
author Claus Gittinger <cg@exept.de>
Thu, 24 Nov 2011 13:02:05 +0100
changeset 2330 b189800c0d92
parent 2304 73806b718f4e
child 2353 fa7400d022a0
permissions -rw-r--r--
automatically generated by browser
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
454
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
     1
"
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
     2
 COPYRIGHT (c) 1996-2011 by Claus Gittinger
454
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
     3
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
     4
 This software is furnished under a license and may be used
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
     5
 only in accordance with the terms of that license and with the
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
     6
 inclusion of the above copyright notice.   This software may not
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
     7
 be provided or otherwise made available to, or used by, any
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
     8
 other person.  No title to or ownership of the software is
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
     9
 hereby transferred.
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
    10
"
680
31fd72cf818e printString
cg
parents: 671
diff changeset
    11
"{ Package: 'stx:libjava' }"
31fd72cf818e printString
cg
parents: 671
diff changeset
    12
427
a7083b7a8724 *** empty log message ***
cg
parents: 382
diff changeset
    13
Context variableSubclass:#JavaContext
2150
3dbc038c151a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
    14
	instanceVariableNames:'exArg exPC byteCode constPool'
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
    15
	classVariableNames:''
916f444c5cae intitial checkin
cg
parents:
diff changeset
    16
	poolDictionaries:''
713
75e92ac63bf1 category change
cg
parents: 680
diff changeset
    17
	category:'Languages-Java-Support'
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
    18
!
916f444c5cae intitial checkin
cg
parents:
diff changeset
    19
454
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
    20
!JavaContext class methodsFor:'documentation'!
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
    21
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
    22
copyright
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
    23
"
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
    24
 COPYRIGHT (c) 1996-2011 by Claus Gittinger
454
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
    25
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
    26
 This software is furnished under a license and may be used
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
    27
 only in accordance with the terms of that license and with the
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
    28
 inclusion of the above copyright notice.   This software may not
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
    29
 be provided or otherwise made available to, or used by, any
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
    30
 other person.  No title to or ownership of the software is
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
    31
 hereby transferred.
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
    32
"
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
    33
! !
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
    34
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
    35
!JavaContext methodsFor:'* As yet uncategorized *'!
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
    36
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
    37
markForException
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
    38
    "set the exception handler flag in the receiver.
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
    39
     The JVM needs this to enter an exception handler instead of restarting
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
    40
     from the beginning (when the context is restarted).
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
    41
     - a highly internal mechanism and not for public use."
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
    42
"
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
    43
%{  /* NOCONTEXT */
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
    44
#ifdef __JAVA_EX_PEND
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
    45
     /* actually no longer - only a non-nil exPC is now used as marker */
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
    46
     __INST(flags) = (OBJ)((INT)__INST(flags) | __MASKSMALLINT(__JAVA_EX_PEND));
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
    47
#endif
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
    48
%}
454
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
    49
"
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
    50
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
    51
    "Modified: / 13-12-1995 / 19:05:22 / cg"
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
    52
    "Modified: / 25-10-2010 / 17:19:23 / Jan Vrany <jan.vrany@fit.cvut.cz>"
454
38f590639d65 *** empty log message ***
cg
parents: 429
diff changeset
    53
! !
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
    54
916f444c5cae intitial checkin
cg
parents:
diff changeset
    55
!JavaContext methodsFor:'ST context mimicri'!
916f444c5cae intitial checkin
cg
parents:
diff changeset
    56
261
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
    57
arg1Index
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
    58
    "the java stack contains the receiver in a non-static
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
    59
     method, as slot 0. Therefore, the first arg is found at slot2
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
    60
     if this is for a non-static method"
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    61
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    62
    self method isStatic ifTrue:[
261
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
    63
	^ 1
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    64
    ].
261
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
    65
    ^ 2
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
    66
!
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
    67
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
    68
argAt:n
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
    69
    "return the i'th argument (1..nArgs)"
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
    70
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
    71
    ^ self at:(self arg1Index - 1 + n)
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    72
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    73
    "Created: / 2.1.1998 / 17:54:13 / cg"
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    74
    "Modified: / 2.1.1998 / 21:39:30 / cg"
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    75
!
117
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
    76
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    77
argAt:n put:value
261
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
    78
    "change the i'th argument (1..nArgs)"
216
abe4c0313d97 checkin from browser
cg
parents: 211
diff changeset
    79
261
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
    80
    ^ super argAt:(self arg1Index - 1 + n) put:value
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    81
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    82
    "Created: / 2.1.1998 / 17:54:34 / cg"
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    83
    "Modified: / 2.1.1998 / 21:35:19 / cg"
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    84
!
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    85
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    86
args
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    87
    "return an array filled with the arguments of this context"
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    88
261
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
    89
    |n|
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
    90
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    91
    n := self numArgs.
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    92
    n == 0 ifTrue:[
261
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
    93
	"/ little optimization here - avoid creating empty containers
255
2d8b3948a08a *** empty log message ***
cg
parents: 252
diff changeset
    94
	^ #()
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    95
    ].
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    96
261
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
    97
    ^ (Array new:n) replaceFrom:1 to:n with:self startingAt:(self arg1Index).
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    98
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
    99
    "Created: / 2.1.1998 / 17:54:57 / cg"
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   100
    "Modified: / 2.1.1998 / 21:34:44 / cg"
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   101
!
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   102
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   103
argsAndVars
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   104
    "return an array filled with the arguments and variables of this context"
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   105
261
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   106
    |n|
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   107
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   108
    n := self numArgs + self numVars.
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   109
    n == 0 ifTrue:[
363
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   110
	"/ little optimization here - avoid creating empty containers
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   111
	^ #()
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   112
    ].
261
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   113
    ^ (Array new:n) replaceFrom:1 to:n with:self startingAt:(self arg1Index).
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   114
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   115
    "Created: / 2.1.1998 / 17:55:14 / cg"
261
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   116
    "Modified: / 13.1.1998 / 15:44:56 / cg"
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   117
!
916f444c5cae intitial checkin
cg
parents:
diff changeset
   118
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   119
lineNumber
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   120
    |nr pc|
156
fee47d32724d *** empty log message ***
cg
parents: 129
diff changeset
   121
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   122
    pc := self pc.
43
2c4ca2eb8d07 checkin from browser
cg
parents: 41
diff changeset
   123
211
bd118f601aed *** empty log message ***
cg
parents: 210
diff changeset
   124
"/ 'ask line for pc:' print. pc printCR.
255
2d8b3948a08a *** empty log message ***
cg
parents: 252
diff changeset
   125
    pc isNil ifTrue:[
363
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   126
	nr := self lineNumberFromMethod.
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   127
	nr notNil ifTrue:[
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   128
	    ^ nr
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   129
	].
2150
3dbc038c151a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
   130
	" '-> 0 [a]' printCR. "
363
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   131
	^0
255
2d8b3948a08a *** empty log message ***
cg
parents: 252
diff changeset
   132
    ].
43
2c4ca2eb8d07 checkin from browser
cg
parents: 41
diff changeset
   133
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   134
    nr := self method lineNumberForPC:pc.
255
2d8b3948a08a *** empty log message ***
cg
parents: 252
diff changeset
   135
    nr isNil ifTrue:[
363
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   136
	nr := self lineNumberFromMethod.
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   137
	nr notNil ifTrue:[
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   138
	    ^ nr
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   139
	].
2150
3dbc038c151a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
   140
	" '-> 0 [b]' printCR. "
363
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   141
	^ 0
255
2d8b3948a08a *** empty log message ***
cg
parents: 252
diff changeset
   142
    ].
211
bd118f601aed *** empty log message ***
cg
parents: 210
diff changeset
   143
"/ '-> ' print. nr printCR.
210
6a64bc70270b *** empty log message ***
cg
parents: 205
diff changeset
   144
     ^ nr.
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   145
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   146
    "Created: / 1.5.1996 / 15:05:47 / cg"
261
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   147
    "Modified: / 15.1.1998 / 15:25:29 / cg"
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   148
!
916f444c5cae intitial checkin
cg
parents:
diff changeset
   149
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   150
lineNumberFromMethod
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   151
    |m|
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   152
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   153
    m := self method.
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   154
    m notNil ifTrue:[
255
2d8b3948a08a *** empty log message ***
cg
parents: 252
diff changeset
   155
	^ m lineNumber
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   156
    ].
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   157
    ^ nil
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   158
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   159
    "Created: / 4.1.1998 / 23:34:45 / cg"
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   160
    "Modified: / 4.1.1998 / 23:35:55 / cg"
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   161
!
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   162
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   163
method
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   164
    "the method may be found in the interpreter temps ..."
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   165
614
f042df9169e7 checkin from browser
cg
parents: 588
diff changeset
   166
    method isJavaMethod ifTrue:[^ method].
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   167
    ^ super method
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   168
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   169
    "Created: / 1.5.1996 / 15:03:43 / cg"
614
f042df9169e7 checkin from browser
cg
parents: 588
diff changeset
   170
    "Modified: / 25.9.1999 / 23:26:40 / cg"
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   171
!
916f444c5cae intitial checkin
cg
parents:
diff changeset
   172
916f444c5cae intitial checkin
cg
parents:
diff changeset
   173
numArgs
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   174
    "return the number of args.
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   175
     Redefined since Java keeps the receiver of a non-static method
261
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   176
     at local slot 1."
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   177
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   178
    |n|
198
5543d1079a4a *** empty log message ***
cg
parents: 156
diff changeset
   179
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   180
    n := super numArgs.
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   181
    self method isStatic ifFalse:[
255
2d8b3948a08a *** empty log message ***
cg
parents: 252
diff changeset
   182
	n := n - 1
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   183
    ].
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   184
    ^ n
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   185
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   186
    "Created: / 2.1.1998 / 22:21:24 / cg"
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   187
!
916f444c5cae intitial checkin
cg
parents:
diff changeset
   188
261
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   189
numTemps
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   190
    "return the number of temporary variables of the Method.
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   191
     Redefined since Java keeps the receiver of a non-static method
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   192
     at local slot 1."
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   193
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   194
    |n|
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   195
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   196
    n := self size - super numVars - super numArgs.
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   197
    ^ n
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   198
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   199
    "Created: / 13.1.1998 / 16:52:32 / cg"
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   200
    "Modified: / 13.1.1998 / 17:23:27 / cg"
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   201
!
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   202
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   203
numVars
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   204
    "return the number of locals.
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   205
     Redefined since Java keeps the receiver of a non-static method
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   206
     at local slot 0 and holds the args as locals."
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   207
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   208
    |n|
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   209
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   210
    n := super numVars.
588
dfb441458353 care for half-setup context when breakpointing
cg
parents: 511
diff changeset
   211
    ^ (n - self numArgs) max:0
261
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   212
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   213
    "Created: / 13.1.1998 / 17:03:08 / cg"
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   214
    "Modified: / 13.1.1998 / 17:25:16 / cg"
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   215
!
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   216
32
0dbaa43a73db checkin from browser
cg
parents: 28
diff changeset
   217
pc
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   218
    lineNr isNil ifTrue:[^ nil].
429
99990a8a3509 *** empty log message ***
cg
parents: 427
diff changeset
   219
    ^ lineNr bitAnd:16rFFFF
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   220
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   221
    "Created: / 4.1.1998 / 23:33:48 / cg"
429
99990a8a3509 *** empty log message ***
cg
parents: 427
diff changeset
   222
    "Modified: / 10.11.1998 / 13:20:12 / cg"
99990a8a3509 *** empty log message ***
cg
parents: 427
diff changeset
   223
!
99990a8a3509 *** empty log message ***
cg
parents: 427
diff changeset
   224
99990a8a3509 *** empty log message ***
cg
parents: 427
diff changeset
   225
quickLineNumber
99990a8a3509 *** empty log message ***
cg
parents: 427
diff changeset
   226
    "the lineNumber - without decompiling"
99990a8a3509 *** empty log message ***
cg
parents: 427
diff changeset
   227
99990a8a3509 *** empty log message ***
cg
parents: 427
diff changeset
   228
    ^ self method quickLineNumberForPC:self pc
99990a8a3509 *** empty log message ***
cg
parents: 427
diff changeset
   229
99990a8a3509 *** empty log message ***
cg
parents: 427
diff changeset
   230
    "Created: / 10.11.1998 / 14:20:30 / cg"
117
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   231
!
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   232
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   233
selector
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   234
    "the selector can be extracted from the method.
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   235
     the method may be found in the interpreter temps ..."
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   236
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   237
    |s m|
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   238
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   239
    selector isNil ifTrue:[
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   240
	m := self method.
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   241
	m notNil ifTrue:[
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   242
	    ^ m name
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   243
	]
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   244
    ].
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   245
    ^ super selector
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   246
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   247
    "Modified: / 30.12.1997 / 17:22:06 / cg"
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   248
    "Created: / 30.12.1997 / 17:23:47 / cg"
125
c99addd65f73 *** empty log message ***
cg
parents: 117
diff changeset
   249
!
c99addd65f73 *** empty log message ***
cg
parents: 117
diff changeset
   250
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   251
setPC:newPC
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   252
    lineNr := newPC
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   253
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   254
    "Created: / 5.1.1998 / 00:09:02 / cg"
261
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   255
!
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   256
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   257
temporaries
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   258
    "return an array filled with the arguments and variables of this context"
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   259
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   260
    |n nSkipped|
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   261
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   262
    "/ the flas-numVars includes the receiver and args
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   263
    nSkipped := super numVars "self numArgs + self numVars".
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   264
    "/ but my context setup is args+numvars.
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   265
    nSkipped := super numArgs + super numVars.
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   266
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   267
    n := self size - nSkipped.
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   268
    n == 0 ifTrue:[
363
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   269
	"/ little optimization here - avaoid creating empty containers
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   270
	^ #()
261
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   271
    ].
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   272
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   273
    ^ (Array new:n) replaceFrom:1 to:n with:self startingAt:nSkipped+1.
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   274
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   275
    "Created: / 13.1.1998 / 15:44:12 / cg"
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   276
    "Modified: / 13.1.1998 / 17:22:54 / cg"
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   277
!
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   278
2150
3dbc038c151a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
   279
vars
261
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   280
    "return an array filled with the local variables of this context"
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   281
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   282
    |nonVars mySize|
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   283
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   284
    mySize := self numVars.
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   285
    mySize == 0 ifTrue:[
363
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   286
	"/ little optimization here - avaoid creating empty containers
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   287
	^ #()
261
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   288
    ].
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   289
    nonVars := (self arg1Index-1) + self numArgs.
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   290
    ^ (Array new:mySize) replaceFrom:1 to:mySize with:self startingAt:nonVars+1
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   291
d95d5a3cc475 lots of new stuff
cg
parents: 255
diff changeset
   292
    "Created: / 13.1.1998 / 16:48:16 / cg"
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   293
! !
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   294
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
   295
!JavaContext methodsFor:'accessing'!
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
   296
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
   297
programmingLanguage
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
   298
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
   299
    ^JavaLanguage instance
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
   300
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
   301
    "Created: / 17-03-2011 / 10:17:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
   302
! !
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
   303
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   304
!JavaContext methodsFor:'exception handler support'!
117
4625d32e5a00 rewritten to use an Array for the stack,
cg
parents: 88
diff changeset
   305
255
2d8b3948a08a *** empty log message ***
cg
parents: 252
diff changeset
   306
exceptionArg:aJavaException
511
1395b1fc453f *** empty log message ***
cg
parents: 454
diff changeset
   307
    exArg := aJavaException.
1395b1fc453f *** empty log message ***
cg
parents: 454
diff changeset
   308
1395b1fc453f *** empty log message ***
cg
parents: 454
diff changeset
   309
    "Created: / 7.1.1998 / 21:36:56 / cg"
1395b1fc453f *** empty log message ***
cg
parents: 454
diff changeset
   310
!
1395b1fc453f *** empty log message ***
cg
parents: 454
diff changeset
   311
1395b1fc453f *** empty log message ***
cg
parents: 454
diff changeset
   312
exceptionArg:aJavaException pc:newPc
1395b1fc453f *** empty log message ***
cg
parents: 454
diff changeset
   313
    exArg := aJavaException.
1395b1fc453f *** empty log message ***
cg
parents: 454
diff changeset
   314
    exPC := newPc.
255
2d8b3948a08a *** empty log message ***
cg
parents: 252
diff changeset
   315
2d8b3948a08a *** empty log message ***
cg
parents: 252
diff changeset
   316
    "Created: / 7.1.1998 / 21:36:56 / cg"
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   317
! !
916f444c5cae intitial checkin
cg
parents:
diff changeset
   318
916f444c5cae intitial checkin
cg
parents:
diff changeset
   319
!JavaContext methodsFor:'printing & storing'!
916f444c5cae intitial checkin
cg
parents:
diff changeset
   320
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   321
receiverPrintString
2150
3dbc038c151a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
   322
    "return a string describing the receiver of the context"
52
1dc41619b6f8 checkin from browser
cg
parents: 43
diff changeset
   323
680
31fd72cf818e printString
cg
parents: 671
diff changeset
   324
    |receiverClass receiverClassName newString implementorClass searchClass|
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   325
363
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   326
"/ %{
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   327
"/     /*
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   328
"/      * special handling for (invalid) free objects.
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   329
"/      * these only appear if some primitiveCode does not correctly use SEND macros,
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   330
"/      * which may lead to sends to free objects. In normal operation, this 'cannot' happen.
2150
3dbc038c151a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
   331
"/      */
363
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   332
"/     if (__isNonNilObject(__INST(receiver)) && (__qClass(__INST(receiver))==nil)) {
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   333
"/         receiverClassName = __MKSTRING("FreeObject");
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   334
"/     }
1c36ff13b671 *** empty log message ***
cg
parents: 346
diff changeset
   335
"/ %}.
680
31fd72cf818e printString
cg
parents: 671
diff changeset
   336
"/    receiverClassName notNil ifTrue:[^ receiverClassName].
228
18ed0b234062 checkin from browser
cg
parents: 216
diff changeset
   337
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   338
    receiverClass := receiver class.
680
31fd72cf818e printString
cg
parents: 671
diff changeset
   339
    "/ java has no class-methods ...
31fd72cf818e printString
cg
parents: 671
diff changeset
   340
    receiverClass := receiverClass theNonMetaclass.
31fd72cf818e printString
cg
parents: 671
diff changeset
   341
31fd72cf818e printString
cg
parents: 671
diff changeset
   342
    receiverClassName := receiverClass nameInBrowser.
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   343
    (receiverClass == SmallInteger) ifTrue:[
2150
3dbc038c151a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
   344
	newString := '(' , receiver printString , ') ' , receiverClassName
228
18ed0b234062 checkin from browser
cg
parents: 216
diff changeset
   345
    ] ifFalse:[
2150
3dbc038c151a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
   346
	newString := receiverClassName
228
18ed0b234062 checkin from browser
cg
parents: 216
diff changeset
   347
    ].
18ed0b234062 checkin from browser
cg
parents: 216
diff changeset
   348
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   349
    "
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   350
     kludge to avoid slow search for containing class
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   351
    "
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   352
    (selector ~~ #doIt and:[selector ~~ #doIt:]) ifTrue:[
2150
3dbc038c151a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
   353
	implementorClass := self methodClass.
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   354
    ].
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   355
    implementorClass notNil ifTrue: [
2150
3dbc038c151a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
   356
	(implementorClass ~~ receiverClass) ifTrue: [
3dbc038c151a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
   357
	    newString := newString , '>>>',
3dbc038c151a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
   358
			 implementorClass nameInBrowser printString
3dbc038c151a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
   359
	]
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   360
    ] ifFalse:[
2150
3dbc038c151a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
   361
	searchClass := self searchClass.
3dbc038c151a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
   362
	searchClass ~~ receiverClass ifTrue:[
3dbc038c151a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
   363
	    newString := newString , '>>>' , searchClass nameInBrowser
3dbc038c151a *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2108
diff changeset
   364
	].
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   365
"/        "
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   366
"/         kludge for doIt - these unbound methods are not
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   367
"/         found in the classes methodDictionary
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   368
"/        "
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   369
"/        (selector ~~ #doIt and:[selector ~~ #doIt:]) ifTrue:[
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   370
"/            newString := newString , '>>>**NONE**'
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   371
"/        ]
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   372
    ].
916f444c5cae intitial checkin
cg
parents:
diff changeset
   373
252
04b330744577 new javaVM stuff & back to pre-stefans changes
cg
parents: 228
diff changeset
   374
    ^ newString
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   375
! !
916f444c5cae intitial checkin
cg
parents:
diff changeset
   376
343
b6ff12d916fb checkin from browser
cg
parents: 264
diff changeset
   377
!JavaContext methodsFor:'queries'!
b6ff12d916fb checkin from browser
cg
parents: 264
diff changeset
   378
b6ff12d916fb checkin from browser
cg
parents: 264
diff changeset
   379
hasStackToShow
b6ff12d916fb checkin from browser
cg
parents: 264
diff changeset
   380
    "private interface to the debugger.
b6ff12d916fb checkin from browser
cg
parents: 264
diff changeset
   381
     Smalltalk contexts return false here - other language frames
b6ff12d916fb checkin from browser
cg
parents: 264
diff changeset
   382
     (i.e. Java frames) may want to show the evaluation stack"
b6ff12d916fb checkin from browser
cg
parents: 264
diff changeset
   383
b6ff12d916fb checkin from browser
cg
parents: 264
diff changeset
   384
    ^ true
b6ff12d916fb checkin from browser
cg
parents: 264
diff changeset
   385
b6ff12d916fb checkin from browser
cg
parents: 264
diff changeset
   386
    "Modified: / 13.5.1997 / 16:31:12 / cg"
b6ff12d916fb checkin from browser
cg
parents: 264
diff changeset
   387
    "Created: / 7.5.1998 / 01:23:57 / cg"
b6ff12d916fb checkin from browser
cg
parents: 264
diff changeset
   388
!
b6ff12d916fb checkin from browser
cg
parents: 264
diff changeset
   389
346
36573254a561 added #isJavaContext
cg
parents: 343
diff changeset
   390
isJavaContext
36573254a561 added #isJavaContext
cg
parents: 343
diff changeset
   391
    "return true, if this is a javaContext."
36573254a561 added #isJavaContext
cg
parents: 343
diff changeset
   392
36573254a561 added #isJavaContext
cg
parents: 343
diff changeset
   393
    ^ true
36573254a561 added #isJavaContext
cg
parents: 343
diff changeset
   394
36573254a561 added #isJavaContext
cg
parents: 343
diff changeset
   395
    "Created: / 8.5.1998 / 21:23:47 / cg"
36573254a561 added #isJavaContext
cg
parents: 343
diff changeset
   396
!
36573254a561 added #isJavaContext
cg
parents: 343
diff changeset
   397
343
b6ff12d916fb checkin from browser
cg
parents: 264
diff changeset
   398
stackFrame
b6ff12d916fb checkin from browser
cg
parents: 264
diff changeset
   399
    "private interface to the debugger."
b6ff12d916fb checkin from browser
cg
parents: 264
diff changeset
   400
b6ff12d916fb checkin from browser
cg
parents: 264
diff changeset
   401
    ^ (1 to:self size) collect:[:i | self at:i]
b6ff12d916fb checkin from browser
cg
parents: 264
diff changeset
   402
b6ff12d916fb checkin from browser
cg
parents: 264
diff changeset
   403
    "Created: / 7.5.1998 / 01:26:19 / cg"
b6ff12d916fb checkin from browser
cg
parents: 264
diff changeset
   404
! !
b6ff12d916fb checkin from browser
cg
parents: 264
diff changeset
   405
129
f40775af59a5 checkin from browser
cg
parents: 125
diff changeset
   406
!JavaContext class methodsFor:'documentation'!
28
916f444c5cae intitial checkin
cg
parents:
diff changeset
   407
916f444c5cae intitial checkin
cg
parents:
diff changeset
   408
version
2304
73806b718f4e fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents: 2168
diff changeset
   409
    ^ '$Header: /cvs/stx/stx/libjava/JavaContext.st,v 1.38 2011-11-24 11:54:57 cg Exp $'
73806b718f4e fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents: 2168
diff changeset
   410
!
73806b718f4e fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents: 2168
diff changeset
   411
73806b718f4e fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents: 2168
diff changeset
   412
version_CVS
73806b718f4e fixed: #version_SVN ($ to §)
Claus Gittinger <cg@exept.de>
parents: 2168
diff changeset
   413
    ^ '$Header: /cvs/stx/stx/libjava/JavaContext.st,v 1.38 2011-11-24 11:54:57 cg Exp $'
2151
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
   414
!
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
   415
c0b6570c6f9b Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2150
diff changeset
   416
version_SVN
2168
6788c9e65fdb changed: #copyright
Claus Gittinger <cg@exept.de>
parents: 2151
diff changeset
   417
    ^ '§Id: JavaContext.st,v 1.36 2011/08/18 18:42:48 vrany Exp §'
2108
ca8c4e7db2e8 category change
Claus Gittinger <cg@exept.de>
parents: 749
diff changeset
   418
! !