test/hotspot/jtreg/compiler/escapeAnalysis/Test6689060.java
author erikj
Tue, 12 Sep 2017 19:03:39 +0200
changeset 47216 71c04702a3d5
parent 40059 hotspot/test/compiler/escapeAnalysis/Test6689060.java@c2304140ed64
child 49483 d374b1634589
permissions -rw-r--r--
8187443: Forest Consolidation: Move files to unified layout Reviewed-by: darcy, ihse
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
     1
/*
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1418
diff changeset
     2
 * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
961
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
     4
 *
961
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
     7
 * published by the Free Software Foundation.
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
     8
 *
961
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
    13
 * accompanied this code).
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    14
 *
961
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
7fb3b13d4205 6726999: nsk/stress/jck12a/jck12a010 assert(n != null,"Bad immediate dominator info.")
kvn
parents: 589
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    18
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1418
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1418
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 1418
diff changeset
    21
 * questions.
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    22
 */
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    23
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    24
/*
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    25
 * @test
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    26
 * @bug 6689060
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    27
 * @summary Escape Analysis does not work with Compressed Oops
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    28
 *
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    29
 * @run main/othervm -Xbatch -XX:+AggressiveOpts
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    30
 *      -XX:CompileCommand=exclude,compiler.escapeAnalysis.Test6689060::dummy
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    31
 *      compiler.escapeAnalysis.Test6689060
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    32
 */
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    33
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    34
package compiler.escapeAnalysis;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    35
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    36
import java.lang.reflect.Array;
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    37
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    38
public class Test6689060 {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    39
    static class Point {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    40
        int x;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    41
        int y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    42
        Point next;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    43
        int ax[];
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    44
        int ay[];
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    45
        Point pax[];
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    46
        Point pay[];
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    47
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    48
        public Point getNext() {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    49
            return next;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    50
        }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    51
    }
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    52
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    53
    void dummy() {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    54
        // Empty method to verify correctness of DebugInfo.
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    55
        // Use -XX:CompileCommand=exclude,Test.dummy
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    56
    }
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    57
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    58
    int ival(int i) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    59
        return i * 2;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    60
    }
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    61
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    62
    int test80(int y, int l, int i) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    63
        Point p = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    64
        p.ax = new int[2];
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    65
        p.ay = new int[2];
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    66
        int x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    67
        p.ax[0] = x;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    68
        p.ay[1] = 3 * x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    69
        dummy();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    70
        return p.ax[0] * p.ay[1];
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    71
    }
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    72
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    73
    int test81(int y, int l, int i) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    74
        Point p = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    75
        p.ax = new int[2];
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    76
        p.ay = new int[2];
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    77
        int x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    78
        p.ax[0] = x;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    79
        p.ay[1] = 3 * x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    80
        dummy();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    81
        return p.ax[0] * p.ay[1];
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    82
    }
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    83
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    84
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    85
    int test44(int y) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    86
        Point p1 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    87
        p1.x = ival(3);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    88
        dummy();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    89
        p1.y = 3 * p1.x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    90
        return p1.y;
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    91
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
    92
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    93
    int test43(int y) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    94
        Point p1 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    95
        if ((y & 1) == 1) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    96
            p1.x = ival(3);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    97
        } else {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    98
            p1.x = ival(5);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
    99
        }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   100
        dummy();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   101
        p1.y = 3 * p1.x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   102
        return p1.y;
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   103
    }
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   104
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   105
    int test42(int y) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   106
        Point p1 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   107
        p1.x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   108
        for (int i = 0; i < y; i++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   109
            if ((i & 1) == 1) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   110
                p1.x += 4;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   111
            }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   112
        }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   113
        p1.y = 3 * y + p1.x;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   114
        return p1.y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   115
    }
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   116
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   117
    int test40(int y) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   118
        Point p1 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   119
        if ((y & 1) == 1) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   120
            p1.x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   121
        } else {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   122
            p1.x = 5;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   123
        }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   124
        p1.y = 3 * p1.x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   125
        return p1.y;
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   126
    }
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   127
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   128
    int test41(int y) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   129
        Point p1 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   130
        if ((y & 1) == 1) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   131
            p1.x += 4;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   132
        } else {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   133
            p1.x += 5;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   134
        }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   135
        p1.y = 3 * p1.x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   136
        return p1.y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   137
    }
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   138
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   139
    Point test00(int y) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   140
        int x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   141
        Point p = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   142
        p.x = x;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   143
        p.y = 3 * x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   144
        return p;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   145
    }
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   146
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   147
    Point test01(int y) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   148
        int x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   149
        Point p = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   150
        p.x = x;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   151
        p.y = 3 * x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   152
        dummy();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   153
        return p;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   154
    }
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   155
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   156
    Point test02(int y) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   157
        int x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   158
        Point p1 = null;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   159
        for (int i = 0; i < y; i++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   160
            Point p2 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   161
            p2.x = x;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   162
            p2.y = 3 * y + x;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   163
            p2.next = p1;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   164
            p1 = p2;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   165
        }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   166
        return p1;
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   167
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   168
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   169
    Point test03(int y) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   170
        int x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   171
        Point p1 = null;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   172
        for (int i = 0; i < y; i++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   173
            Point p2 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   174
            p2.x = x;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   175
            p2.y = 3 * y + x;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   176
            p2.next = p1;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   177
            p1 = p2;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   178
        }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   179
        dummy();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   180
        return p1;
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   181
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   182
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   183
    Point test04(int y) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   184
        int x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   185
        Point p1 = null;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   186
        for (int i = 0; i < y; i++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   187
            Point p2 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   188
            p2.x = x;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   189
            p2.y = 3 * y + x;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   190
            p2.next = p1;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   191
            dummy();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   192
            p1 = p2;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   193
        }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   194
        return p1;
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   195
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   196
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   197
    int test05(int y) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   198
        int x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   199
        Point p1 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   200
        for (int i = 0; i < y; i++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   201
            Point p2 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   202
            p2.x = x;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   203
            p2.y = 3 * y + x;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   204
            p1.next = p2;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   205
            p1 = p2;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   206
        }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   207
        return p1.y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   208
    }
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   209
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   210
    int test0(int y) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   211
        int x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   212
        Point p = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   213
        p.x = x;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   214
        p.y = 3 * x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   215
        dummy();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   216
        return p.x * p.y;
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   217
    }
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   218
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   219
    int test1(int y) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   220
        Point p = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   221
        if ((y & 1) == 1) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   222
            p = new Point(); // Kill previous
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   223
        }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   224
        int x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   225
        p.x = x;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   226
        p.y = 3 * x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   227
        dummy();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   228
        return p.x * p.y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   229
    }
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   230
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   231
    int test2(int y) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   232
        Point p1 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   233
        Point p2 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   234
        p1.x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   235
        p2.x = 4;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   236
        p1.y = 3 * p2.x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   237
        p2.y = 3 * p1.x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   238
        dummy();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   239
        return p1.y * p2.y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   240
    }
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   241
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   242
    int test3(int y, Point p1) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   243
        Point p2 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   244
        p1.x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   245
        p2.x = 4;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   246
        p1.y = 3 * p2.x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   247
        p2.y = 3 * p1.x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   248
        dummy();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   249
        return p1.y * p2.y;
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   250
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   251
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   252
    int test4(int y) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   253
        Point p1 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   254
        Point p2 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   255
        if ((y & 1) == 1) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   256
            p1.x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   257
            p2.x = 4;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   258
        } else {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   259
            p1.x = 5;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   260
            p2.x = 6;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   261
        }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   262
        p1.y = 3 * p2.x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   263
        p2.y = 3 * p1.x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   264
        dummy();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   265
        return p1.y * p2.y;
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   266
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   267
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   268
    int test5(int y, Point p1) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   269
        Point p2 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   270
        if ((y & 1) == 1) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   271
            p1.x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   272
            p2.x = 4;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   273
        } else {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   274
            p1.x = 5;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   275
            p2.x = 6;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   276
        }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   277
        p1.y = 3 * p2.x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   278
        p2.y = 3 * p1.x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   279
        dummy();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   280
        return p1.y * p2.y;
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   281
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   282
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   283
    int test6(int y) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   284
        Point p1 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   285
        Point p2 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   286
        p1.next = p2;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   287
        if ((y & 1) == 1) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   288
            p1.x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   289
            p1.getNext().x = 4;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   290
        } else {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   291
            p1.x = 5;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   292
            p1.getNext().x = 6;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   293
        }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   294
        p1.y = 3 * p2.x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   295
        p2.y = 3 * p1.x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   296
        dummy();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   297
        return p1.y * p2.y;
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   298
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   299
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   300
    int test7(int y, Point p1) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   301
        Point p2 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   302
        p1.next = p2;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   303
        if ((y & 1) == 1) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   304
            p1.x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   305
            p1.getNext().x = 4;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   306
        } else {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   307
            p1.x = 5;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   308
            p1.getNext().x = 6;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   309
        }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   310
        p1.y = 3 * p2.x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   311
        p2.y = 3 * p1.x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   312
        dummy();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   313
        return p1.y * p2.y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   314
    }
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   315
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   316
    int test8(int y, int l, int i) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   317
        Point p = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   318
        p.ax = new int[l];
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   319
        p.ay = new int[l];
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   320
        int x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   321
        p.ax[i] = x;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   322
        p.ay[i] = 3 * x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   323
        dummy();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   324
        return p.ax[i] * p.ay[i];
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   325
    }
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   326
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   327
    int test9(int y, int l, int i) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   328
        Point p = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   329
        p.pax = new Point[l];
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   330
        p.pay = new Point[l];
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   331
        p.pax[i] = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   332
        p.pay[i] = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   333
        p.pax[i].x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   334
        p.pay[i].x = 4;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   335
        p.pax[i].y = 3 * p.pay[i].x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   336
        p.pay[i].y = 3 * p.pax[i].x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   337
        dummy();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   338
        return p.pax[i].y * p.pay[i].y;
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   339
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   340
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   341
    int test10(int y, int l, int i, Class cls) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   342
        Point p = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   343
        try {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   344
            p.pax = (Point[]) Array.newInstance(cls, l);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   345
            p.pax[i] = (Point) cls.newInstance();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   346
        } catch (java.lang.InstantiationException ex) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   347
            return 0;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   348
        } catch (java.lang.IllegalAccessException ex) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   349
            return 0;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   350
        }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   351
        p.pax[i].x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   352
        p.pax[i].y = 3 * p.pax[i].x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   353
        dummy();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   354
        return p.pax[i].x * p.pax[i].y;
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   355
    }
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   356
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   357
    int test11(int y) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   358
        Point p1 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   359
        Point p2 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   360
        p1.next = p2;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   361
        if ((y & 1) == 1) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   362
            p1.x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   363
            p1.next.x = 4;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   364
        } else {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   365
            p1.x = 5;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   366
            p1.next.x = 6;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   367
        }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   368
        p1.y = 3 * p1.next.x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   369
        p1.next.y = 3 * p1.x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   370
        dummy();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   371
        return p1.y * p1.next.y;
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   372
    }
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   373
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   374
    int test12(int y) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   375
        Point p1 = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   376
        p1.next = p1;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   377
        if ((y & 1) == 1) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   378
            p1.x = 3;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   379
            p1.next.x = 4;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   380
        } else {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   381
            p1.x = 5;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   382
            p1.next.x = 6;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   383
        }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   384
        p1.y = 3 * p1.next.x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   385
        p1.next.y = 3 * p1.x + y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   386
        dummy();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   387
        return p1.y * p1.next.y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   388
    }
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   389
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   390
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   391
    public static void main(String args[]) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   392
        Test6689060 tsr = new Test6689060();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   393
        Point p = new Point();
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   394
        Point ptmp = p;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   395
        Class cls = Point.class;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   396
        int y = 0;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   397
        for (int i = 0; i < 10000; i++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   398
            ptmp.next = tsr.test00(1);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   399
            ptmp.next = tsr.test01(1);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   400
            ptmp.next = tsr.test02(1);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   401
            ptmp.next = tsr.test03(1);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   402
            ptmp.next = tsr.test04(1);
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   403
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   404
            y = tsr.test05(1);
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   405
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   406
            y = tsr.test80(y, 1, 0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   407
            y = tsr.test81(y, 1, 0);
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   408
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   409
            y = tsr.test44(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   410
            y = tsr.test43(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   411
            y = tsr.test42(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   412
            y = tsr.test40(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   413
            y = tsr.test41(y);
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   414
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   415
            y = tsr.test0(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   416
            y = tsr.test1(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   417
            y = tsr.test2(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   418
            y = tsr.test3(y, p);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   419
            y = tsr.test4(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   420
            y = tsr.test5(y, p);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   421
            y = tsr.test6(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   422
            y = tsr.test7(y, p);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   423
            y = tsr.test8(y, 1, 0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   424
            y = tsr.test9(y, 1, 0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   425
            y = tsr.test10(y, 1, 0, cls);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   426
            y = tsr.test11(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   427
            y = tsr.test12(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   428
        }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   429
        for (int i = 0; i < 10000; i++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   430
            ptmp.next = tsr.test00(1);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   431
            ptmp.next = tsr.test01(1);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   432
            ptmp.next = tsr.test02(1);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   433
            ptmp.next = tsr.test03(1);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   434
            ptmp.next = tsr.test04(1);
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   435
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   436
            y = tsr.test05(1);
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   437
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   438
            y = tsr.test80(y, 1, 0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   439
            y = tsr.test81(y, 1, 0);
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   440
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   441
            y = tsr.test44(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   442
            y = tsr.test43(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   443
            y = tsr.test42(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   444
            y = tsr.test40(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   445
            y = tsr.test41(y);
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   446
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   447
            y = tsr.test0(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   448
            y = tsr.test1(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   449
            y = tsr.test2(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   450
            y = tsr.test3(y, p);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   451
            y = tsr.test4(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   452
            y = tsr.test5(y, p);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   453
            y = tsr.test6(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   454
            y = tsr.test7(y, p);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   455
            y = tsr.test8(y, 1, 0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   456
            y = tsr.test9(y, 1, 0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   457
            y = tsr.test10(y, 1, 0, cls);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   458
            y = tsr.test11(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   459
            y = tsr.test12(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   460
        }
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   461
        for (int i = 0; i < 10000; i++) {
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   462
            ptmp.next = tsr.test00(1);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   463
            ptmp.next = tsr.test01(1);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   464
            ptmp.next = tsr.test02(1);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   465
            ptmp.next = tsr.test03(1);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   466
            ptmp.next = tsr.test04(1);
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   467
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   468
            y = tsr.test05(1);
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   469
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   470
            y = tsr.test80(y, 1, 0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   471
            y = tsr.test81(y, 1, 0);
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   472
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   473
            y = tsr.test44(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   474
            y = tsr.test43(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   475
            y = tsr.test42(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   476
            y = tsr.test40(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   477
            y = tsr.test41(y);
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   478
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   479
            y = tsr.test0(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   480
            y = tsr.test1(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   481
            y = tsr.test2(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   482
            y = tsr.test3(y, p);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   483
            y = tsr.test4(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   484
            y = tsr.test5(y, p);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   485
            y = tsr.test6(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   486
            y = tsr.test7(y, p);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   487
            y = tsr.test8(y, 1, 0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   488
            y = tsr.test9(y, 1, 0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   489
            y = tsr.test10(y, 1, 0, cls);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   490
            y = tsr.test11(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   491
            y = tsr.test12(y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   492
        }
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   493
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   494
        int z = 0;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   495
        y = tsr.test80(0, 1, 0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   496
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   497
        System.out.println("After 'test80' y=" + y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   498
        y = tsr.test81(0, 1, 0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   499
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   500
        System.out.println("After 'test81' y=" + y);
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   501
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   502
        y = tsr.test44(0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   503
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   504
        System.out.println("After 'test44' y=" + y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   505
        y = tsr.test43(0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   506
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   507
        System.out.println("After 'test43' y=" + y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   508
        y = tsr.test42(0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   509
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   510
        System.out.println("After 'test42' y=" + y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   511
        y = tsr.test40(0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   512
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   513
        System.out.println("After 'test40' y=" + y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   514
        y = tsr.test41(0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   515
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   516
        System.out.println("After 'test41' y=" + y);
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   517
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   518
        ptmp.next = tsr.test00(1);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   519
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   520
        System.out.println("After 'test00' p.y=" + ptmp.next.y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   521
        ptmp.next = tsr.test01(1);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   522
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   523
        System.out.println("After 'test01' p.y=" + ptmp.next.y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   524
        ptmp.next = tsr.test02(1);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   525
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   526
        System.out.println("After 'test02' p.y=" + ptmp.next.y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   527
        ptmp.next = tsr.test03(1);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   528
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   529
        System.out.println("After 'test03' p.y=" + ptmp.next.y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   530
        ptmp.next = tsr.test04(1);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   531
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   532
        System.out.println("After 'test04' p.y=" + ptmp.next.y);
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   533
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   534
        y = tsr.test05(1);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   535
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   536
        System.out.println("After 'test05' y=" + y);
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   537
40059
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   538
        y = tsr.test0(0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   539
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   540
        System.out.println("After 'test0' y=" + y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   541
        y = tsr.test1(0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   542
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   543
        System.out.println("After 'test1' y=" + y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   544
        y = tsr.test2(0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   545
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   546
        System.out.println("After 'test2' y=" + y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   547
        y = tsr.test3(0, new Point());
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   548
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   549
        System.out.println("After 'test3' y=" + y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   550
        y = tsr.test4(0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   551
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   552
        System.out.println("After 'test4' y=" + y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   553
        y = tsr.test5(0, new Point());
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   554
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   555
        System.out.println("After 'test5' y=" + y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   556
        y = tsr.test6(0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   557
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   558
        System.out.println("After 'test6' y=" + y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   559
        y = tsr.test7(0, new Point());
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   560
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   561
        System.out.println("After 'test7' y=" + y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   562
        y = tsr.test8(0, 1, 0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   563
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   564
        System.out.println("After 'test8' y=" + y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   565
        y = tsr.test9(0, 1, 0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   566
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   567
        System.out.println("After 'test9' y=" + y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   568
        y = tsr.test10(0, 1, 0, cls);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   569
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   570
        System.out.println("After 'test10' y=" + y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   571
        y = tsr.test11(0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   572
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   573
        System.out.println("After 'test11' y=" + y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   574
        y = tsr.test12(0);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   575
        z += y;
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   576
        System.out.println("After 'test12' y=" + y);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   577
        System.out.println("Sum of y =" + z);
c2304140ed64 8132919: Put compiler tests in packages
tpivovarova
parents: 27699
diff changeset
   578
    }
589
a44a1e70a3e4 6695810: null oop passed to encode_heap_oop_not_null
kvn
parents:
diff changeset
   579
}