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
24Tests whether bytecode codegen properly handles temporaries.
25
26On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
27
28
29PASS a is true
30PASS b is false
31PASS assign_test1() is 'PASS'
32PASS assign_test2() is 'PASS'
33PASS assign_test3() is 'PASS'
34PASS testObject4.test is 'PASS'
35PASS testObject5.test is 'PASS'
36PASS assign_test6() is 'PASS'
37PASS assign_test7() is 'PASS'
38PASS assign_test8() is 'PASS'
39PASS assign_test9() is 'PASS'
40PASS testObject10.test is 'PASS'
41PASS assign_test11() is 'PASS'
42PASS assign_test12() is 'PASS'
43PASS assign_test13() is 'PASS'
44PASS assign_test14() is 'PASS'
45PASS assign_test15() is 'PASS'
46PASS assign_test16() is 2
47PASS a17 is 3
48PASS assign_test18() is 3
49PASS a19.b is 3
50PASS assign_test20() is 3
51PASS a21['b'] is 3
52PASS assign_test22() is 3
53PASS assign_test23() is 3
54PASS assign_test24() is 3
55PASS assign_test25() is 3
56PASS assign_test26() is 3
57PASS assign_test27() is 3
58PASS assign_test28() is 3
59PASS assign_test29() is 3
60PASS assign_test30() is 'fooNaN'
61PASS assign_test31() is 'PASS'
62PASS bracket_test1() is -1
63PASS bracket_test2() is 1
64PASS bracket_test3() is 0
65PASS bracket_test4() is 0
66PASS bracket_test5() is 1
67PASS bracket_test6() is 1
68PASS mult_test1() is 2
69PASS mult_test2() is 2
70PASS mult_test3() is 2
71PASS div_test1() is 0.5
72PASS div_test2() is 0.5
73PASS div_test3() is 0.5
74PASS mod_test1() is 1
75PASS mod_test2() is 1
76PASS mod_test3() is 1
77PASS add_test1() is 3
78PASS add_test2() is 3
79PASS add_test3() is 3
80PASS sub_test1() is -1
81PASS sub_test2() is -1
82PASS sub_test3() is -1
83PASS lshift_test1() is 4
84PASS lshift_test2() is 4
85PASS lshift_test3() is 4
86PASS rshift_test1() is 1
87PASS rshift_test2() is 1
88PASS rshift_test3() is 1
89PASS urshift_test1() is 1
90PASS urshift_test2() is 1
91PASS urshift_test3() is 1
92PASS less_test1() is true
93PASS less_test2() is true
94PASS less_test3() is true
95PASS greater_test1() is true
96PASS greater_test2() is true
97PASS greater_test3() is true
98PASS lesseq_test1() is true
99PASS lesseq_test2() is true
100PASS lesseq_test3() is true
101PASS greatereq_test1() is true
102PASS greatereq_test2() is true
103PASS greatereq_test3() is true
104PASS instanceof_test1() is true
105PASS instanceof_test2() is true
106PASS instanceof_test3() is true
107PASS in_test1() is true
108PASS in_test2() is true
109PASS in_test3() is true
110PASS eq_test1() is false
111PASS eq_test2() is false
112PASS eq_test3() is false
113PASS neq_test1() is true
114PASS neq_test2() is true
115PASS neq_test3() is true
116PASS stricteq_test1() is false
117PASS stricteq_test2() is false
118PASS stricteq_test3() is false
119PASS nstricteq_test1() is true
120PASS nstricteq_test2() is true
121PASS nstricteq_test3() is true
122PASS bitand_test1() is 0
123PASS bitand_test2() is 0
124PASS bitand_test3() is 0
125PASS bitor_test1() is 3
126PASS bitor_test2() is 3
127PASS bitor_test3() is 3
128PASS bitxor_test1() is 3
129PASS bitxor_test2() is 3
130PASS bitxor_test3() is 3
131PASS switch_test1() is true
132PASS switch_test2() is true
133PASS switch_test3() is true
134PASS construct_test() is true
135PASS [(0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), (0/0), ].length is 64
136PASS successfullyParsed is true
137
138TEST COMPLETE
139
140