JavaByteCodeProcessor.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Thu, 27 Sep 2018 23:09:30 +0100
changeset 3854 193b04caef42
parent 3605 da57f13e6a23
permissions -rw-r--r--
Specifiy both source ant target Java versions ...when compiling Java code. Since `stx:libjava` only supports Java 7, make sure all code is compiled targeting Java 7.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3605
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
     1
"{ Encoding: utf8 }"
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
     2
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     3
"
3324
a58245c0e83a Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3196
diff changeset
     4
 COPYRIGHT (c) 1996-2015 by Claus Gittinger
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
     5
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
     6
 New code and modifications done at SWING Research Group [1]:
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
     7
3324
a58245c0e83a Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3196
diff changeset
     8
 COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     9
                            SWING Research Group, Czech Technical University in Prague
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    10
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    11
 This software is furnished under a license and may be used
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    12
 only in accordance with the terms of that license and with the
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    13
 inclusion of the above copyright notice.   This software may not
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    14
 be provided or otherwise made available to, or used by, any
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    15
 other person.  No title to or ownership of the software is
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    16
 hereby transferred.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    17
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
    18
 [1] Code written at SWING Research Group contains a signature
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
    19
     of one of the above copright owners. For exact set of such code,
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
    20
     see the differences between this version and version stx:libjava
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
    21
     as of 1.9.2010
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    22
"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    23
"{ Package: 'stx:libjava' }"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    24
3383
858b2f40ce91 Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3324
diff changeset
    25
"{ NameSpace: Smalltalk }"
858b2f40ce91 Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3324
diff changeset
    26
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    27
Object subclass:#JavaByteCodeProcessor
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    28
	instanceVariableNames:'byteCode pc method constantPool context receiver sp retVal
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    29
		instrPointer op wide numArgs numVars leaveProcessor'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    30
	classVariableNames:'OpSwitchTable Verbose'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    31
	poolDictionaries:''
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    32
	category:'Languages-Java-Bytecode'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    33
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    34
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    35
!JavaByteCodeProcessor class methodsFor:'documentation'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    36
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    37
copyright
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    38
"
3324
a58245c0e83a Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3196
diff changeset
    39
 COPYRIGHT (c) 1996-2015 by Claus Gittinger
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
    40
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
    41
 New code and modifications done at SWING Research Group [1]:
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
    42
3324
a58245c0e83a Updated copyright notices.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3196
diff changeset
    43
 COPYRIGHT (c) 2010-2015 by Jan Vrany, Jan Kurs and Marcel Hlopko
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    44
                            SWING Research Group, Czech Technical University in Prague
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    45
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    46
 This software is furnished under a license and may be used
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    47
 only in accordance with the terms of that license and with the
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    48
 inclusion of the above copyright notice.   This software may not
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    49
 be provided or otherwise made available to, or used by, any
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    50
 other person.  No title to or ownership of the software is
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    51
 hereby transferred.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    52
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
    53
 [1] Code written at SWING Research Group contains a signature
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
    54
     of one of the above copright owners. For exact set of such code,
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
    55
     see the differences between this version and version stx:libjava
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
    56
     as of 1.9.2010
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    57
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    58
"
2678
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    59
!
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    60
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    61
documentation
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    62
"
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    63
    Basic class to process Java bytecode. Subclasses must implement
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    64
    all callback methods that handle individual instructions.
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    65
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    66
    Subclass `JavaByteCodeProcessorAdaptor` if you want to so somethinf
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    67
    special for some instructions and don't need to bother with rest
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    68
    of them.
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    69
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    70
    [author:]
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    71
        Jan Vrany <jan.vrany@fit.cvut.cz>
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    72
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    73
    [instance variables:]
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    74
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    75
    [class variables:]
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    76
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    77
    [see also:]
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    78
        JavaByteCodeProcessorAdaptor
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    79
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
    80
    [see also:]
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
    81
        JavaByteCodeProcessorAdaptor
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
    82
2678
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    83
c865275e48a7 Updated to match Mercurial revision a00302fe5083 with two tweaks:
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2396
diff changeset
    84
