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