dfg-compare-final-object-to-final-object-or-other-when-proven-final-object-expected.txt 7.85 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
# Copyright 2013 the V8 project authors. All rights reserved.
# Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1.  Redistributions of source code must retain the above copyright
#     notice, this list of conditions and the following disclaimer.
# 2.  Redistributions in binary form must reproduce the above copyright
#     notice, this list of conditions and the following disclaimer in the
#     documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Tests that the CompareEq optimization for the case where one side is predicted final object and the other side is predicted either final object or other (i.e. null or undefined) doesn't assert when the other side is also proven final object.

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


29
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
30
PASS foo(o, o) is [42, true]
31
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
32
PASS foo(o, o) is [42, true]
33
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
34
PASS foo(o, o) is [42, true]
35
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
36
PASS foo(o, o) is [42, true]
37
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
38
PASS foo(o, o) is [42, true]
39
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
40
PASS foo(o, o) is [42, true]
41
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
42
PASS foo(o, o) is [42, true]
43
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
44
PASS foo(o, o) is [42, true]
45
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
46
PASS foo(o, o) is [42, true]
47
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
48
PASS foo(o, o) is [42, true]
49
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
50
PASS foo(o, o) is [42, true]
51
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
52
PASS foo(o, o) is [42, true]
53
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
54
PASS foo(o, o) is [42, true]
55
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
56
PASS foo(o, o) is [42, true]
57
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
58
PASS foo(o, o) is [42, true]
59
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
60
PASS foo(o, o) is [42, true]
61
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
62
PASS foo(o, o) is [42, true]
63
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
64
PASS foo(o, o) is [42, true]
65
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
66
PASS foo(o, o) is [42, true]
67
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
68
PASS foo(o, o) is [42, true]
69
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
70
PASS foo(o, o) is [42, true]
71
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
72
PASS foo(o, o) is [42, true]
73
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
74
PASS foo(o, o) is [42, true]
75
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
76
PASS foo(o, o) is [42, true]
77
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
78
PASS foo(o, o) is [42, true]
79
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
80
PASS foo(o, o) is [42, true]
81
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
82
PASS foo(o, o) is [42, true]
83
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
84
PASS foo(o, o) is [42, true]
85
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
86
PASS foo(o, o) is [42, true]
87
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
88
PASS foo(o, o) is [42, true]
89
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
90
PASS foo(o, o) is [42, true]
91
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
92
PASS foo(o, o) is [42, true]
93
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
94
PASS foo(o, o) is [42, true]
95
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
96
PASS foo(o, o) is [42, true]
97
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
98
PASS foo(o, o) is [42, true]
99
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
100
PASS foo(o, o) is [42, true]
101
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
102
PASS foo(o, o) is [42, true]
103
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
104
PASS foo(o, o) is [42, true]
105
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
106
PASS foo(o, o) is [42, true]
107
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
108
PASS foo(o, o) is [42, true]
109
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
110
PASS foo(o, o) is [42, true]
111
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
112
PASS foo(o, o) is [42, true]
113
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
114
PASS foo(o, o) is [42, true]
115
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
116
PASS foo(o, o) is [42, true]
117
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
118
PASS foo(o, o) is [42, true]
119
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
120
PASS foo(o, o) is [42, true]
121
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
122
PASS foo(o, o) is [42, true]
123
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
124
PASS foo(o, o) is [42, true]
125
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
126
PASS foo(o, o) is [42, true]
127
PASS foo({f:42}, null) threw exception TypeError: Cannot read properties of null (reading 'f').
128 129 130 131 132
PASS foo(o, o) is [42, true]
PASS successfullyParsed is true

TEST COMPLETE