"
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    85
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    86
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    87
!JavaByteCodeProcessor class methodsFor:'initialization'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    88
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    89
initialize
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    90
    OpSwitchTable := Array new: 256.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    91
    OpSwitchTable at: 1 + 0 put: #nop.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    92
    OpSwitchTable at: 1 + 1 put: #'aconst_null'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    93
    OpSwitchTable at: 1 + 2 put: #'iconst_m1'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    94
    OpSwitchTable at: 1 + 3 put: #'iconst_0'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    95
    OpSwitchTable at: 1 + 4 put: #'iconst_1'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    96
    OpSwitchTable at: 1 + 5 put: #'iconst_2'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    97
    OpSwitchTable at: 1 + 6 put: #'iconst_3'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    98
    OpSwitchTable at: 1 + 7 put: #'iconst_4'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    99
    OpSwitchTable at: 1 + 8 put: #'iconst_5'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   100
    OpSwitchTable at: 1 + 9 put: #'lconst_0'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   101
    OpSwitchTable at: 1 + 10 put: #'lconst_1'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   102
    OpSwitchTable at: 1 + 11 put: #'fconst_0'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   103
    OpSwitchTable at: 1 + 12 put: #'fconst_1'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   104
    OpSwitchTable at: 1 + 13 put: #'fconst_2'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   105
    OpSwitchTable at: 1 + 14 put: #'dconst_0'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   106
    OpSwitchTable at: 1 + 15 put: #'dconst_1'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   107
    OpSwitchTable at: 1 + 16 put: #bipush.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   108
    OpSwitchTable at: 1 + 17 put: #sipush.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   109
    OpSwitchTable at: 1 + 18 put: #ldc1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   110
    OpSwitchTable at: 1 + 19 put: #ldc2.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   111
    OpSwitchTable at: 1 + 20 put: #ldc2w.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   112
    OpSwitchTable at: 1 + 21 put: #iload.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   113
    OpSwitchTable at: 1 + 22 put: #lload.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   114
    OpSwitchTable at: 1 + 23 put: #fload.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   115
    OpSwitchTable at: 1 + 24 put: #dload.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   116
    OpSwitchTable at: 1 + 25 put: #aload.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   117
    OpSwitchTable at: 1 + 26 put: #'iload_0'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   118
    OpSwitchTable at: 1 + 27 put: #'iload_1'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   119
    OpSwitchTable at: 1 + 28 put: #'iload_2'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   120
    OpSwitchTable at: 1 + 29 put: #'iload_3'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   121
    OpSwitchTable at: 1 + 30 put: #'lload_0'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   122
    OpSwitchTable at: 1 + 31 put: #'lload_1'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   123
    OpSwitchTable at: 1 + 32 put: #'lload_2'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   124
    OpSwitchTable at: 1 + 33 put: #'lload_3'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   125
    OpSwitchTable at: 1 + 34 put: #'fload_0'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   126
    OpSwitchTable at: 1 + 35 put: #'fload_1'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   127
    OpSwitchTable at: 1 + 36 put: #'fload_2'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   128
    OpSwitchTable at: 1 + 37 put: #'fload_3'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   129
    OpSwitchTable at: 1 + 38 put: #'dload_0'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   130
    OpSwitchTable at: 1 + 39 put: #'dload_1'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   131
    OpSwitchTable at: 1 + 40 put: #'dload_2'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   132
    OpSwitchTable at: 1 + 41 put: #'dload_3'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   133
    OpSwitchTable at: 1 + 42 put: #'aload_0'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   134
    OpSwitchTable at: 1 + 43 put: #'aload_1'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   135
    OpSwitchTable at: 1 + 44 put: #'aload_2'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   136
    OpSwitchTable at: 1 + 45 put: #'aload_3'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   137
    OpSwitchTable at: 1 + 46 put: #iaload.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   138
    OpSwitchTable at: 1 + 47 put: #laload.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   139
    OpSwitchTable at: 1 + 48 put: #faload.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   140
    OpSwitchTable at: 1 + 49 put: #daload.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   141
    OpSwitchTable at: 1 + 50 put: #aaload.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   142
    OpSwitchTable at: 1 + 51 put: #baload.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   143
    OpSwitchTable at: 1 + 52 put: #caload.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   144
    OpSwitchTable at: 1 + 53 put: #saload.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   145
    OpSwitchTable at: 1 + 54 put: #istore.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   146
    OpSwitchTable at: 1 + 55 put: #lstore.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   147
    OpSwitchTable at: 1 + 56 put: #fstore.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   148
    OpSwitchTable at: 1 + 57 put: #dstore.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   149
    OpSwitchTable at: 1 + 58 put: #astore.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   150
    OpSwitchTable at: 1 + 59 put: #'istore_0'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   151
    OpSwitchTable at: 1 + 60 put: #'istore_1'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   152
    OpSwitchTable at: 1 + 61 put: #'istore_2'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   153
    OpSwitchTable at: 1 + 62 put: #'istore_3'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   154
    OpSwitchTable at: 1 + 63 put: #'lstore_0'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   155
    OpSwitchTable at: 1 + 64 put: #'lstore_1'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   156
    OpSwitchTable at: 1 + 65 put: #'lstore_2'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   157
    OpSwitchTable at: 1 + 66 put: #'lstore_3'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   158
    OpSwitchTable at: 1 + 67 put: #'fstore_0'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   159
    OpSwitchTable at: 1 + 68 put: #'fstore_1'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   160
    OpSwitchTable at: 1 + 69 put: #'fstore_2'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   161
    OpSwitchTable at: 1 + 70 put: #'fstore_3'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   162
    OpSwitchTable at: 1 + 71 put: #'dstore_0'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   163
    OpSwitchTable at: 1 + 72 put: #'dstore_1'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   164
    OpSwitchTable at: 1 + 73 put: #'dstore_2'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   165
    OpSwitchTable at: 1 + 74 put: #'dstore_3'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   166
    OpSwitchTable at: 1 + 75 put: #'astore_0'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   167
    OpSwitchTable at: 1 + 76 put: #'astore_1'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   168
    OpSwitchTable at: 1 + 77 put: #'astore_2'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   169
    OpSwitchTable at: 1 + 78 put: #'astore_3'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   170
    OpSwitchTable at: 1 + 79 put: #iastore.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   171
    OpSwitchTable at: 1 + 80 put: #lastore.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   172
    OpSwitchTable at: 1 + 81 put: #fastore.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   173
    OpSwitchTable at: 1 + 82 put: #dastore.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   174
    OpSwitchTable at: 1 + 83 put: #aastore.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   175
    OpSwitchTable at: 1 + 84 put: #bastore.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   176
    OpSwitchTable at: 1 + 85 put: #castore.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   177
    OpSwitchTable at: 1 + 86 put: #sastore.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   178
    OpSwitchTable at: 1 + 87 put: #pop1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   179
    OpSwitchTable at: 1 + 88 put: #pop2.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   180
    OpSwitchTable at: 1 + 89 put: #dup.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   181
    OpSwitchTable at: 1 + 90 put: #'dup_x1'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   182
    OpSwitchTable at: 1 + 91 put: #'dup_x2'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   183
    OpSwitchTable at: 1 + 92 put: #dup2.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   184
    OpSwitchTable at: 1 + 93 put: #'dup2_x1'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   185
    OpSwitchTable at: 1 + 94 put: #'dup2_x2'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   186
    OpSwitchTable at: 1 + 95 put: #swap.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   187
    OpSwitchTable at: 1 + 96 put: #iadd.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   188
    OpSwitchTable at: 1 + 97 put: #ladd.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   189
    OpSwitchTable at: 1 + 98 put: #fadd.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   190
    OpSwitchTable at: 1 + 99 put: #dadd.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   191
    OpSwitchTable at: 1 + 100 put: #isub.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   192
    OpSwitchTable at: 1 + 101 put: #lsub.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   193
    OpSwitchTable at: 1 + 102 put: #fsub.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   194
    OpSwitchTable at: 1 + 103 put: #dsub.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   195
    OpSwitchTable at: 1 + 104 put: #imul.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   196
    OpSwitchTable at: 1 + 105 put: #lmul.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   197
    OpSwitchTable at: 1 + 106 put: #fmul.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   198
    OpSwitchTable at: 1 + 107 put: #dmul.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   199
    OpSwitchTable at: 1 + 108 put: #idiv.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   200
    OpSwitchTable at: 1 + 109 put: #ldiv.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   201
    OpSwitchTable at: 1 + 110 put: #fdiv.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   202
    OpSwitchTable at: 1 + 111 put: #ddiv.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   203
    OpSwitchTable at: 1 + 112 put: #irem.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   204
    OpSwitchTable at: 1 + 113 put: #lrem.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   205
    OpSwitchTable at: 1 + 114 put: #frem.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   206
    OpSwitchTable at: 1 + 115 put: #drem.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   207
    OpSwitchTable at: 1 + 116 put: #ineg.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   208
    OpSwitchTable at: 1 + 117 put: #lneg.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   209
    OpSwitchTable at: 1 + 118 put: #fneg.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   210
    OpSwitchTable at: 1 + 119 put: #dneg.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   211
    OpSwitchTable at: 1 + 120 put: #ishl.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   212
    OpSwitchTable at: 1 + 121 put: #lshl.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   213
    OpSwitchTable at: 1 + 122 put: #ishr.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   214
    OpSwitchTable at: 1 + 123 put: #lshr.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   215
    OpSwitchTable at: 1 + 124 put: #iushr.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   216
    OpSwitchTable at: 1 + 125 put: #lushr.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   217
    OpSwitchTable at: 1 + 126 put: #iand.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   218
    OpSwitchTable at: 1 + 127 put: #land.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   219
    OpSwitchTable at: 1 + 128 put: #ior.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   220
    OpSwitchTable at: 1 + 129 put: #lor.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   221
    OpSwitchTable at: 1 + 130 put: #ixor.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   222
    OpSwitchTable at: 1 + 131 put: #lxor.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   223
    OpSwitchTable at: 1 + 132 put: #iinc.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   224
    OpSwitchTable at: 1 + 133 put: #i2l.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   225
    OpSwitchTable at: 1 + 134 put: #i2f.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   226
    OpSwitchTable at: 1 + 135 put: #i2d.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   227
    OpSwitchTable at: 1 + 136 put: #l2i.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   228
    OpSwitchTable at: 1 + 137 put: #l2f.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   229
    OpSwitchTable at: 1 + 138 put: #l2d.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   230
    OpSwitchTable at: 1 + 139 put: #f2i.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   231
    OpSwitchTable at: 1 + 140 put: #f2l.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   232
    OpSwitchTable at: 1 + 141 put: #f2d.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   233
    OpSwitchTable at: 1 + 142 put: #d2i.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   234
    OpSwitchTable at: 1 + 143 put: #d2l.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   235
    OpSwitchTable at: 1 + 144 put: #d2f.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   236
    OpSwitchTable at: 1 + 145 put: #int2byte.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   237
    OpSwitchTable at: 1 + 146 put: #int2char.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   238
    OpSwitchTable at: 1 + 147 put: #int2short.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   239
    OpSwitchTable at: 1 + 148 put: #lcmp.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   240
    OpSwitchTable at: 1 + 149 put: #fcmpl.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   241
    OpSwitchTable at: 1 + 150 put: #fcmpg.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   242
    OpSwitchTable at: 1 + 151 put: #dcmpl.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   243
    OpSwitchTable at: 1 + 152 put: #dcmpg.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   244
    OpSwitchTable at: 1 + 153 put: #ifeq.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   245
    OpSwitchTable at: 1 + 154 put: #ifne.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   246
    OpSwitchTable at: 1 + 155 put: #iflt.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   247
    OpSwitchTable at: 1 + 156 put: #ifge.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   248
    OpSwitchTable at: 1 + 157 put: #ifgt.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   249
    OpSwitchTable at: 1 + 158 put: #ifle.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   250
    OpSwitchTable at: 1 + 159 put: #ificmpeq.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   251
    OpSwitchTable at: 1 + 160 put: #ificmpne.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   252
    OpSwitchTable at: 1 + 161 put: #ificmplt.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   253
    OpSwitchTable at: 1 + 162 put: #ificmpge.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   254
    OpSwitchTable at: 1 + 163 put: #ificmpgt.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   255
    OpSwitchTable at: 1 + 164 put: #ificmple.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   256
    OpSwitchTable at: 1 + 165 put: #ifacmpeq.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   257
    OpSwitchTable at: 1 + 166 put: #ifacmpne.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   258
    OpSwitchTable at: 1 + 167 put: #goto.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   259
    OpSwitchTable at: 1 + 168 put: #jsr.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   260
    OpSwitchTable at: 1 + 169 put: #ret.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   261
    OpSwitchTable at: 1 + 170 put: #tableswtch.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   262
    OpSwitchTable at: 1 + 171 put: #lookupswtch.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   263
    OpSwitchTable at: 1 + 172 put: #ireturn.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   264
    OpSwitchTable at: 1 + 173 put: #lreturn.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   265
    OpSwitchTable at: 1 + 174 put: #freturn.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   266
    OpSwitchTable at: 1 + 175 put: #dreturn.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   267
    OpSwitchTable at: 1 + 176 put: #areturn.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   268
    OpSwitchTable at: 1 + 177 put: #return.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   269
    OpSwitchTable at: 1 + 178 put: #getstatic.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   270
    OpSwitchTable at: 1 + 179 put: #putstatic.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   271
    OpSwitchTable at: 1 + 180 put: #getfield.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   272
    OpSwitchTable at: 1 + 181 put: #putfield.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   273
    OpSwitchTable at: 1 + 182 put: #invvirt.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   274
    OpSwitchTable at: 1 + 183 put: #invnonvirt.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   275
    OpSwitchTable at: 1 + 184 put: #invstatic.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   276
    OpSwitchTable at: 1 + 185 put: #invinterface.
3383
858b2f40ce91 Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3324
diff changeset
   277
    OpSwitchTable at: 1 + 186 put: #invdynamic.    
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   278
    OpSwitchTable at: 1 + 187 put: #new.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   279
    OpSwitchTable at: 1 + 188 put: #newarray.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   280
    OpSwitchTable at: 1 + 189 put: #anewarray.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   281
    OpSwitchTable at: 1 + 190 put: #arraylength.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   282
    OpSwitchTable at: 1 + 191 put: #athrow.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   283
    OpSwitchTable at: 1 + 192 put: #checkcast.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   284
    OpSwitchTable at: 1 + 193 put: #instanceof.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   285
    OpSwitchTable at: 1 + 194 put: #monenter.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   286
    OpSwitchTable at: 1 + 195 put: #monexit.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   287
    OpSwitchTable at: 1 + 196 put: #wide.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   288
    OpSwitchTable at: 1 + 197 put: #multianewarray.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   289
    OpSwitchTable at: 1 + 198 put: #ifnull.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   290
    OpSwitchTable at: 1 + 199 put: #ifnonnull.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   291
    OpSwitchTable at: 1 + 200 put: #'goto_w'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   292
    OpSwitchTable at: 1 + 201 put: #'jsr_w'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   293
    OpSwitchTable at: 1 + 202 put: #breakpoint.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   294
    OpSwitchTable at: 1 + 203 put: #'ret_w'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   295
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   296
    Verbose := false.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   297
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   298
     self initialize"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   299
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   300
    "Created: / 17-03-2011 / 14:56:13 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   301
    "Modified: / 17-03-2011 / 16:43:17 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
3383
858b2f40ce91 Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3324
diff changeset
   302
    "Modified: / 25-02-2015 / 19:35:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   303
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   304
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   305
!JavaByteCodeProcessor class methodsFor:'accessing'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   306
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   307
verbose: bool
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   308
Verbose := bool.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   309
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   310
    "Created: / 21-03-2011 / 18:32:37 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   311
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   312
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   313
!JavaByteCodeProcessor class methodsFor:'private-logging'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   314
3385
58d72cc6d5f6 Replaced old-style `'string' infoPrintCR` logging with new-style `Logger log:'string'` logging
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3383
diff changeset
   315
