JavaByteCodeDisassemblerTests.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Fri, 24 May 2013 17:55:42 +0100
branchbuiltin-class-support
changeset 2629 cedb88626902
parent 2578 fc6186a4961f
child 2711 a00302fe5083
permissions -rw-r--r--
Closing branch.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     1
"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     2
 COPYRIGHT (c) 1996-2011 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: 2152
diff changeset
     3
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
     4
 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: 2152
diff changeset
     5
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     6
 COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     7
                            SWING Research Group, Czech Technical University in Prague
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     8
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
     9
 This software is furnished under a license and may be used
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    10
 only in accordance with the terms of that license and with the
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    11
 inclusion of the above copyright notice.   This software may not
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    12
 be provided or otherwise made available to, or used by, any
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    13
 other person.  No title to or ownership of the software is
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    14
 hereby transferred.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    15
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
    16
 [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: 2152
diff changeset
    17
     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: 2152
diff changeset
    18
     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: 2152
diff changeset
    19
     as of 1.9.2010
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    20
"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    21
"{ Package: 'stx:libjava' }"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    22
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    23
JavaByteCodeProcessorTests subclass:#JavaByteCodeDisassemblerTests
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    24
	instanceVariableNames:''
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    25
	classVariableNames:''
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    26
	poolDictionaries:''
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    27
	category:'Languages-Java-Tests'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    28
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    29
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    30
!JavaByteCodeDisassemblerTests class methodsFor:'documentation'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    31
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    32
copyright
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    33
"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    34
 COPYRIGHT (c) 1996-2011 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: 2152
diff changeset
    35
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
    36
 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: 2152
diff changeset
    37
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    38
 COPYRIGHT (c) 2010-2011 by Jan Vrany, Jan Kurs and Marcel Hlopko
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    39
                            SWING Research Group, Czech Technical University in Prague
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    40
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    41
 This software is furnished under a license and may be used
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    42
 only in accordance with the terms of that license and with the
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    43
 inclusion of the above copyright notice.   This software may not
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    44
 be provided or otherwise made available to, or used by, any
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    45
 other person.  No title to or ownership of the software is
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    46
 hereby transferred.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    47
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
    48
 [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: 2152
diff changeset
    49
     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: 2152
diff changeset
    50
     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: 2152
diff changeset
    51
     as of 1.9.2010
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    52
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    53
"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    54
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    55
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    56
!JavaByteCodeDisassemblerTests class methodsFor:'resources'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    57
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    58
resources
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    59
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    60
    ^ Array with: JavaInitializedResource with: JavaTestsResource.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    61
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    62
    "Created: / 15-03-2011 / 17:29:22 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    63
    "Modified: / 16-03-2011 / 14:43:31 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    64
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    65
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    66
!JavaByteCodeDisassemblerTests methodsFor:'tests'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    67
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    68
testAnd
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    69
    | result |
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    70
    self shouldnt: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    71
            [ result := self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    72
                invoke: #'and(II)I'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    73
                class: self loadSimpleMathJavaClass
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
    74
                args: #( 255 149 )
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
    75
            ] raise: Error. 
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    76
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    77
    "static method
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    78
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    79
     0    iload_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    80
     1    iload_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    81
     2    iand
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    82
     3    ireturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    83
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    84
    "Created: / 14-03-2011 / 17:02:09 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    85
    "Modified: / 20-03-2011 / 21:49:36 / 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: 2152
diff changeset
    86
    "Modified (format): / 21-12-2012 / 18:43:34 / Marcel Hlopko <marcel.hlopko@fit.cvut.cz>"
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    87
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    88
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    89
testBitShiftLeft
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    90
    |  |
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    91
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    92
     self shouldnt: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    93
            [ self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    94
                invoke: #'bitShiftLeft(II)I'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    95
                class: self loadSimpleMathJavaClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    96
                args: #( 21 4 )]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    97
                        raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    98
    "static method
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
    99
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   100
     0    iload_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   101
     1    iload_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   102
     2    ishl
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   103
     3    ireturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   104
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   105
    "Created: / 14-03-2011 / 16:56:49 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   106
    "Modified: / 20-03-2011 / 21:50:37 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   107
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   108
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   109
testBitShiftRight
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   110
    |  |
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   111
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   112
     self shouldnt: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   113
             [ self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   114
                invoke: #'bitShiftRight(II)I'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   115
                class: self loadSimpleMathJavaClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   116
                args: #( 439 4 )]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   117
                        raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   118
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   119
    "static method
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   120
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   121
     0    iload_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   122
     1    iload_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   123
     2    ishr
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   124
     3    ireturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   125
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   126
    "Created: / 14-03-2011 / 16:57:02 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   127
    "Modified: / 20-03-2011 / 21:50:50 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   128
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   129
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   130
testDec2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   131
    self shouldnt: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   132
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   133
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   134
    [ self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   135
        invoke: #'dec2(I)I'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   136
        class: self loadSimpleMathJavaClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   137
        args: #( 3 ). ] raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   138
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   139
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   140
    "static method
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   141
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   142
     0    iinc 0 -1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   143
     3    iinc 0 -1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   144
     6    iload_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   145
     7    ireturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   146
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   147
    "Created: / 14-03-2011 / 16:58:12 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   148
    "Modified: / 20-03-2011 / 22:59:53 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   149
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   150
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   151
testDiv
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   152
    |  |
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   153
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   154
    self shouldnt: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   155
            [ self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   156
                invoke: #'div(II)I'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   157
                class: self loadSimpleMathJavaClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   158
                args: #( 101 10 ) ]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   159
                        raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   160
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   161
    "static method
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   162
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   163
     0    iload_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   164
     1    iload_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   165
     2    irem
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   166
     3    ireturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   167
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   168
    "Created: / 14-03-2011 / 16:54:43 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   169
    "Modified: / 20-03-2011 / 21:51:16 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   170
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   171
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   172
testDivision
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   173
    |  |
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   174
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   175
   self shouldnt: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   176
            [ self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   177
                invoke: #'division(II)I'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   178
                class: self loadSimpleMathJavaClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   179
                args: #( 101 10 ) ]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   180
                        raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   181
    "static method
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   182
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   183
     0    iload_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   184
     1    iload_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   185
     2    idiv
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   186
     3    ireturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   187
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   188
    "Created: / 14-03-2011 / 16:57:34 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   189
    "Modified: / 20-03-2011 / 21:51:30 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   190
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   191
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   192
testInc2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   193
    |  |
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   194
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   195
    self shouldnt: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   196
            [ self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   197
                invoke: #'inc2(I)I'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   198
                class: self loadSimpleMathJavaClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   199
                args: #( 3 ) ]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   200
                        raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   201
    "static method
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   202
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   203
     0    iinc 0 1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   204
     3    iinc 0 1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   205
     6    iload_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   206
     7    ireturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   207
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   208
    "Created: / 14-03-2011 / 16:58:00 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   209
    "Modified: / 20-03-2011 / 21:51:49 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   210
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   211
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   212
testInheritedMethodCall
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   213
    self shouldnt:  [ 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   214
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   215
    self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   216
        invoke: #'foo()Ljava/lang/String;'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   217
        class: self loadSimpleInheritingJavaClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   218
        args: nil.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   219
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   220
    ]       raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   221
    "0    ldc1 2 ['foo'] 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   222
     2    areturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   223
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   224
    "Created: / 14-03-2011 / 16:21:04 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   225
    "Modified: / 20-03-2011 / 23:01:36 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   226
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   227
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   228
testJustLoadConstants
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   229
    self shouldnt:  [ 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   230
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   231
    self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   232
        invoke: #'justUseConstants()V'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   233
        class: self loadSimpleMathJavaClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   234
        args: #().
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   235
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   236
    ]        raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   237
    "static method
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   238
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   239
     0    lconst_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   240
     1    lstore_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   241
     2    lconst_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   242
     3    lstore_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   243
     4    fconst_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   244
     5    fstore 4
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   245
     7    fconst_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   246
     8    fstore 5
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   247
     10   fconst_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   248
     11   fstore 6
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   249
     13   dconst_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   250
     14   dstore 7
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   251
     16   dconst_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   252
     17   dstore 9
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   253
     19   return"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   254
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   255
    "Created: / 14-03-2011 / 17:05:22 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   256
    "Modified: / 20-03-2011 / 23:02:24 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   257
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   258
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   259
testLookupSwitch
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   260
        self shouldnt:            [ 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   261
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   262
    self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   263
        invoke: #'switchInt(I)I'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   264
        class: self loadSwitchExamplesClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   265
        receiver: self loadSwitchExamplesClass new
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   266
        args: #( -1000 )
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   267
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   268
     ]        raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   269
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   270
    "Created: / 21-03-2011 / 13:51:49 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   271
    "Modified: / 21-03-2011 / 15:12:34 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   272
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   273
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   274
testMultipy
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   275
   self shouldnt: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   276
             [ self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   277
                invoke: #'multiply(II)I'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   278
                class: self loadSimpleMathJavaClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   279
                args: (Array with: 20 with: 10)]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   280
                        raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   281
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   282
    "static method
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   283
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   284
     0    iload_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   285
     1    iload_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   286
     2    imul
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   287
     3    ireturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   288
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   289
    "Created: / 06-03-2011 / 14:17:53 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   290
    "Modified: / 20-03-2011 / 21:53:07 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   291
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   292
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   293
testNegateInt
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   294
    self shouldnt: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   295
             [ self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   296
                invoke: #'negateInt(I)I'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   297
                class: self loadSimpleMathJavaClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   298
                args: #( 55 )]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   299
                        raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   300
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   301
    "0    iload_0 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   302
     1    iconst_m1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   303
     2    ixor
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   304
     3    ireturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   305
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   306
    "Created: / 14-03-2011 / 16:55:55 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   307
    "Modified: / 20-03-2011 / 21:53:23 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   308
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   309
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   310
testOr
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
    self shouldnt: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   314
            [ self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   315
                invoke: #'or(II)I'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   316
                class: self loadSimpleMathJavaClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   317
                args: #( 55 66 )]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   318
                        raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   319
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   320
    "0    iload_0 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   321
     1    iload_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   322
     2    ior
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   323
     3    ireturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   324
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   325
    "Created: / 14-03-2011 / 17:02:21 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   326
    "Modified: / 20-03-2011 / 21:53:39 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   327
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   328
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   329
testOverridenMethodCall
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   330
    self shouldnt: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   331
             [ self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   332
                        invoke: #'bar()Ljava/lang/String;'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   333
                        class: self loadSimpleInheritingJavaClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   334
                        args: nil.]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   335
                                raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   336
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   337
    "0    ldc1 2 ['bar'] 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   338
     2    areturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   339
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   340
    "Modified: / 20-03-2011 / 21:53:56 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   341
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   342
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   343
testPower
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   344
     self shouldnt: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   345
             [ self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   346
                invoke: #'power(II)I'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   347
                class: self loadSimpleMathJavaClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   348
                args: (Array with: 2 with: 10)]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   349
                        raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   350
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   351
    "0    iload_0 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   352
     1    iload_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   353
     2    iconst_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   354
     3    invokestatic 2 [JavaMethod(stx.libjava.tests.simpleClasses.SimpleMath::int powerAcc (int int int))]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   355
     6    ireturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   356
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   357
    "Created: / 06-03-2011 / 14:18:03 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   358
    "Modified: / 20-03-2011 / 21:54:10 / 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
testReturnArrayOfLongs
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   362
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   363
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   364
    self shouldnt: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   365
            [ self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   366
                        invoke: #'giveMeArrayOfLongs()[J'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   367
                        class: self loadSimpleMathJavaClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   368
                        args: #(). ]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   369
        raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   370
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   371
    "0    bipush 100
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   372
     2    newarray 11 [T_LONG]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   373
     4    areturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   374
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   375
    "Created: / 14-03-2011 / 17:08:11 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   376
    "Modified: / 20-03-2011 / 21:54:23 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   377
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   378
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   379
testSimpleAdd
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   380
    self shouldnt: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   381
             [ self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   382
                invoke: #'add2To2000Expect2002()I'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   383
                class: self loadSimpleMathJavaClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   384
                args: nil ]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   385
                        raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   386
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   387
    "static method
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   388
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   389
     0    iconst_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   390
     1    istore_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   391
     2    sipush 2000
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   392
     5    istore_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   393
     6    iload_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   394
     7    iload_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   395
     8    iadd
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   396
     9    istore_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   397
     10   iload_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   398
     11   ireturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   399
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   400
    "Created: / 06-03-2011 / 14:18:09 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   401
    "Modified: / 20-03-2011 / 21:55:00 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   402
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   403
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   404
testSimpleAdd2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   405
    self shouldnt: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   406
             [ self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   407
                invoke: #'addMinus5ToArg(I)I'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   408
                class: self loadSimpleMathJavaClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   409
                args: (Array with: 10) ]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   410
                        raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   411
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   412
    "static method
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   413
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   414
     0    iload_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   415
     1    bipush -5
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   416
     3    iadd
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   417
     4    ireturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   418
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   419
    "Created: / 06-03-2011 / 14:18:14 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   420
    "Modified: / 20-03-2011 / 21:55:10 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   421
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   422
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   423
testStackCreation
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   424
    self shouldnt: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   425
             [ self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   426
                invoke: #'isYourStackCreatedCorrectly()I'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   427
                class: self loadSimpleMathJavaClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   428
                args: #()]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   429
                        raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   430
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   431
    "0    iconst_0 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   432
     1    istore_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   433
     2    iconst_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   434
     3    istore_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   435
     4    iconst_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   436
     5    istore_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   437
     6    iconst_3
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   438
     7    istore_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   439
     8    iconst_4
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   440
     9    istore_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   441
     10   iconst_5
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   442
     11   istore_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   443
     12   bipush 6
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   444
     14   istore_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   445
     15   bipush 7
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   446
     17   istore_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   447
     18   bipush 8
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   448
     20   istore_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   449
     21   bipush 9
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   450
     23   istore_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   451
     24   iload_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   452
     25   ireturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   453
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   454
    "Created: / 14-03-2011 / 17:03:36 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   455
    "Modified: / 20-03-2011 / 21:55:24 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   456
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   457
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   458
testSumArray
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   459
    self shouldnt:   [
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   460
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   461
    self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   462
        invoke: #'sumArray([I)I'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   463
        class: self loadSimpleMathJavaClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   464
        args: #( #(1 2 3 4 5) )
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   465
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   466
    ]        raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   467
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   468
     Decompiled source:
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   469
     Static method
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   470
     0    iconst_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   471
     1    istore_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   472
     2    iconst_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   473
     3    istore_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   474
     4    iload_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   475
     5    aload_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   476
     6    arraylength
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   477
     7    if_icmpge 15 [22]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   478
     10   iload_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   479
     11   aload_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   480
     12   iload_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   481
     13   iaload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   482
     14   iadd
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   483
     15   istore_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   484
     16   iinc 2 1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   485
     19   goto -15 [4]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   486
     22   iload_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   487
     23   ireturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   488
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   489
    "Created: / 14-03-2011 / 17:06:31 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   490
    "Modified: / 20-03-2011 / 23:05:36 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   491
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   492
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   493
testSumArrayOfDoubles
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   494
    self shouldnt: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   495
             [self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   496
                invoke: #'sumArrayOfDoubles([D)D'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   497
                class: self loadSimpleMathJavaClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   498
                args: #( #(1.1 2.2 3.3 4.4 5.5) ) ]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   499
                        raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   500
    "0    dconst_0 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   501
     1    dstore_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   502
     2    iconst_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   503
     3    istore_3
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   504
     4    iload_3
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   505
     5    aload_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   506
     6    arraylength
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   507
     7    if_icmpge 15 [22]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   508
     10   dload_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   509
     11   aload_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   510
     12   iload_3
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   511
     13   daload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   512
     14   dadd
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   513
     15   dstore_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   514
     16   iinc 3 1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   515
     19   goto -15 [4]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   516
     22   dload_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   517
     23   dreturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   518
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   519
    "Created: / 14-03-2011 / 17:07:27 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   520
    "Modified: / 20-03-2011 / 21:55:59 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   521
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   522
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   523
testTableSwitch
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   524
         self shouldnt:             [ 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   525
    
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   526
    self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   527
        invoke: #'switchChar(C)I'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   528
        class: self loadSwitchExamplesClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   529
        receiver: self loadSwitchExamplesClass new
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   530
        args: #( $b ).
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   531
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   532
    ]        raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   533
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   534
    "Created: / 21-03-2011 / 13:51:25 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   535
    "Modified: / 21-03-2011 / 15:02:42 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   536
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   537
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   538
testUnsignedBitShiftLeft
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   539
   self shouldnt: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   540
             [ self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   541
                invoke: #'unsignedBitShiftRight(II)I'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   542
                class: self loadSimpleMathJavaClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   543
                args: #( 1234 5 ) ]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   544
                        raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   545
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   546
    "0    iload_0 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   547
     1    iload_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   548
     2    iushr
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   549
     3    ireturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   550
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   551
    "Created: / 14-03-2011 / 17:01:21 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   552
    "Modified: / 20-03-2011 / 21:56:12 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   553
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   554
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   555
testXor
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   556
    self shouldnt: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   557
             [ self 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   558
                invoke: #'xor(II)I'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   559
                class: self loadSimpleMathJavaClass
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   560
                args: #( 1234 5 )]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   561
                        raise: Error.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   562
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   563
    "0    iload_0 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   564
     1    iload_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   565
     2    ixor
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   566
     3    ireturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   567
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   568
    "Modified: / 06-03-2011 / 15:11:11 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   569
    "Created: / 14-03-2011 / 17:02:40 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   570
    "Modified: / 20-03-2011 / 21:56:24 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   571
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   572
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   573
!JavaByteCodeDisassemblerTests methodsFor:'tests - manual'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   574
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   575
diassembleAll
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   576
    | fails |
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   577
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   578
    fails := OrderedCollection new.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   579
    JavaMethod allSubInstances do: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   580
            [:method | 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   581
            method isNative 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   582
                ifFalse: 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   583
                    [ [ JavaByteCodeDisassembler new diassemble: method to: String new writeStream ] 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   584
                        on: Error
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   585
                        do: [ fails add: method ] ] ].
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   586
    fails size ~~ 0 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   587
        ifTrue: [ self error: 'Some java methods failed to disassemble' ].
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   588
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   589
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   590
        JavaByteCodeDisassemblerTests new diassembleAll"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   591
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   592
    "Created: / 21-03-2011 / 21:13:03 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   593
    "Modified: / 22-03-2011 / 21:05:41 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   594
    "Modified: / 23-03-2011 / 16:54:56 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   595
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   596
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   597
!JavaByteCodeDisassemblerTests methodsFor:'tests-helpers'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   598
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   599
invoke:methodName class:aClass receiver:receiver args:args 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   600
    |method result|
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   601
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   602
    method := aClass lookupMethodFor:methodName.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   603
    result := JavaByteCodeDisassembler diassemble:method.
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   604
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   605
    "Created: / 10-03-2011 / 23:30:13 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   606
    "Modified: / 20-03-2011 / 17:42:18 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   607
    "Modified: / 22-03-2011 / 21:05:32 / Jan Vrany <jan.vrany@fit.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   608
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   609
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   610
!JavaByteCodeDisassemblerTests methodsFor:'tests2'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   611
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   612
testGetBoolean
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   613
    self 
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   614
        invoke: #'getBoolean()Z'
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   615
        class: self loadSimpleClassWithManyReferences
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   616
        receiver: self loadSimpleClassWithManyReferences new
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   617
        args: nil.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   618
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   619
    "
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   620
     Deassembling getBoolean
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   621
     1:      ALOAD_0     (42)  ARGS: []                  STACK: [.. -> FIELD 0: stx.libjava.tests.simpleClasses.SimpleClassWithManyReferences]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   622
     2:      GETFIELD    (180) ARGS: [JavaFieldRef (stx.libjava.tests.simpleClasses.SimpleClassWithManyReferences 'values'[Ljava/lang/Object; offs=1)] STACK: [objectRef -> objectRef]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   623
     5:      BIPUSH      (16)  ARGS: [9]                 STACK: [.. -> value]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   624
     7:      AALOAD      (50)  ARGS: []                  STACK: [arrayRef, index -> value]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   625
     8:      CHECKCAST   (192) ARGS: [java.lang.Boolean] STACK: [objectRef -> objectRef]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   626
     11:     INVVIRT     (182) ARGS: [JavaMethodRef (java.lang.Boolean 'booleanValue'()Z)] STACK: [objectRef, [arg1, arg2, ...]  -> ..]
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   627
     14:     IRETURN     (172) ARGS: []                  STACK: [value -> EMPTY]"
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   628
    "Created: / 14-03-2011 / 21:36:37 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   629
    "Modified: / 22-03-2011 / 16:06:38 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   630
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   631
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   632
testGetByte
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   633
    self 
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   634
        shouldnt: [
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   635
            self 
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   636
                invoke: #'getByte()B'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   637
                class: self loadSimpleClassWithManyReferences
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   638
                receiver: self loadSimpleClassWithManyReferences new
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   639
                args: nil
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   640
        ]
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   641
        raise: Error.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   642
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   643
    "0    aload_0 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   644
     1    getfield 3 [JavaFieldRef (stx.libjava.tests.simpleClasses.SimpleClassWithManyReferences 'values'[Ljava/lang/Object; offs=1)]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   645
     4    bipush 7
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   646
     6    aaload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   647
     7    checkcast 17 [java.lang.Byte]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   648
     10   invokevirtual 31 [JavaMethodRef (java.lang.Byte 'byteValue'()B)]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   649
     13   ireturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   650
    "Created: / 14-03-2011 / 21:34:23 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   651
    "Modified: / 21-03-2011 / 15:38:57 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   652
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   653
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   654
testGetChar
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   655
    self 
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   656
        shouldnt: [
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   657
            self 
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   658
                invoke: #'getChar()C'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   659
                class: self loadSimpleClassWithManyReferences
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   660
                receiver: self loadSimpleClassWithManyReferences new
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   661
                args: nil
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   662
        ]
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   663
        raise: Error.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   664
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   665
    "0    aload_0 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   666
     1    getfield 3 [JavaFieldRef (stx.libjava.tests.simpleClasses.SimpleClassWithManyReferences 'values'[Ljava/lang/Object; offs=1)]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   667
     4    iconst_3
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   668
     5    aaload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   669
     6    checkcast 25 [java.lang.Character]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   670
     9    invokevirtual 26 [JavaMethodRef (java.lang.Character 'charValue'()C)]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   671
     12   ireturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   672
    "Created: / 14-03-2011 / 21:31:36 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   673
    "Modified: / 21-03-2011 / 15:39:09 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   674
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   675
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   676
testGetDateArray
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   677
    self 
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   678
        shouldnt: [
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   679
            self 
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   680
                invoke: #'getDateArray()[Ljava/util/Date;'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   681
                class: self loadSimpleClassWithManyReferences
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   682
                receiver: self loadSimpleClassWithManyReferences new
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   683
                args: nil
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   684
        ]
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   685
        raise: Error.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   686
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   687
    "0    aload_0 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   688
     1    getfield 3 [JavaFieldRef (stx.libjava.tests.simpleClasses.SimpleClassWithManyReferences 'values'[Ljava/lang/Object; offs=1)]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   689
     4    bipush 8
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   690
     6    aaload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   691
     7    checkcast 32 [UnresolvedClass([Ljava.util.Date;)]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   692
     10   checkcast 32 [UnresolvedClass([Ljava.util.Date;)]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   693
     13   areturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   694
    "Created: / 14-03-2011 / 21:35:33 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   695
    "Modified: / 21-03-2011 / 15:39:30 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   696
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   697
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   698
testGetDouble
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   699
    self 
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   700
        shouldnt: [
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   701
            self 
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   702
                invoke: #'getDouble()Ljava/lang/Double;'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   703
                class: self loadSimpleClassWithManyReferences
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   704
                receiver: self loadSimpleClassWithManyReferences new
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   705
                args: nil
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   706
        ]
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   707
        raise: Error.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   708
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   709
    "0    aload_0 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   710
     1    getfield 3 [JavaFieldRef (stx.libjava.tests.simpleClasses.SimpleClassWithManyReferences 'values'[Ljava/lang/Object; offs=1)]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   711
     4    iconst_2
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   712
     5    aaload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   713
     6    checkcast 24 [java.lang.Double]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   714
     9    areturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   715
    "Created: / 14-03-2011 / 21:30:47 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   716
    "Modified: / 21-03-2011 / 15:39:43 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   717
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   718
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   719
testGetInt
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   720
    self 
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   721
        shouldnt: [
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   722
            self 
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   723
                invoke: #'getInt()I'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   724
                class: self loadSimpleClassWithManyReferences
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   725
                receiver: self loadSimpleClassWithManyReferences new
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   726
                args: nil
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   727
        ]
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   728
        raise: Error.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   729
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   730
    "0    aload_0 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   731
     1    getfield 3 [JavaFieldRef (stx.libjava.tests.simpleClasses.SimpleClassWithManyReferences 'values'[Ljava/lang/Object; offs=1)]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   732
     4    iconst_1
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   733
     5    aaload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   734
     6    checkcast 13 [java.lang.Integer]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   735
     9    invokevirtual 23 [JavaMethodRef (java.lang.Integer 'intValue'()I)]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   736
     12   ireturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   737
    "Created: / 14-03-2011 / 21:30:47 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   738
    "Modified: / 21-03-2011 / 15:39:53 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   739
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   740
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   741
testGetIntArray
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   742
    self 
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   743
        shouldnt: [
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   744
            self 
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   745
                invoke: #'getIntArray()[I'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   746
                class: self loadSimpleClassWithManyReferences
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   747
                receiver: self loadSimpleClassWithManyReferences new
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   748
                args: nil.
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   749
        ]
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   750
        raise: Error.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   751
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   752
    "0    aload_0 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   753
     1    getfield 3 [JavaFieldRef (stx.libjava.tests.simpleClasses.SimpleClassWithManyReferences 'values'[Ljava/lang/Object; offs=1)]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   754
     4    iconst_5
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   755
     5    aaload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   756
     6    checkcast 29 [JavaBuiltInClassPointerRef(class:IntegerArray ; name&type: '[I')]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   757
     9    checkcast 29 [JavaBuiltInClassPointerRef(class:IntegerArray ; name&type: '[I')]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   758
     12   areturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   759
    "Created: / 14-03-2011 / 21:33:13 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   760
    "Modified: / 21-03-2011 / 15:40:12 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   761
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   762
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   763
testGetLong
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   764
    self 
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   765
        shouldnt: [
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   766
            self 
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   767
                invoke: #'getLong()J'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   768
                class: self loadSimpleClassWithManyReferences
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   769
                receiver: self loadSimpleClassWithManyReferences new
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   770
                args: nil
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   771
        ]
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   772
        raise: Error.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   773
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   774
    "0    aload_0 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   775
     1    getfield 3 [JavaFieldRef (stx.libjava.tests.simpleClasses.SimpleClassWithManyReferences 'values'[Ljava/lang/Object; offs=1)]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   776
     4    iconst_4
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   777
     5    aaload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   778
     6    checkcast 27 [java.lang.Long]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   779
     9    invokevirtual 28 [JavaMethodRef (java.lang.Long 'longValue'()J)]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   780
         12   lreturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   781
    "Created: / 14-03-2011 / 21:32:14 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   782
    "Modified: / 21-03-2011 / 15:40:30 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   783
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   784
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   785
testGetShort
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   786
    self 
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   787
        shouldnt: [
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   788
            self 
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   789
                invoke: #'getShort()S'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   790
                class: self loadSimpleClassWithManyReferences
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   791
                receiver: self loadSimpleClassWithManyReferences new
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   792
                args: nil
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   793
        ]
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   794
        raise: Error.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   795
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   796
    "0    aload_0 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   797
     1    getfield 3 [JavaFieldRef (stx.libjava.tests.simpleClasses.SimpleClassWithManyReferences 'values'[Ljava/lang/Object; offs=1)]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   798
     4    bipush 6
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   799
     6    aaload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   800
     7    checkcast 14 [java.lang.Short]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   801
     10   invokevirtual 30 [JavaMethodRef (java.lang.Short 'shortValue'()S)]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   802
     13   ireturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   803
    "Created: / 14-03-2011 / 21:33:48 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   804
    "Modified: / 21-03-2011 / 15:40:45 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   805
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   806
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   807
testGetString
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   808
    self 
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   809
        shouldnt: [
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   810
            self 
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   811
                invoke: #'getString()Ljava/lang/String;'
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   812
                class: self loadSimpleClassWithManyReferences
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   813
                receiver: self loadSimpleClassWithManyReferences new
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   814
                args: nil
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   815
        ]
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   816
        raise: Error.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   817
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   818
    "0    aload_0 
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   819
     1    getfield 3 [JavaFieldRef (stx.libjava.tests.simpleClasses.SimpleClassWithManyReferences 'values'[Ljava/lang/Object; offs=1)]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   820
     4    iconst_0
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   821
     5    aaload
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   822
     6    checkcast 22 [java.lang.String]
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   823
     9    areturn"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   824
    "Created: / 14-03-2011 / 21:27:20 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   825
    "Modified: / 21-03-2011 / 15:40:55 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   826
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   827
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   828
testMultiBytePrintString
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   829
<skip>
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   830
    | badClass |
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   831
    badClass := Java classForName: 'java.nio.charset.CharsetDecoder'.
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   832
    self 
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   833
        invoke: #'<init>(Ljava/nio/charset/Charset;FF)V'
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   834
        class: badClass
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   835
        args: #( 21 4 ).
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   836
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   837
    "Created: / 23-03-2011 / 16:58:50 / 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: 2152
diff changeset
   838
    "Modified (format): / 06-07-2012 / 21:57:01 / Jan Vrany <jan.vrany@fit.cvut.cz>"
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   839
    "Modified: / 01-12-2012 / 14:04:58 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   840
!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   841
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   842
testSetBoolean
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   843
    self 
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   844
        shouldnt: [
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   845
            self 
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   846
                invoke: #'setBoolean(I)V'
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   847
                class: self loadSimpleClassWithManyReferences
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   848
                receiver: self loadSimpleClassWithManyReferences new
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   849
                args: nil.
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   850
        ]
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   851
        raise: Error.
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   852
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   853
    "Created: / 22-03-2011 / 12:17:12 / Marcel Hlopko <hlopkmar@fel.cvut.cz>"
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   854
! !
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   855
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   856
!JavaByteCodeDisassemblerTests class methodsFor:'documentation'!
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   857
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   858
version_CVS
2396
fadc6d7a2f5b Updated to rev 009a0df3afce
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2353
diff changeset
   859
    ^ '$Header: /cvs/stx/stx/libjava/JavaByteCodeDisassemblerTests.st,v 1.3 2013-02-25 11:15:31 vrany Exp $'
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   860
!
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   861
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   862
version_HG
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   863
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   864
    ^ '$Changeset: <not expanded> $'
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   865
!
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   866
749
e898eaeff091 Synchronized with CVS repository at:
vranyj1
parents:
diff changeset
   867
version_SVN
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   868
    ^ '§Id§'
2152
1cbdfbcc685c Jan's version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 749
diff changeset
   869
! !
2353
fa7400d022a0 Updated to https://swing.fit.cvut.cz/hg/stx.libjava/rev/31f8b995905e
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 2152
diff changeset
   870