1# Copyright 2013 the V8 project authors. All rights reserved.
2# Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions
6# are met:
7# 1.  Redistributions of source code must retain the above copyright
8#     notice, this list of conditions and the following disclaimer.
9# 2.  Redistributions in binary form must reproduce the above copyright
10#     notice, this list of conditions and the following disclaimer in the
11#     documentation and/or other materials provided with the distribution.
12#
13# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
14# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
17# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
20# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
22# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23
24This tests that a skipped conversion of uint32 to number does not confuse OSR exit into thinking that the conversion is dead.
25
26On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
27
28
29PASS foo(i, 1, o) is 42
30PASS foo(i, 1, o) is 42
31PASS foo(i, 1, o) is 43
32PASS foo(i, 1, o) is 43
33PASS foo(i, 1, o) is 44
34PASS foo(i, 1, o) is 44
35PASS foo(i, 1, o) is 45
36PASS foo(i, 1, o) is 45
37PASS foo(i, 1, o) is 46
38PASS foo(i, 1, o) is 46
39PASS foo(i, 1, o) is 47
40PASS foo(i, 1, o) is 47
41PASS foo(i, 1, o) is 48
42PASS foo(i, 1, o) is 48
43PASS foo(i, 1, o) is 49
44PASS foo(i, 1, o) is 49
45PASS foo(i, 1, o) is 50
46PASS foo(i, 1, o) is 50
47PASS foo(i, 1, o) is 51
48PASS foo(i, 1, o) is 51
49PASS foo(i, 1, o) is 52
50PASS foo(i, 1, o) is 52
51PASS foo(i, 1, o) is 53
52PASS foo(i, 1, o) is 53
53PASS foo(i, 1, o) is 54
54PASS foo(i, 1, o) is 54
55PASS foo(i, 1, o) is 55
56PASS foo(i, 1, o) is 55
57PASS foo(i, 1, o) is 56
58PASS foo(i, 1, o) is 56
59PASS foo(i, 1, o) is 57
60PASS foo(i, 1, o) is 57
61PASS foo(i, 1, o) is 58
62PASS foo(i, 1, o) is 58
63PASS foo(i, 1, o) is 59
64PASS foo(i, 1, o) is 59
65PASS foo(i, 1, o) is 60
66PASS foo(i, 1, o) is 60
67PASS foo(i, 1, o) is 61
68PASS foo(i, 1, o) is 61
69PASS foo(i, 1, o) is 62
70PASS foo(i, 1, o) is 62
71PASS foo(i, 1, o) is 63
72PASS foo(i, 1, o) is 63
73PASS foo(i, 1, o) is 64
74PASS foo(i, 1, o) is 64
75PASS foo(i, 1, o) is 65
76PASS foo(i, 1, o) is 65
77PASS foo(i, 1, o) is 66
78PASS foo(i, 1, o) is 66
79PASS foo(i, 1, o) is 67
80PASS foo(i, 1, o) is 67
81PASS foo(i, 1, o) is 68
82PASS foo(i, 1, o) is 68
83PASS foo(i, 1, o) is 69
84PASS foo(i, 1, o) is 69
85PASS foo(i, 1, o) is 70
86PASS foo(i, 1, o) is 70
87PASS foo(i, 1, o) is 71
88PASS foo(i, 1, o) is 71
89PASS foo(i, 1, o) is 72
90PASS foo(i, 1, o) is 72
91PASS foo(i, 1, o) is 73
92PASS foo(i, 1, o) is 73
93PASS foo(i, 1, o) is 74
94PASS foo(i, 1, o) is 74
95PASS foo(i, 1, o) is 75
96PASS foo(i, 1, o) is 75
97PASS foo(i, 1, o) is 76
98PASS foo(i, 1, o) is 76
99PASS foo(i, 1, o) is 77
100PASS foo(i, 1, o) is 77
101PASS foo(i, 1, o) is 78
102PASS foo(i, 1, o) is 78
103PASS foo(i, 1, o) is 79
104PASS foo(i, 1, o) is 79
105PASS foo(i, 1, o) is 80
106PASS foo(i, 1, o) is 80
107PASS foo(i, 1, o) is 81
108PASS foo(i, 1, o) is 81
109PASS foo(i, 1, o) is 82
110PASS foo(i, 1, o) is 82
111PASS foo(i, 1, o) is 83
112PASS foo(i, 1, o) is 83
113PASS foo(i, 1, o) is 84
114PASS foo(i, 1, o) is 84
115PASS foo(i, 1, o) is 85
116PASS foo(i, 1, o) is 85
117PASS foo(i, 1, o) is 86
118PASS foo(i, 1, o) is 86
119PASS foo(i, 1, o) is 87
120PASS foo(i, 1, o) is 87
121PASS foo(i, 1, o) is 88
122PASS foo(i, 1, o) is 88
123PASS foo(i, 1, o) is 89
124PASS foo(i, 1, o) is 89
125PASS foo(i, 1, o) is 90
126PASS foo(i, 1, o) is 90
127PASS foo(i, 1, o) is 91
128PASS foo(i, 1, o) is 91
129PASS foo(i, 1, o) is 92
130PASS foo(i, 1, o) is 92
131PASS foo(i, 1, o) is 93
132PASS foo(i, 1, o) is 93
133PASS foo(i, 1, o) is 94
134PASS foo(i, 1, o) is 94
135PASS foo(i, 1, o) is 95
136PASS foo(i, 1, o) is 95
137PASS foo(i, 1, o) is 96
138PASS foo(i, 1, o) is 96
139PASS foo(i, 1, o) is 97
140PASS foo(i, 1, o) is 97
141PASS foo(i, 1, o) is 98
142PASS foo(i, 1, o) is 98
143PASS foo(i, 1, o) is 99
144PASS foo(i, 1, o) is 99
145PASS foo(i, 1, o) is 100
146PASS foo(i, 1, o) is 100
147PASS foo(i, 1, o) is 101
148PASS foo(i, 1, o) is 101
149PASS foo(i, 1, o) is 102
150PASS foo(i, 1, o) is 102
151PASS foo(i, 1, o) is 103
152PASS foo(i, 1, o) is 103
153PASS foo(i, 1, o) is 104
154PASS foo(i, 1, o) is 104
155PASS foo(i, 1, o) is 105
156PASS foo(i, 1, o) is 105
157PASS foo(i, 1, o) is 106
158PASS foo(i, 1, o) is 106
159PASS foo(i, 1, o) is 107
160PASS foo(i, 1, o) is 107
161PASS foo(i, 1, o) is 108
162PASS foo(i, 1, o) is 108
163PASS foo(i, 1, o) is 109
164PASS foo(i, 1, o) is 109
165PASS foo(i, 1, o) is 110
166PASS foo(i, 1, o) is 110
167PASS foo(i, 1, o) is 111
168PASS foo(i, 1, o) is 111
169PASS foo(i, 1, o) is 112
170PASS foo(i, 1, o) is 112
171PASS foo(i, 1, o) is 113
172PASS foo(i, 1, o) is 113
173PASS foo(i, 1, o) is 114
174PASS foo(i, 1, o) is 114
175PASS foo(i, 1, o) is 115
176PASS foo(i, 1, o) is 115
177PASS foo(i, 1, o) is 116
178PASS foo(i, 1, o) is 116
179PASS foo(i, 1, o) is 118
180PASS foo(i, 1, o) is 118
181PASS foo(i, 1, o) is 119
182PASS foo(i, 1, o) is 119
183PASS foo(i, 1, o) is 120
184PASS foo(i, 1, o) is 120
185PASS foo(i, 1, o) is 121
186PASS foo(i, 1, o) is 121
187PASS foo(i, 1, o) is 122
188PASS foo(i, 1, o) is 122
189PASS foo(i, 1, o) is 123
190PASS foo(i, 1, o) is 123
191PASS foo(i, 1, o) is 124
192PASS foo(i, 1, o) is 124
193PASS foo(i, 1, o) is 125
194PASS foo(i, 1, o) is 125
195PASS foo(i, 1, o) is 126
196PASS foo(i, 1, o) is 126
197PASS foo(i, 1, o) is 127
198PASS foo(i, 1, o) is 127
199PASS foo(i, 1, o) is 128
200PASS foo(i, 1, o) is 128
201PASS foo(i, 1, o) is 129
202PASS foo(i, 1, o) is 129
203PASS foo(i, 1, o) is 130
204PASS foo(i, 1, o) is 130
205PASS foo(i, 1, o) is 131
206PASS foo(i, 1, o) is 131
207PASS foo(i, 1, o) is 132
208PASS foo(i, 1, o) is 132
209PASS foo(i, 1, o) is 133
210PASS foo(i, 1, o) is 133
211PASS foo(i, 1, o) is 134
212PASS foo(i, 1, o) is 134
213PASS foo(i, 1, o) is 135
214PASS foo(i, 1, o) is 135
215PASS foo(i, 1, o) is 136
216PASS foo(i, 1, o) is 136
217PASS foo(i, 1, o) is 137
218PASS foo(i, 1, o) is 137
219PASS foo(i, 1, o) is 138
220PASS foo(i, 1, o) is 138
221PASS foo(i, 1, o) is 139
222PASS foo(i, 1, o) is 139
223PASS foo(i, 1, o) is 140
224PASS foo(i, 1, o) is 140
225PASS foo(i, 1, o) is 141
226PASS foo(i, 1, o) is 141
227PASS foo(i, 1, o) is 142
228PASS foo(i, 1, o) is 142
229PASS successfullyParsed is true
230
231TEST COMPLETE
232
233