log: aString 
58d72cc6d5f6 Replaced old-style `'string' infoPrintCR` logging with new-style `Logger log:'string'` logging
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3383
diff changeset
   316
    Verbose ifTrue: [
58d72cc6d5f6 Replaced old-style `'string' infoPrintCR` logging with new-style `Logger log:'string'` logging
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3383
diff changeset
   317
        Logger log: aString severity: Logger severityDEBUG facility: #JVM
58d72cc6d5f6 Replaced old-style `'string' infoPrintCR` logging with new-style `Logger log:'string'` logging
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3383
diff changeset
   318
    ]
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   319
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   320
    "Created: / 17-03-2011 / 14:59:24 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   321
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   322
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   323
!JavaByteCodeProcessor methodsFor:'initialization'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   324
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   325
reset
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   326
    pc := method startPC.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   327
    byteCode := method byteCode.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   328
    constantPool := method javaClass constantPool.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   329
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   330
    "Modified: / 17-03-2011 / 14:53:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   331
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   332
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   333
!JavaByteCodeProcessor methodsFor:'instructions'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   334
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   335
aaload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   336
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   337
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   338
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   339
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   340
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   341
aastore
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   342
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   343
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   344
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   345
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   346
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   347
aconst_null
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   348
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   349
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   350
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   351
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   352
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   353
aload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   354
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   355
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   356
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   357
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   358
    "Created: / 17-03-2011 / 15:07:27 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   359
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   360
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   361
aload: arg 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   362
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   363
     Load reference from local variable 0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   364
     nothing -> objectRef"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   365
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   366
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   367
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   368
 "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   369
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   370
     The <n> must be an index into the local variable array of the
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
   371
     current frame (3.6). The local variable at <n> must contain a
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   372
     reference. The objectref in the local variable at index is pushed
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   373
     onto the operand stack.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   374
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   375
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   376
     An aload_<n> instruction cannot be used to load a value of type
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   377
     returnAddress from a local variable onto the operand stack. This
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   378
     asymmetry with the corresponding astore_<n> instruction is intentional.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   379
     Each of the aload_<n> instructions is the same as aload with an index
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   380
     of <n>, except that the operand <n> is implicit."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   381
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   382
    "Modified: / 17-03-2011 / 15:26:53 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   383
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   384
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   385
aload_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   386
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   387
     Load reference from local variable 0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   388
     nothing -> objectRef"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   389
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   390
    self aload: 0.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   391
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   392
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   393
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   394
     The <n> must be an index into the local variable array of the
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
   395
     current frame (3.6). The local variable at <n> must contain a
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   396
     reference. The objectref in the local variable at index is pushed
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   397
     onto the operand stack.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   398
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   399
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   400
     An aload_<n> instruction cannot be used to load a value of type
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   401
     returnAddress from a local variable onto the operand stack. This
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   402
     asymmetry with the corresponding astore_<n> instruction is intentional.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   403
     Each of the aload_<n> instructions is the same as aload with an index
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   404
     of <n>, except that the operand <n> is implicit."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   405
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   406
    "Created: / 10-03-2011 / 21:42:22 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   407
    "Modified: / 13-03-2011 / 16:56:04 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   408
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   409
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   410
aload_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   411
    self aload: 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   412
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   413
    "Created: / 10-03-2011 / 21:42:27 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   414
    "Modified: / 13-03-2011 / 16:56:20 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   415
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   416
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   417
aload_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   418
    self aload: 2.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   419
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   420
    "Created: / 10-03-2011 / 21:42:31 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   421
    "Modified: / 13-03-2011 / 16:56:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   422
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   423
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   424
aload_3
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   425
    self aload: 3.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   426
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   427
    "Created: / 10-03-2011 / 21:43:07 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   428
    "Modified: / 13-03-2011 / 16:56:24 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   429
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   430
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   431
anewarray
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   432
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   433
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   434
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   435
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   436
    "Created: / 17-03-2011 / 16:57:13 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   437
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   438
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   439
areturn
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   440
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   441
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   442
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   443
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   444
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   445
arraylength
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   446
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   447
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   448
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   449
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   450
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   451
astore
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   452
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   453
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   454
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   455
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   456
    "Created: / 17-03-2011 / 16:37:49 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   457
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   458
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   459
astore:arg
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   460
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   461
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   462
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   463
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   464
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   465
astore_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   466
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   467
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   468
    ^self astore: 0.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   469
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   470
    "Created: / 17-03-2011 / 16:39:06 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   471
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   472
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   473
astore_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   474
    ^ self astore: 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   475
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   476
    "Created: / 17-03-2011 / 16:39:10 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   477
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   478
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   479
astore_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   480
    ^ self astore: 2.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   481
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   482
    "Created: / 17-03-2011 / 16:39:13 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   483
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   484
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   485
astore_3
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   486
    ^ self astore: 3.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   487
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   488
    "Created: / 17-03-2011 / 16:39:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   489
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   490
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   491
athrow
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   492
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   493
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   494
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   495
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   496
    "Created: / 17-03-2011 / 16:57:25 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   497
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   498
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   499
baload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   500
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   501
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   502
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   503
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   504
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   505
bastore
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   506
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   507
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   508
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   509
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   510
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   511
bipush
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   512
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   513
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   514
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   515
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   516
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   517
breakpoint
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   518
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   519
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   520
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   521
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   522
    "Created: / 17-03-2011 / 16:59:04 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   523
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   524
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   525
caload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   526
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   527
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   528
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   529
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   530
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   531
castore
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   532
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   533
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   534
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   535
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   536
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   537
checkcast
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   538
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   539
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   540
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   541
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   542
    "Created: / 17-03-2011 / 16:57:39 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   543
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   544
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   545
d2f
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   546
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   547
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   548
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   549
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   550
    "Created: / 17-03-2011 / 16:50:50 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   551
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   552
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   553
d2i
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   554
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   555
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   556
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   557
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   558
    "Created: / 17-03-2011 / 16:50:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   559
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   560
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   561
d2l
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   562
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   563
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   564
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   565
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   566
    "Created: / 17-03-2011 / 16:50:46 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   567
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   568
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   569
dadd
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   570
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   571
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   572
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   573
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   574
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   575
daload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   576
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   577
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   578
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   579
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   580
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   581
dastore
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   582
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   583
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   584
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   585
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   586
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   587
dcmpg
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   588
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   589
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   590
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   591
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   592
    "Created: / 17-03-2011 / 16:52:17 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   593
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   594
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   595
dcmpl
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   596
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   597
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   598
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   599
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   600
    "Created: / 17-03-2011 / 16:52:11 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   601
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   602
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   603
dconst: arg 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   604
    "Push the double constant <d> (0.0 or 1.0) onto the operand stack.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   605
     stack: nothing -> const
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   606
     args: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   607
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   608
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   609
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   610
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   611
    "Modified: / 17-03-2011 / 15:27:29 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   612
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   613
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   614
dconst_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   615
"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   616
Push the double constant <d> (0.0 or 1.0) onto the operand stack.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   617
stack: nothing -> const
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   618
args: nothing
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   619
"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   620
    self dconst: 0.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   621
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   622
    "Created: / 14-03-2011 / 18:02:36 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   623
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   624
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   625
dconst_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   626
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   627
     Push the double constant <d> (0.0 or 1.0) onto the operand stack.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   628
     stack: nothing -> const
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   629
     args: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   630
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   631
    self dconst: 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   632
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   633
    "Created: / 14-03-2011 / 18:03:26 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   634
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   635
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   636
ddiv
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   637
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   638
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   639
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   640
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   641
    "Created: / 17-03-2011 / 16:46:25 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   642
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   643
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   644
dload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   645
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   646
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   647
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   648
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   649
    "Created: / 17-03-2011 / 15:07:14 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   650
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   651
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   652
dload: arg 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   653
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   654
     Load double from local variable
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   655
     stack: nothing -> value
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   656
     args: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   657
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   658
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   659
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   660
   "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   661
     Description
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
   662
     Both <n> and <n> + 1 must be indices into the local variable array of the current frame (3.6).
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   663
     The local variable at <n> must contain a double. The value of the local variable at <n> is pushed
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   664
     onto the operand stack.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   665
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   666
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   667
     Each of the dload_<n> instructions is the same as dload with an index of <n>, except that the
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   668
     operand <n> is implicit."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   669
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   670
    "Modified: / 17-03-2011 / 15:26:26 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   671
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   672
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   673
dload_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   674
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   675
     Load double from local variable
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   676
     stack: nothing -> value
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   677
     args: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   678
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   679
    self dload: 0.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   680
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   681
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   682
     Description
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
   683
     Both <n> and <n> + 1 must be indices into the local variable array of the current frame (3.6).
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   684
     The local variable at <n> must contain a double. The value of the local variable at <n> is pushed
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   685
     onto the operand stack.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   686
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   687
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   688
     Each of the dload_<n> instructions is the same as dload with an index of <n>, except that the
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   689
     operand <n> is implicit."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   690
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   691
    "Created: / 13-03-2011 / 17:55:29 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   692
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   693
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   694
dload_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   695
    self dload: 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   696
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   697
    "Created: / 13-03-2011 / 17:55:33 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   698
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   699
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   700
dload_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   701
    self dload: 2.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   702
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   703
    "Created: / 13-03-2011 / 17:55:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   704
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   705
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   706
dload_3
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   707
    self dload: 3.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   708
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   709
    "Created: / 13-03-2011 / 17:55:45 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   710
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   711
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   712
dmul
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   713
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   714
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   715
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   716
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   717
    "Created: / 17-03-2011 / 16:46:01 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   718
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   719
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   720
dneg
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   721
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   722
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   723
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   724
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   725
    "Created: / 17-03-2011 / 16:47:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   726
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   727
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   728
drem
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   729
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   730
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   731
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   732
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   733
    "Created: / 17-03-2011 / 16:47:05 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   734
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   735
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   736
dreturn
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   737
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   738
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   739
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   740
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   741
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   742
dstore
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   743
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   744
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   745
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   746
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   747
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   748
dstore: arg 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   749
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   750
     Store double into local variable
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   751
     stack: value -> nothing
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   752
     args: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   753
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   754
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   755
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   756
"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   757
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   758
     Both <n> and <n> + 1 must be indices into the local variable array of the
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
   759
     current frame (3.6). The value on the top of the operand stack must be of
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   760
     type double. It is popped from the operand stack and undergoes value set
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
   761
     conversion (3.8.3), resulting in value'. The local variables at <n> and
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   762
     <n> + 1 are set to value'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   763
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   764
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   765
     Each of the dstore_<n> instructions is the same as dstore with an index
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   766
     of <n>, except that the operand <n> is implicit."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   767
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   768
    "Modified: / 17-03-2011 / 15:28:07 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   769
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   770
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   771
dstore_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   772
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   773
     Store double into local variable
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   774
     stack: value -> nothing
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   775
     args: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   776
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   777
    self dstore: 0.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   778
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   779
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   780
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   781
     Both <n> and <n> + 1 must be indices into the local variable array of the
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
   782
     current frame (3.6). The value on the top of the operand stack must be of
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   783
     type double. It is popped from the operand stack and undergoes value set
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
   784
     conversion (3.8.3), resulting in value'. The local variables at <n> and
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   785
     <n> + 1 are set to value'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   786
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   787
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   788
     Each of the dstore_<n> instructions is the same as dstore with an index
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   789
     of <n>, except that the operand <n> is implicit."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   790
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   791
    "Created: / 14-03-2011 / 19:04:44 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   792
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   793
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   794
dstore_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   795
"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   796
Store double into local variable
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   797
stack: value -> nothing
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   798
args: nothing
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   799
" 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   800
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   801
self dstore: 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   802
"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   803
Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   804
Both <n> and <n> + 1 must be indices into the local variable array of the 
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
   805
current frame (3.6). The value on the top of the operand stack must be of 
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   806
type double. It is popped from the operand stack and undergoes value set 
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
   807
conversion (3.8.3), resulting in value'. The local variables at <n> and 
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   808
<n> + 1 are set to value'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   809
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   810
Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   811
Each of the dstore_<n> instructions is the same as dstore with an index 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   812
of <n>, except that the operand <n> is implicit.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   813
"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   814
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   815
    "Created: / 14-03-2011 / 19:04:39 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   816
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   817
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   818
dstore_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   819
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   820
     Store double into local variable
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   821
     stack: value -> nothing
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   822
     args: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   823
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   824
    self dstore: 2.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   825
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   826
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   827
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   828
     Both <n> and <n> + 1 must be indices into the local variable array of the
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
   829
     current frame (3.6). The value on the top of the operand stack must be of
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   830
     type double. It is popped from the operand stack and undergoes value set
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
   831
     conversion (3.8.3), resulting in value'. The local variables at <n> and
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   832
     <n> + 1 are set to value'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   833
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   834
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   835
     Each of the dstore_<n> instructions is the same as dstore with an index
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   836
     of <n>, except that the operand <n> is implicit."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   837
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   838
    "Created: / 14-03-2011 / 19:04:49 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   839
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   840
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   841
dstore_3
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   842
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   843
     Store double into local variable
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   844
     stack: value -> nothing
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   845
     args: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   846
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   847
    self dstore: 3.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   848
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   849
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   850
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   851
     Both <n> and <n> + 1 must be indices into the local variable array of the
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
   852
     current frame (3.6). The value on the top of the operand stack must be of
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   853
     type double. It is popped from the operand stack and undergoes value set
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
   854
     conversion (3.8.3), resulting in value'. The local variables at <n> and
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   855
     <n> + 1 are set to value'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   856
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   857
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   858
     Each of the dstore_<n> instructions is the same as dstore with an index
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   859
     of <n>, except that the operand <n> is implicit."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   860
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   861
    "Created: / 14-03-2011 / 19:04:54 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   862
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   863
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   864
dsub
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   865
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   866
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   867
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   868
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   869
    "Created: / 17-03-2011 / 16:45:33 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   870
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   871
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   872
dup
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   873
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   874
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   875
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   876
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   877
    "Created: / 17-03-2011 / 16:44:08 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   878
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   879
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   880
dup2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   881
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   882
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   883
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   884
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   885
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   886
dup2_x1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   887
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   888
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   889
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   890
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   891
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   892
dup2_x2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   893
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   894
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   895
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   896
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   897
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   898
dup_x1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   899
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   900
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   901
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   902
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   903
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   904
dup_x2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   905
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   906
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   907
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   908
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   909
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   910
f2d
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   911
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   912
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   913
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   914
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   915
    "Created: / 17-03-2011 / 16:50:35 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   916
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   917
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   918
f2i
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   919
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   920
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   921
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   922
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   923
    "Created: / 17-03-2011 / 16:50:26 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   924
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   925
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   926
f2l
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   927
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   928
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   929
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   930
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   931
    "Created: / 17-03-2011 / 16:50:31 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   932
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   933
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   934
fadd
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   935
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   936
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   937
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   938
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   939
    "Created: / 17-03-2011 / 16:44:46 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   940
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   941
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   942
faload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   943
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   944
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   945
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   946
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   947
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   948
fastore
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   949
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   950
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   951
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   952
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   953
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   954
fcmpg
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   955
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   956
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   957
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   958
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   959
    "Created: / 17-03-2011 / 16:52:00 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   960
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   961
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   962
fcmpl
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   963
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   964
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   965
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   966
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   967
    "Created: / 17-03-2011 / 16:51:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   968
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   969
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   970
fconst: arg 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   971
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   972
     Push float constant
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   973
     stack: nothing -> const
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   974
     arg: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   975
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   976
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   977
    ^ self subclassResponsibility.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   978
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   979
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   980
         Push the float constant <f> (0.0, 1.0, or 2.0) onto the operand stack."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   981
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   982
    "Modified: / 17-03-2011 / 15:28:47 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   983
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   984
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   985
fconst_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   986
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   987
     Push float constant
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   988
     stack: nothing -> const
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   989
     arg: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   990
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   991
    self fconst: 0.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   992
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   993
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   994
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   995
     Push the float constant <f> (0.0, 1.0, or 2.0) onto the operand stack."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   996
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   997
    "Created: / 14-03-2011 / 17:56:55 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   998
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   999
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1000
fconst_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1001
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1002
     Push float constant
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1003
     stack: nothing -> const
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1004
     arg: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1005
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1006
    self fconst: 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1007
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1008
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1009
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1010
     Push the float constant <f> (0.0, 1.0, or 2.0) onto the operand stack."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1011
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1012
    "Created: / 14-03-2011 / 17:57:50 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1013
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1014
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1015
fconst_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1016
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1017
     Push float constant
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1018
     stack: nothing -> const
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1019
     arg: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1020
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1021
    self fconst: 2.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1022
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1023
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1024
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1025
     Push the float constant <f> (0.0, 1.0, or 2.0) onto the operand stack."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1026
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1027
    "Created: / 14-03-2011 / 17:57:56 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1028
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1029
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1030
fdiv
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1031
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1032
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1033
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1034
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1035
    "Created: / 17-03-2011 / 16:46:20 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1036
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1037
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1038
fload 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1039
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1040
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1041
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1042
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1043
    "Created: / 17-03-2011 / 15:07:02 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1044
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1045
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1046
fload:arg
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1047
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1048
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1049
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1050
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1051
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1052
fload_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1053
    ^ self fload: 0.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1054
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1055
    "Created: / 17-03-2011 / 16:34:59 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1056
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1057
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1058
fload_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1059
    ^ self fload: 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1060
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1061
    "Created: / 17-03-2011 / 16:35:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1062
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1063
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1064
fload_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1065
    ^ self fload: 2.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1066
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1067
    "Created: / 17-03-2011 / 16:35:06 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1068
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1069
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1070
fload_3
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1071
    ^ self fload: 3.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1072
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1073
    "Created: / 17-03-2011 / 16:35:11 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1074
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1075
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1076
fmul
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1077
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1078
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1079
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1080
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1081
    "Created: / 17-03-2011 / 16:45:57 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1082
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1083
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1084
fneg
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1085
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1086
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1087
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1088
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1089
    "Created: / 17-03-2011 / 16:47:40 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1090
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1091
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1092
frem
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1093
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1094
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1095
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1096
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1097
    "Created: / 17-03-2011 / 16:46:47 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1098
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1099
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1100
freturn
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1101
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1102
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1103
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1104
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1105
    "Created: / 17-03-2011 / 16:55:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1106
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1107
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1108
fstore
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1109
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1110
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1111
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1112
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1113
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1114
fstore: arg 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1115
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1116
     Store float into local variable
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1117
     stack: value -> nothing
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1118
         args: index"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1119
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1120
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1121
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1122
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1123
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1124
     The index is an unsigned byte that must be an index into the local
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
  1125
     variable array of the current frame (3.6). The value on the top of
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1126
     the operand stack must be of type float. It is popped from the operand
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
  1127
     stack and undergoes value set conversion (3.8.3), resulting in value'.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1128
     The value of the local variable at index is set to value'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1129
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1130
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1131
     The fstore opcode can be used in conjunction with the wide instruction
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1132
         to access a local variable using a two-byte unsigned index."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1133
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1134
    "Modified: / 17-03-2011 / 15:29:22 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1135
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1136
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1137
fstore_0 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1138
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1139
     Store float into local variable
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1140
     stack: value -> nothing
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1141
     args: index"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1142
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1143
    self fstore: 0.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1144
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1145
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1146
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1147
     The index is an unsigned byte that must be an index into the local
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
  1148
     variable array of the current frame (3.6). The value on the top of
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1149
     the operand stack must be of type float. It is popped from the operand
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
  1150
     stack and undergoes value set conversion (3.8.3), resulting in value'.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1151
     The value of the local variable at index is set to value'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1152
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1153
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1154
     The fstore opcode can be used in conjunction with the wide instruction
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1155
     to access a local variable using a two-byte unsigned index."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1156
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1157
    "Created: / 14-03-2011 / 17:59:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1158
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1159
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1160
fstore_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1161
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1162
     Store float into local variable
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1163
     stack: value -> nothing
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1164
     args: index"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1165
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1166
    self fstore: 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1167
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1168
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1169
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1170
     The index is an unsigned byte that must be an index into the local
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
  1171
     variable array of the current frame (3.6). The value on the top of
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1172
     the operand stack must be of type float. It is popped from the operand
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
  1173
     stack and undergoes value set conversion (3.8.3), resulting in value'.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1174
     The value of the local variable at index is set to value'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1175
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1176
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1177
     The fstore opcode can be used in conjunction with the wide instruction
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1178
     to access a local variable using a two-byte unsigned index."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1179
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1180
    "Created: / 14-03-2011 / 17:59:49 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1181
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1182
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1183
fstore_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1184
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1185
     Store float into local variable
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1186
     stack: value -> nothing
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1187
     args: index"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1188
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1189
    self fstore: 2.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1190
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1191
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1192
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1193
     The index is an unsigned byte that must be an index into the local
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
  1194
     variable array of the current frame (3.6). The value on the top of
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1195
     the operand stack must be of type float. It is popped from the operand
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
  1196
     stack and undergoes value set conversion (3.8.3), resulting in value'.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1197
     The value of the local variable at index is set to value'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1198
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1199
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1200
     The fstore opcode can be used in conjunction with the wide instruction
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1201
     to access a local variable using a two-byte unsigned index."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1202
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1203
    "Created: / 14-03-2011 / 18:00:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1204
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1205
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1206
fstore_3
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1207
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1208
     Store float into local variable
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1209
     stack: value -> nothing
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1210
     args: index"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1211
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1212
    self fstore: 3.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1213
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1214
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1215
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1216
     The index is an unsigned byte that must be an index into the local
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
  1217
     variable array of the current frame (3.6). The value on the top of
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1218
     the operand stack must be of type float. It is popped from the operand
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
  1219
     stack and undergoes value set conversion (3.8.3), resulting in value'.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1220
     The value of the local variable at index is set to value'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1221
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1222
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1223
     The fstore opcode can be used in conjunction with the wide instruction
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1224
     to access a local variable using a two-byte unsigned index."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1225
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1226
    "Created: / 14-03-2011 / 18:00:08 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1227
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1228
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1229
fsub
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1230
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1231
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1232
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1233
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1234
    "Created: / 17-03-2011 / 16:45:29 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1235
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1236
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1237
getfield
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1238
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1239
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1240
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1241
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1242
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1243
getstatic
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1244
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1245
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1246
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1247
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1248
    "Created: / 17-03-2011 / 16:55:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1249
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1250
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1251
goto
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1252
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1253
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1254
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1255
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1256
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1257
goto_w
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1258
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1259
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1260
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1261
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1262
    "Created: / 17-03-2011 / 16:58:54 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1263
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1264
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1265
i2d
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1266
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1267
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1268
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1269
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1270
    "Created: / 17-03-2011 / 16:50:02 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1271
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1272
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1273
i2f
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1274
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1275
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1276
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1277
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1278
    "Created: / 17-03-2011 / 16:49:57 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1279
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1280
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1281
i2l
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1282
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1283
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1284
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1285
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1286
    "Created: / 17-03-2011 / 16:49:52 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1287
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1288
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1289
i_dup
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1290
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1291
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1292
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1293
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1294
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1295
iadd
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1296
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1297
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1298
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1299
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1300
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1301
iaload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1302
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1303
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1304
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1305
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1306
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1307
iand
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1308
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1309
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1310
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1311
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1312
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1313
iastore
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1314
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1315
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1316
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1317
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1318
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1319
iconst: arg 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1320
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1321
     Push int constant
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1322
     stack: nothing -> const
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1323
     arg: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1324
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1325
    self subclassResponsibility.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1326
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1327
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1328
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1329
     Push the int constant <i> (-1, 0, 1, 2, 3, 4 or 5) onto the operand stack.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1330
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1331
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1332
     Each of this family of instructions is equivalent to bipush <i> for the
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1333
     respective value of <i>, except that the operand <i> is implicit."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1334
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1335
    "Created: / 17-03-2011 / 15:29:48 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1336
    "Modified: / 20-03-2011 / 20:41:04 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1337
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1338
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1339
iconst_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1340
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1341
     Push int constant
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1342
     stack: nothing -> const
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1343
     arg: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1344
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1345
    self iconst: 0.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1346
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1347
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1348
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1349
     Push the int constant <i> (-1, 0, 1, 2, 3, 4 or 5) onto the operand stack.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1350
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1351
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1352
     Each of this family of instructions is equivalent to bipush <i> for the
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1353
     respective value of <i>, except that the operand <i> is implicit."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1354
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1355
    "Modified: / 17-03-2011 / 15:30:00 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1356
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1357
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1358
iconst_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1359
    self iconst:1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1360
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1361
    "Modified: / 17-03-2011 / 15:30:07 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1362
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1363
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1364
iconst_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1365
    self iconst: 2.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1366
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1367
    "Modified: / 17-03-2011 / 15:30:11 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1368
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1369
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1370
iconst_3
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1371
    self iconst: 3.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1372
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1373
    "Modified: / 17-03-2011 / 15:30:15 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1374
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1375
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1376
iconst_4
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1377
    self iconst: 4.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1378
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1379
    "Modified: / 17-03-2011 / 15:30:19 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1380
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1381
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1382
iconst_5
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1383
   self iconst: 5.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1384
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1385
    "Modified: / 17-03-2011 / 15:30:22 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1386
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1387
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1388
iconst_m1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1389
   self iconst: -1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1390
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1391
    "Modified: / 17-03-2011 / 15:30:27 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1392
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1393
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1394
idiv
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1395
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1396
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1397
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1398
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1399
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1400
ifacmpeq
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1401
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1402
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1403
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1404
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1405
    "Created: / 17-03-2011 / 16:53:47 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1406
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1407
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1408
ifacmpne
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1409
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1410
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1411
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1412
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1413
    "Created: / 17-03-2011 / 16:53:54 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1414
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1415
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1416
ifeq
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1417
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1418
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1419
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1420
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1421
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1422
ifge
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1423
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1424
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1425
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1426
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1427
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1428
ifgt
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1429
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1430
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1431
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1432
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1433
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1434
ificmpeq
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1435
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1436
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1437
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1438
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1439
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1440
ificmpge
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1441
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1442
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1443
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1444
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1445
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1446
ificmpgt
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1447
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1448
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1449
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1450
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1451
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1452
ificmple
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1453
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1454
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1455
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1456
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1457
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1458
ificmplt
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1459
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1460
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1461
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1462
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1463
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1464
ificmpne
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1465
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1466
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1467
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1468
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1469
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1470
ifle
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1471
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1472
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1473
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1474
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1475
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1476
iflt
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1477
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1478
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1479
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1480
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1481
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1482
ifne
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1483
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1484
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1485
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1486
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1487
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1488
ifnonnull
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1489
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1490
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1491
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1492
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1493
    "Created: / 17-03-2011 / 16:58:39 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1494
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1495
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1496
ifnull
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1497
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1498
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1499
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1500
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1501
    "Created: / 17-03-2011 / 16:58:32 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1502
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1503
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1504
iinc
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1505
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1506
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1507
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1508
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1509
3586
27ad5c699e3f More work on Smalltalk bytecode interpreter.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3536
diff changeset
  1510
iload     
27ad5c699e3f More work on Smalltalk bytecode interpreter.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3536
diff changeset
  1511
    self iload: self fetchIndex
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1512
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1513
    "Created: / 17-03-2011 / 15:06:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
3586
27ad5c699e3f More work on Smalltalk bytecode interpreter.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3536
diff changeset
  1514
    "Modified: / 16-03-2016 / 00:22:17 / Jan Vrany <jan.vrany@fit.cvut.cz>"
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1515
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1516
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1517
iload: arg 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1518
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1519
     loads an int value from local variable 0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1520
     stack: nothing -> value
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1521
         args: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1522
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1523
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1524
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1525
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1526
     Description
3605
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1527
     The <n> must be an index into the local variable array of the current frame (§3.6).
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1528
     The local variable at <n> must contain an int. The value of the local variable
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1529
     at <n> is pushed onto the operand stack.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1530
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1531
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1532
     Each of the iload_<n> instructions is the same as iload with an index of <n>,
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1533
         except that the operand <n> is implicit."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1534
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1535
    "Modified: / 17-03-2011 / 15:30:58 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1536
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1537
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1538
iload_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1539
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1540
     loads an int value from local variable 0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1541
     stack: nothing -> value
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1542
     args: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1543
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1544
    self iload: 0.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1545
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1546
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1547
     Description
3605
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1548
     The <n> must be an index into the local variable array of the current frame (§3.6).
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1549
     The local variable at <n> must contain an int. The value of the local variable
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1550
     at <n> is pushed onto the operand stack.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1551
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1552
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1553
     Each of the iload_<n> instructions is the same as iload with an index of <n>,
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1554
     except that the operand <n> is implicit."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1555
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1556
    "Created: / 06-03-2011 / 21:22:17 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1557
    "Modified: / 13-03-2011 / 20:58:31 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1558
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1559
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1560
iload_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1561
    "check iload_0"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1562
    self iload: 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1563
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1564
    "Created: / 06-03-2011 / 21:22:30 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1565
    "Modified: / 13-03-2011 / 16:36:59 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1566
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1567
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1568
iload_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1569
    "check iload_0"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1570
    self iload:2.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1571
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1572
    "Created: / 06-03-2011 / 21:24:02 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1573
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1574
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1575
iload_3
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1576
    "check iload_0"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1577
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1578
    self iload: 3.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1579
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1580
    "Created: / 14-03-2011 / 19:05:26 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1581
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1582
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1583
imul
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1584
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1585
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1586
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1587
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1588
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1589
ineg
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1590
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1591
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1592
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1593
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1594
    "Created: / 17-03-2011 / 16:47:24 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1595
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1596
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1597
instanceof
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1598
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1599
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1600
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1601
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1602
    "Created: / 17-03-2011 / 16:57:57 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1603
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1604
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1605
int2byte
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1606
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1607
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1608
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1609
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1610
    "Created: / 17-03-2011 / 16:51:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1611
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1612
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1613
int2char
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1614
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1615
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1616
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1617
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1618
    "Created: / 17-03-2011 / 16:51:08 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1619
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1620
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1621
int2short
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1622
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1623
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1624
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1625
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1626
    "Created: / 17-03-2011 / 16:51:13 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1627
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1628
3383
858b2f40ce91 Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3324
diff changeset
  1629
invdynamic
858b2f40ce91 Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3324
diff changeset
  1630
    "raise an error: must be redefined in concrete subclass(es)"
858b2f40ce91 Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3324
diff changeset
  1631
858b2f40ce91 Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3324
diff changeset
  1632
    ^ self subclassResponsibility
858b2f40ce91 Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3324
diff changeset
  1633
858b2f40ce91 Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3324
diff changeset
  1634
    "Created: / 25-02-2015 / 19:35:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
858b2f40ce91 Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3324
diff changeset
  1635
!
858b2f40ce91 Added support for InvokeDynamic to JavaByteCodeProcessor.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3324
diff changeset
  1636
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1637
invinterface
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1638
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1639
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1640
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1641
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1642
    "Created: / 17-03-2011 / 16:56:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1643
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1644
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1645
invnonvirt
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1646
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1647
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1648
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1649
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1650
    "Created: / 17-03-2011 / 16:56:26 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1651
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1652
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1653
invstatic
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1654
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1655
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1656
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1657
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1658
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1659
invvirt
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1660
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1661
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1662
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1663
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1664
    "Created: / 17-03-2011 / 16:56:21 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1665
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1666
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1667
ior
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1668
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1669
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1670
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1671
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1672
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1673
irem
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1674
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1675
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1676
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1677
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1678
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1679
ireturn
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1680
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1681
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1682
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1683
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1684
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1685
ishl
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1686
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1687
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1688
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1689
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1690
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1691
ishr
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1692
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1693
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1694
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1695
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1696
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1697
istore     
3586
27ad5c699e3f More work on Smalltalk bytecode interpreter.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3536
diff changeset
  1698
    self istore: self fetchIndex
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1699
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1700
    "Created: / 17-03-2011 / 16:36:55 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
3586
27ad5c699e3f More work on Smalltalk bytecode interpreter.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3536
diff changeset
  1701
    "Modified: / 16-03-2016 / 00:21:12 / Jan Vrany <jan.vrany@fit.cvut.cz>"
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1702
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1703
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1704
istore: arg 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1705
    "store int value into variable 0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1706
     stack: value -> nothing
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1707
         args: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1708
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1709
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1710
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1711
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1712
     Description
3605
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1713
     The <n> must be an index into the local variable array of the current frame (§3.6).
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1714
     The value on the top of the operand stack must be of type int. It is popped from
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1715
     the operand stack, and the value of the local variable at <n> is set to value.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1716
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1717
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1718
     Each of the istore_<n> instructions is the same as istore with an index of <n>,
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1719
         except that the operand <n> is implicit."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1720
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1721
    "Modified: / 17-03-2011 / 15:31:20 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1722
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1723
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1724
istore_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1725
    "store int value into variable 0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1726
     stack: value -> nothing
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1727
     args: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1728
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1729
    self istore: 0.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1730
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1731
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1732
     Description
3605
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1733
     The <n> must be an index into the local variable array of the current frame (§3.6).
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1734
     The value on the top of the operand stack must be of type int. It is popped from
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1735
     the operand stack, and the value of the local variable at <n> is set to value.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1736
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1737
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1738
     Each of the istore_<n> instructions is the same as istore with an index of <n>,
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1739
     except that the operand <n> is implicit."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1740
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1741
    "Created: / 06-03-2011 / 21:01:27 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1742
    "Modified: / 17-03-2011 / 15:31:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1743
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1744
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1745
istore_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1746
    "check istore_0"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1747
    self istore: 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1748
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1749
    "Created: / 06-03-2011 / 21:18:15 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1750
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1751
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1752
istore_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1753
    "check istore_0"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1754
    self istore: 2.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1755
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1756
    "Created: / 06-03-2011 / 21:23:54 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1757
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1758
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1759
istore_3
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1760
    "check istore_0"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1761
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1762
    self istore: 3.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1763
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1764
    "Created: / 14-03-2011 / 19:05:12 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1765
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1766
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1767
isub
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1768
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1769
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1770
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1771
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1772
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1773
iushr
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1774
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1775
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1776
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1777
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1778
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1779
ixor
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1780
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1781
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1782
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1783
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1784
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1785
jsr
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1786
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1787
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1788
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1789
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1790
    "Created: / 17-03-2011 / 16:54:10 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1791
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1792
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1793
jsr_w
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1794
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1795
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1796
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1797
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1798
    "Created: / 17-03-2011 / 16:58:58 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1799
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1800
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1801
l2d
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1802
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1803
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1804
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1805
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1806
    "Created: / 17-03-2011 / 16:50:17 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1807
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1808
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1809
l2f
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1810
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1811
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1812
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1813
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1814
    "Created: / 17-03-2011 / 16:50:14 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1815
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1816
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1817
l2i
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1818
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1819
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1820
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1821
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1822
    "Created: / 17-03-2011 / 16:50:09 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1823
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1824
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1825
ladd
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1826
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1827
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1828
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1829
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1830
    "Created: / 17-03-2011 / 16:44:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1831
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1832
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1833
laload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1834
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1835
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1836
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1837
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1838
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1839
land
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1840
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1841
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1842
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1843
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1844
    "Created: / 17-03-2011 / 16:48:57 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1845
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1846
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1847
lastore
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1848
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1849
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1850
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1851
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1852
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1853
lcmp
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1854
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1855
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1856
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1857
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1858
    "Created: / 17-03-2011 / 16:51:30 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1859
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1860
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1861
lconst: arg 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1862
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1863
     Push long constant
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1864
     stack: nothing -> const
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1865
     arg: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1866
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1867
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1868
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1869
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1870
     Push the long constant <l> (0 or 1) onto the operand stack."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1871
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1872
    "Modified: / 17-03-2011 / 16:30:28 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1873
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1874
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1875
lconst_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1876
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1877
     Push long constant
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1878
     stack: nothing -> const
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1879
     arg: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1880
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1881
    self lconst: 0.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1882
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1883
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1884
     Push the long constant <l> (0 or 1) onto the operand stack."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1885
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1886
    "Created: / 14-03-2011 / 17:53:32 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1887
    "Modified: / 17-03-2011 / 16:28:58 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1888
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1889
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1890
lconst_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1891
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1892
     Push long constant
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1893
     stack: nothing -> const
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1894
     arg: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1895
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1896
    self lconst: 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1897
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1898
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1899
     Push the long constant <l> (0 or 1) onto the operand stack."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1900
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1901
    "Created: / 14-03-2011 / 17:53:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1902
    "Modified: / 17-03-2011 / 16:29:04 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1903
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1904
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1905
ldc1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1906
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1907
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1908
    ^ self subclassResponsibility
3605
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1909
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1910
    "
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1911
    Operation
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1912
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1913
       Push item from run-time constant pool
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1914
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1915
    Format
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1916
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1917
       ldc
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1918
       index
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1919
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1920
    Forms
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1921
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1922
       ldc = 18 (0x12)
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1923
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1924
    Operand Stack
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1925
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1926
       ... →
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1927
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1928
       ..., value
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1929
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1930
    Description
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1931
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1932
       The index is an unsigned byte that must be a valid index into
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1933
       the run-time constant pool of the current class ([384]§2.6).
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1934
       The run-time constant pool entry at index either must be a
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1935
       run-time constant of type int or float, or a reference to a
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1936
       string literal, or a symbolic reference to a class, method
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1937
       type, or method handle ([385]§5.1).
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1938
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1939
       If the run-time constant pool entry is a run-time constant of
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1940
       type int or float, the numeric value of that run-time constant
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1941
       is pushed onto the operand stack as an int or float,
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1942
       respectively.
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1943
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1944
       Otherwise, if the run-time constant pool entry is a reference
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1945
       to an instance of class String representing a string literal
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1946
       ([386]§5.1), then a reference to that instance, value, is
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1947
       pushed onto the operand stack.
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1948
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1949
       Otherwise, if the run-time constant pool entry is a symbolic
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1950
       reference to a class ([387]§5.1), then the named class is
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1951
       resolved ([388]§5.4.3.1) and a reference to the Class object
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1952
       representing that class, value, is pushed onto the operand
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1953
       stack.
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1954
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1955
       Otherwise, the run-time constant pool entry must be a symbolic
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1956
       reference to a method type or a method handle ([389]§5.1). The
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1957
       method type or method handle is resolved ([390]§5.4.3.5) and a
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1958
       reference to the resulting instance of
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1959
       java.lang.invoke.MethodType or java.lang.invoke.MethodHandle,
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1960
       value, is pushed onto the operand stack.
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1961
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1962
    Linking Exceptions
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1963
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1964
       During resolution of a symbolic reference to a class, any of
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1965
       the exceptions pertaining to class resolution ([391]§5.4.3.1)
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1966
       can be thrown.
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1967
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1968
       During resolution of a symbolic reference to a method type or
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1969
       method handle, any of the exception pertaining to method type
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1970
       or method handle resolution ([392]§5.4.3.5) can be thrown.
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1971
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1972
    Notes
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1973
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1974
       The ldc instruction can only be used to push a value of type
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1975
       float taken from the float value set ([393]§2.3.2) because a
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1976
       constant of type float in the constant pool ([394]§4.4.4) must
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1977
       be taken from the float value set.
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1978
    "
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1979
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1980
    "Modified (comment): / 29-07-2016 / 09:11:23 / Jan Vrany <jan.vrany@fit.cvut.cz>"
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1981
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1982
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1983
ldc2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1984
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1985
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  1986
    ^ self subclassResponsibility
3605
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1987
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1988
    "
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1989
    ldc_w
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1990
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1991
    Operation
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1992
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1993
       Push item from run-time constant pool (wide index)
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1994
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1995
    Format
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1996
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1997
       ldc_w
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1998
       indexbyte1
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  1999
       indexbyte2
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2000
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2001
    Forms
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2002
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2003
       ldc_w = 19 (0x13)
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2004
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2005
    Operand Stack
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2006
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2007
       ... →
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2008
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2009
       ..., value
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2010
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2011
    Description
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2012
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2013
       The unsigned indexbyte1 and indexbyte2 are assembled into an
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2014
       unsigned 16-bit index into the run-time constant pool of the
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2015
       current class ([395]§2.6), where the value of the index is
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2016
       calculated as (indexbyte1 << 8) | indexbyte2. The index must be
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2017
       a valid index into the run-time constant pool of the current
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2018
       class. The run-time constant pool entry at the index either
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2019
       must be a run-time constant of type int or float, or a
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2020
       reference to a string literal, or a symbolic reference to a
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2021
       class, method type, or method handle ([396]§5.1).
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2022
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2023
       If the run-time constant pool entry is a run-time constant of
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2024
       type int or float, the numeric value of that run-time constant
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2025
       is pushed onto the operand stack as an int or float,
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2026
       respectively.
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2027
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2028
       Otherwise, if the run-time constant pool entry is a reference
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2029
       to an instance of class String representing a string literal
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2030
       ([397]§5.1), then a reference to that instance, value, is
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2031
       pushed onto the operand stack.
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2032
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2033
       Otherwise, if the run-time constant pool entry is a symbolic
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2034
       reference to a class ([398]§4.4.1). The named class is resolved
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2035
       ([399]§5.4.3.1) and a reference to the Class object
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2036
       representing that class, value, is pushed onto the operand
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2037
       stack.
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2038
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2039
       Otherwise, the run-time constant pool entry must be a symbolic
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2040
       reference to a method type or a method handle ([400]§5.1). The
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2041
       method type or method handle is resolved ([401]§5.4.3.5) and a
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2042
       reference to the resulting instance of
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2043
       java.lang.invoke.MethodType or java.lang.invoke.MethodHandle,
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2044
       value, is pushed onto the operand stack.
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2045
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2046
    Linking Exceptions
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2047
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2048
       During resolution of the symbolic reference to a class, any of
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2049
       the exceptions pertaining to class resolution ([402]§5.4.3.1)
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2050
       can be thrown.
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2051
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2052
       During resolution of a symbolic reference to a method type or
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2053
       method handle, any of the exception pertaining to method type
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2054
       or method handle resolution ([403]§5.4.3.5) can be thrown.
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2055
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2056
    Notes
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2057
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2058
       The ldc_w instruction is identical to the ldc instruction
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2059
       ([404]§ldc) except for its wider run-time constant pool index.
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2060
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2061
       The ldc_w instruction can only be used to push a value of type
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2062
       float taken from the float value set ([405]§2.3.2) because a
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2063
       constant of type float in the constant pool ([406]§4.4.4) must
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2064
       be taken from the float value set.
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2065
    "
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2066
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2067
    "Modified (comment): / 29-07-2016 / 09:12:36 / Jan Vrany <jan.vrany@fit.cvut.cz>"
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2068
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2069
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2070
ldc2w
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2071
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2072
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2073
    ^ self subclassResponsibility
3605
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2074
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2075
    "
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2076
    ldc2_w
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2077
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2078
    Operation
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2079
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2080
       Push long or double from run-time constant pool (wide index)
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2081
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2082
    Format
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2083
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2084
       ldc2_w
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2085
       indexbyte1
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2086
       indexbyte2
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2087
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2088
    Forms
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2089
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2090
       ldc2_w = 20 (0x14)
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2091
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2092
    Operand Stack
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2093
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2094
       ... →
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2095
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2096
       ..., value
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2097
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2098
    Description
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2099
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2100
       The unsigned indexbyte1 and indexbyte2 are assembled into an
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2101
       unsigned 16-bit index into the run-time constant pool of the
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2102
       current class ([407]§2.6), where the value of the index is
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2103
       calculated as (indexbyte1 << 8) | indexbyte2. The index must be
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2104
       a valid index into the run-time constant pool of the current
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2105
       class. The run-time constant pool entry at the index must be a
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2106
       run-time constant of type long or double ([408]§5.1). The
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2107
       numeric value of that run-time constant is pushed onto the
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2108
       operand stack as a long or double, respectively.
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2109
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2110
    Notes
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2111
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2112
       Only a wide-index version of the ldc2_w instruction exists;
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2113
       there is no ldc2 instruction that pushes a long or double with
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2114
       a single-byte index.
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2115
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2116
       The ldc2_w instruction can only be used to push a value of type
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2117
       double taken from the double value set ([409]§2.3.2) because a
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2118
       constant of type double in the constant pool ([410]§4.4.5) must
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2119
       be taken from the double value set.
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2120
    "
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2121
da57f13e6a23 Fixed JavaMethod>>referencesLiteral: and other literal-access methods
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3586
diff changeset
  2122
    "Modified (comment): / 29-07-2016 / 09:13:02 / Jan Vrany <jan.vrany@fit.cvut.cz>"
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2123
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2124
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2125
ldiv
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2126
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2127
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2128
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2129
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2130
    "Created: / 17-03-2011 / 16:46:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2131
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2132
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2133
lload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2134
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2135
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2136
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2137
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2138
    "Created: / 17-03-2011 / 15:06:08 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2139
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2140
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2141
lload: arg 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2142
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2143
     Load long from local variable
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2144
     stack: nothing -> value
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2145
         args: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2146
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2147
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2148
    ^ self subclassResponsibility.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2149
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2150
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2151
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2152
     Both <n> and <n> + 1 must be indices into the local variable array of the
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
  2153
     current frame (3.6). The local variable at <n> must contain a long. The
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2154
     value of the local variable at <n> is pushed onto the operand stack.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2155
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2156
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2157
     Each of the lload_<n> instructions is the same as lload with an index
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2158
     of <n>, except that the operand <n> is implicit."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2159
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2160
    "Modified: / 17-03-2011 / 16:33:33 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2161
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2162
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2163
lload_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2164
"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2165
Load long from local variable
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2166
stack: nothing -> value
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2167
args: nothing
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2168
"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2169
    self lload: 0.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2170
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2171
"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2172
Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2173
Both <n> and <n> + 1 must be indices into the local variable array of the 
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
  2174
current frame (3.6). The local variable at <n> must contain a long. The 
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2175
value of the local variable at <n> is pushed onto the operand stack.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2176
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2177
Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2178
Each of the lload_<n> instructions is the same as lload with an index 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2179
of <n>, except that the operand <n> is implicit.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2180
"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2181
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2182
    "Created: / 14-03-2011 / 13:38:11 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2183
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2184
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2185
lload_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2186
self lload: 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2187
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2188
    "Created: / 14-03-2011 / 13:37:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2189
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2190
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2191
lload_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2192
    self lload: 2.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2193
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2194
    "Created: / 14-03-2011 / 13:38:39 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2195
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2196
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2197
lload_3
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2198
    self lload: 3.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2199
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2200
    "Created: / 14-03-2011 / 13:38:43 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2201
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2202
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2203
lmul
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2204
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2205
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2206
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2207
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2208
    "Created: / 17-03-2011 / 16:45:53 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2209
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2210
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2211
lneg
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2212
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2213
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2214
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2215
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2216
    "Created: / 17-03-2011 / 16:47:29 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2217
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2218
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2219
lookupswtch
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2220
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2221
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2222
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2223
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2224
    "Created: / 17-03-2011 / 16:55:04 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2225
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2226
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2227
lor
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2228
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2229
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2230
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2231
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2232
    "Created: / 17-03-2011 / 16:49:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2233
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2234
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2235
lrem
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2236
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2237
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2238
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2239
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2240
    "Created: / 17-03-2011 / 16:46:58 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2241
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2242
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2243
lreturn
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2244
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2245
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2246
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2247
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2248
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2249
lshl
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2250
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2251
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2252
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2253
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2254
    "Created: / 17-03-2011 / 16:48:09 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2255
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2256
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2257
lshr
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2258
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2259
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2260
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2261
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2262
    "Created: / 17-03-2011 / 16:48:21 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2263
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2264
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2265
lstore
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2266
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2267
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2268
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2269
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2270
    "Created: / 17-03-2011 / 16:37:14 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2271
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2272
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2273
lstore:arg
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2274
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2275
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2276
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2277
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2278
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2279
lstore_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2280
    "store long into local variable 0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2281
     stack: value -> nothing
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2282
     args: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2283
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2284
    self lstore: 0.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2285
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2286
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2287
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2288
     Both <n> and <n> + 1 must be indices into the local variable array of the
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
  2289
     current frame (3.6). The value on the top of the operand stack must be
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2290
     of type long. It is popped from the operand stack, and the local variables
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2291
     at <n> and <n> + 1 are set to value.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2292
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2293
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2294
     Each of the lstore_<n> instructions is the same as lstore with an index
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2295
     of <n>, except that the operand <n> is implicit."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2296
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2297
    "Created: / 14-03-2011 / 17:54:43 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2298
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2299
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2300
lstore_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2301
    "store long into local variable
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2302
     stack: value -> nothing
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2303
     args: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2304
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2305
    self lstore: 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2306
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2307
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2308
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2309
     Both <n> and <n> + 1 must be indices into the local variable array of the
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
  2310
     current frame (3.6). The value on the top of the operand stack must be
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2311
     of type long. It is popped from the operand stack, and the local variables
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2312
     at <n> and <n> + 1 are set to value.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2313
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2314
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2315
     Each of the lstore_<n> instructions is the same as lstore with an index
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2316
     of <n>, except that the operand <n> is implicit."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2317
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2318
    "Created: / 14-03-2011 / 17:55:15 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2319
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2320
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2321
lstore_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2322
    "store long into local variable
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2323
     stack: value -> nothing
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2324
     args: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2325
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2326
    self lstore: 2.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2327
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2328
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2329
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2330
     Both <n> and <n> + 1 must be indices into the local variable array of the
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
  2331
     current frame (3.6). The value on the top of the operand stack must be
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2332
     of type long. It is popped from the operand stack, and the local variables
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2333
     at <n> and <n> + 1 are set to value.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2334
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2335
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2336
     Each of the lstore_<n> instructions is the same as lstore with an index
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2337
     of <n>, except that the operand <n> is implicit."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2338
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2339
    "Created: / 14-03-2011 / 17:55:20 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2340
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2341
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2342
lstore_3
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2343
    "store long into local variable
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2344
     stack: value -> nothing
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2345
     args: nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2346
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2347
    self lstore: 3.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2348
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2349
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2350
     Description
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2351
     Both <n> and <n> + 1 must be indices into the local variable array of the
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
  2352
     current frame (3.6). The value on the top of the operand stack must be
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2353
     of type long. It is popped from the operand stack, and the local variables
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2354
     at <n> and <n> + 1 are set to value.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2355
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2356
     Notes
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2357
     Each of the lstore_<n> instructions is the same as lstore with an index
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2358
     of <n>, except that the operand <n> is implicit."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2359
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2360
    "Created: / 14-03-2011 / 17:56:04 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2361
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2362
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2363
lsub
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2364
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2365
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2366
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2367
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2368
    "Created: / 17-03-2011 / 16:45:25 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2369
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2370
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2371
lushr
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2372
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2373
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2374
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2375
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2376
    "Created: / 17-03-2011 / 16:48:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2377
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2378
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2379
lxor
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2380
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2381
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2382
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2383
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2384
    "Created: / 17-03-2011 / 16:49:09 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2385
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2386
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2387
monenter
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2388
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2389
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2390
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2391
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2392
    "Created: / 17-03-2011 / 16:58:06 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2393
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2394
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2395
monexit
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2396
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2397
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2398
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2399
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2400
    "Created: / 17-03-2011 / 16:58:10 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2401
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2402
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2403
multianewarray
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2404
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2405
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2406
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2407
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2408
    "Created: / 17-03-2011 / 16:58:28 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2409
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2410
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2411
new
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2412
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2413
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2414
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2415
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2416
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2417
newarray
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2418
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2419
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2420
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2421
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2422
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2423
nop
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2424
"Do nothing"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2425
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2426
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2427
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2428
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2429
    "Modified: / 17-03-2011 / 16:27:12 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2430
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2431
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2432
pop1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2433
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2434
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2435
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2436
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2437
    "Created: / 17-03-2011 / 16:43:07 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2438
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2439
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2440
pop2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2441
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2442
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2443
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2444
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2445
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2446
putfield
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2447
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2448
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2449
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2450
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2451
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2452
putstatic
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2453
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2454
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2455
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2456
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2457
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2458
ret
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2459
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2460
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2461
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2462
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2463
    "Created: / 17-03-2011 / 16:54:31 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2464
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2465
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2466
ret_w
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2467
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2468
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2469
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2470
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2471
    "Created: / 17-03-2011 / 16:59:12 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2472
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2473
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2474
return
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2475
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2476
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2477
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2478
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2479
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2480
saload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2481
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2482
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2483
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2484
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2485
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2486
sastore
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2487
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2488
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2489
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2490
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2491
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2492
sipush
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2493
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2494
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2495
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2496
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2497
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2498
swap
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2499
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2500
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2501
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2502
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2503
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2504
tableswtch
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2505
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2506
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2507
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2508
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2509
    "Created: / 17-03-2011 / 16:54:55 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2510
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2511
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2512
wide
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2513
    "raise an error: must be redefined in concrete subclass(es)"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2514
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2515
    ^ self subclassResponsibility
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2516
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2517
    "Created: / 17-03-2011 / 16:58:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2518
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2519
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2520
!JavaByteCodeProcessor methodsFor:'private-helpers'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2521
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2522
fetchByte
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2523
    "fetch sign extended byte value stored in bytecode"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2524
    pc := pc + 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2525
    ^ (byteCode at: (pc - 1)) signExtendedByteValue.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2526
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2527
    "Created: / 06-03-2011 / 22:26:09 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2528
    "Modified: / 17-03-2011 / 17:00:30 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2529
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2530
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2531
fetchBytes2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2532
    "fetch sign extended 2 byte value stored in bytecode"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2533
    pc := pc + 2.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2534
    ^ (((byteCode at: (pc - 2)) bitShift: 8) + (byteCode at: (pc - 1))) 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2535
        signExtendedShortValue.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2536
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2537
    "Created: / 06-03-2011 / 21:12:07 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2538
    "Modified: / 17-03-2011 / 17:00:43 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2539
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2540
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2541
fetchBytes4
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2542
    "fetch sign extended 4 byte value stored in bytecode"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2543
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2544
    pc := pc + 4.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2545
    ^ (((((byteCode at: (pc - 4)) bitShift: 24) 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2546
        bitOr: ((byteCode at: (pc - 3)) bitShift: 16)) 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2547
            bitOr: ((byteCode at: (pc - 2)) bitShift: 8)) 
3536
7b39de8ba5ff JavaByteCodeProcessor: fixed fetchBytes4 use #signExtendedLongValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3431
diff changeset
  2548
            bitOr: (byteCode at: (pc - 1))) signExtendedLongValue.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2549
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2550
    "Created: / 21-03-2011 / 12:59:26 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2551
    "Modified: / 21-03-2011 / 15:10:22 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
3536
7b39de8ba5ff JavaByteCodeProcessor: fixed fetchBytes4 use #signExtendedLongValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3431
diff changeset
  2552
    "Modified: / 12-03-2016 / 00:00:30 / Jan Vrany <jan.vrany@fit.cvut.cz>"
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2553
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2554
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2555
fetchIndex
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2556
    "fetch index value from bytecode"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2557
    pc := pc + 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2558
    ^ (byteCode at: (pc - 1)).
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2559
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2560
    "Created: / 24-02-2011 / 22:37:18 / Marcel Hlopko <hlopik@gmail.com>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2561
    "Modified: / 17-03-2011 / 17:01:14 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2562
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2563
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2564
fetchIndex2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2565
    "fetch index 2 byte value from bytecode"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2566
    pc := pc + 2.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2567
    ^ ((byteCode at: (pc - 2)) bitShift: 8) bitOr: (byteCode at: (pc - 1)).
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2568
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2569
    "Modified: / 24-02-2011 / 21:33:53 / Marcel Hlopko <hlopik@gmail.com>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2570
    "Modified: / 17-03-2011 / 17:01:24 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2571
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2572
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2573
pop
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2574
    "return and remove top of the stack"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2575
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2576
    sp := sp - 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2577
    ^ context at: sp + 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2578
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2579
    "Modified: / 17-03-2011 / 17:39:09 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2580
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2581
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2582
popDouble
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2583
    "so far I didn't find a reason to handle doubles and long on stack differently"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2584
    ^ self pop.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2585
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2586
    "Modified: / 17-03-2011 / 17:02:34 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2587
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2588
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2589
popLong
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2590
"so far I didn't find a reason to handle doubles and long on stack differently"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2591
    ^ self pop.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2592
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2593
    "Modified: / 17-03-2011 / 17:02:38 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2594
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2595
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2596
pushConstant: something 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2597
    "push constant value on the stack - is there really not any better push method?"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2598
    sp := sp + 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2599
    context at: sp put: something
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2600
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2601
    "Modified: / 17-03-2011 / 17:05:56 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2602
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2603
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2604
pushDouble: something 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2605
    "push double value on the stack"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2606
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2607
    ^ self pushInt: something.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2608
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2609
    "Modified: / 17-03-2011 / 17:06:28 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2610
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2611
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2612
pushFloat: something 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2613
    "push float value on the stack"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2614
    self pushInt: something.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2615
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2616
    "Created: / 13-03-2011 / 16:39:52 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2617
    "Modified: / 17-03-2011 / 17:06:41 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2618
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2619
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2620
pushInt: something 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2621
    "push integer value on the stack"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2622
    sp := sp + 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2623
    context at: sp put: something
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2624
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2625
    "Created: / 13-03-2011 / 17:28:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2626
    "Modified: / 17-03-2011 / 17:06:52 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2627
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2628
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2629
pushLong: something 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2630
    "push long value on the stack"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2631
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2632
    ^ self pushInt: something.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2633
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2634
    "sp := sp + 2.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2635
     context at: sp - 1 put: #'dummy long complement'.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2636
     context at: sp put: something asLargeInteger."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2637
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2638
    "Modified: / 17-03-2011 / 17:07:06 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2639
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2640
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2641
pushNewArrayOf: type sized: size 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2642
    "push new array of type with <size> slots"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2643
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2644
    self pushRef: ((JavaArray javaArrayClassFor: type) new: size).
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2645
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2646
    "Created: / 14-03-2011 / 18:36:15 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2647
    "Modified: / 27-03-2011 / 21:06:30 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2648
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2649
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2650
pushNewPrimitiveArrayOf: typeName sized: size 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2651
    "push new array of <typeName> (e.g. 'long', only primitive types) with <size> slots"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2652
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2653
    self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2654
        pushRef: ((JavaArray 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2655
                javaArrayClassFor: (JavaDescriptor baseTypesByTypeName at: typeName)) 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2656
                    new: size).
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2657
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2658
    "Created: / 27-03-2011 / 21:06:07 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2659
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2660
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2661
pushRef: something 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2662
    "push java ref on the stack"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2663
    sp := sp + 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2664
    context at: sp put: something
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2665
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2666
    "Created: / 13-03-2011 / 16:35:55 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2667
    "Modified: / 21-03-2011 / 16:49:30 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2668
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2669
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2670
relativeJump: pos 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2671
    "move pc relatively by the position <pos>."
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2672
   
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2673
    pc := instrPointer + pos.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2674
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2675
    "Created: / 21-03-2011 / 18:19:44 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2676
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2677
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2678
skipPadding
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2679
    "in tableswitch and lookupswitch instructions, there's a padding after instruction to ensure 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2680
     32bit values following begin at address that is multiple of 4 bytes from the start of the current
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2681
     method bytecode"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2682
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2683
    | jmpSize |
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2684
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2685
    jmpSize := ((4 - (pc \\ 4)) + 1) \\ 4.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2686
    pc := pc + jmpSize.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2687
    ^ jmpSize.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2688
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2689
    "Created: / 21-03-2011 / 13:13:55 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2690
    "Modified: / 22-03-2011 / 15:54:23 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2691
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2692
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2693
tos
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2694
    ^ context at:sp.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2695
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2696
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2697
!JavaByteCodeProcessor methodsFor:'private-logging'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2698
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2699
log: aMessage
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2700
self class log: aMessage.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2701
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2702
    "Created: / 17-03-2011 / 14:59:56 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2703
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2704
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2705
!JavaByteCodeProcessor methodsFor:'processing loop'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2706
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2707
enterProcessingLoop
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2708
    Context cannotReturnSignal handle: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2709
            [:ex | 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2710
            "/ this is required for blocks of this method, which do a homeReturn.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2711
            "/ since my context is not really on the stack (and therefore not returnable),
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2712
            "/ catch the error and return manually.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2713
            ^ ex parameter ]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2714
        do: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2715
            [ [ leaveProcessor ] whileFalse: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2716
                    [ instrPointer := pc.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2717
                    op := byteCode at: pc.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2718
                    pc := pc + 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2719
                    self switch: op. ]. ].
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2720
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2721
    "Created: / 31-03-2011 / 16:38:01 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2722
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2723
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2724
handleAbstractMethod
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2725
    self subclassResponsibility.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2726
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2727
    "Created: / 22-03-2011 / 14:49:43 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2728
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2729
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
  2730
handleNativeMethod
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
  2731
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
  2732
    "Created: / 09-02-2012 / 22:47:03 / mh <hlopik@gmail.com>"
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
  2733
!
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
  2734
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2735
initializeContextArgsFrom: argArray 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2736
    1 to: numArgs do: [:idx | context at: idx put: (argArray at: idx). ]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2737
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2738
    "Created: / 21-03-2011 / 15:17:23 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2739
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2740
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2741
initializeContextVars
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2742
    1 to: numVars do: [:idx | context at: (numArgs + idx) put: nil. ]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2743
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2744
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2745
leaveProcessorWith: aReturnObject 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2746
    retVal := aReturnObject.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2747
    leaveProcessor := true
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2748
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2749
    "Modified: / 17-03-2011 / 17:39:21 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2750
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2751
3196
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
  2752
process:aMethod receiver:aReceiver arguments:args 
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2753
    | argArray |
3196
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
  2754
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
  2755
    aMethod isAbstract ifTrue:[
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
  2756
        ^ self handleAbstractMethod.
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
  2757
    ].
3196
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
  2758
    aMethod isNative ifTrue:[
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
  2759
        ^ self handleNativeMethod
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
  2760
    ].
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
  2761
    args size ~~ aMethod javaNumArgs ifTrue:[
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
  2762
        self error:'bad number of arguments'
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
  2763
    ].
3196
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
  2764
    aMethod isStatic ifTrue:[
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
  2765
        argArray := args
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
  2766
    ] ifFalse:[
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
  2767
        argArray := OrderedCollection with:aReceiver.
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
  2768
        args notNil ifTrue:[
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
  2769
            argArray addAll:args.
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
  2770
        ].
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
  2771
    ].
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2772
    numArgs := argArray size.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2773
    numVars := aMethod numVars.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2774
    method := aMethod.
3196
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
  2775
    context := JavaContext new:(numArgs + numVars + aMethod stackSize).
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
  2776
    context setNumArgs:numArgs numVars:numVars.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2777
    receiver := aReceiver.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2778
    byteCode := aMethod byteCode.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2779
    constantPool := aMethod constantPool.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2780
    pc := 1.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2781
    wide := false.
3196
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
  2782
    self initializeContextArgsFrom:argArray.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2783
    self initializeContextVars.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2784
    sp := numArgs + numVars.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2785
    leaveProcessor := false.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2786
    self enterProcessingLoop.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2787
    ^ retVal
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2788
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2789
    "Modified: / 24-02-2011 / 11:09:07 / Marcel Hlopko <hlopik@gmail.com>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2790
    "Created: / 17-03-2011 / 17:25:31 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2791
    "Modified: / 31-03-2011 / 16:38:05 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
  2792
    "Modified: / 09-02-2012 / 22:51:38 / mh <hlopik@gmail.com>"
3196
d617b4590431 (Class reading) optimization [2/4]: rewrite slow ifNil:... by faster isNil ifTrue:...
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2731
diff changeset
  2793
    "Modified: / 04-08-2014 / 15:51:53 / Jan Vrany <jan.vrany@fit.cvut.cz>"
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2794
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2795
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2796
switch: op 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2797
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2798
    self log: 'invoking ' , (OpSwitchTable at: op + 1) printString , '(' , op printString , ')'.                 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2799
    self perform: (OpSwitchTable at: op + 1)
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2800
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2801
    "Modified: / 17-03-2011 / 15:01:15 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2802
    "Modified: / 22-03-2011 / 20:55:22 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2803
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2804
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2805
!JavaByteCodeProcessor class methodsFor:'documentation'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2806
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2807
version
3431
82790b1e6d54 Merged with mercurial revision 4f3cc813be4 (8 changesets total)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3430
diff changeset
  2808
    ^ '$Header: /cvs/stx/stx/libjava/JavaByteCodeProcessor.st,v 1.9 2015-03-20 12:07:59 vrany Exp $'
2190
8026ab73e194 added: #version_CVS
Claus Gittinger <cg@exept.de>
parents: 2152
diff changeset
  2809
!
8026ab73e194 added: #version_CVS
Claus Gittinger <cg@exept.de>
parents: 2152
diff changeset
  2810
8026ab73e194 added: #version_CVS
Claus Gittinger <cg@exept.de>
parents: 2152
diff changeset
  2811
version_CVS
3431
82790b1e6d54 Merged with mercurial revision 4f3cc813be4 (8 changesets total)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 3430
diff changeset
  2812
    ^ '$Header: /cvs/stx/stx/libjava/JavaByteCodeProcessor.st,v 1.9 2015-03-20 12:07:59 vrany Exp $'
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
  2813
!
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
  2814
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
  2815
version_HG
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
  2816
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
  2817
    ^ '$Changeset: <not expanded> $'
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2818
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2819
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2820
version_SVN
2731
13f5be2bf83b Merged d87e89dd5276 and fe83a843a7bf (branch default - CVS HEAD)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2711 2678
diff changeset
  2821
    ^ 'Id'
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2822
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
  2823
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2290
diff changeset
  2824
2152
1cbdfbcc685c Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 749
diff changeset
  2825
JavaByteCodeProcessor initialize!