OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <sstream> | 5 #include <sstream> |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #include "src/compiler/operator.h" | 9 #include "src/compiler/operator.h" |
10 #include "test/cctest/cctest.h" | 10 #include "test/cctest/cctest.h" |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 CHECK(!op1a.Equals(&op3)); | 203 CHECK(!op1a.Equals(&op3)); |
204 CHECK(!op1b.Equals(&op3)); | 204 CHECK(!op1b.Equals(&op3)); |
205 CHECK(!op2a.Equals(&op3)); | 205 CHECK(!op2a.Equals(&op3)); |
206 CHECK(!op2b.Equals(&op3)); | 206 CHECK(!op2b.Equals(&op3)); |
207 | 207 |
208 CHECK(!op3.Equals(&op1a)); | 208 CHECK(!op3.Equals(&op1a)); |
209 CHECK(!op3.Equals(&op1b)); | 209 CHECK(!op3.Equals(&op1b)); |
210 CHECK(!op3.Equals(&op2a)); | 210 CHECK(!op3.Equals(&op2a)); |
211 CHECK(!op3.Equals(&op2b)); | 211 CHECK(!op3.Equals(&op2b)); |
212 | 212 |
213 Operator1<double> op4a(24, Operator::kNoProperties, 0, 0, "Bashful", NaN); | 213 Operator1<double> op4a(24, Operator::kNoProperties, 0, 0, "Bashful", 1.0); |
214 Operator1<double> op4b(24, Operator::kNoProperties, 0, 0, "Bashful", NaN); | 214 Operator1<double> op4b(24, Operator::kNoProperties, 0, 0, "Bashful", 1.0); |
215 | 215 |
216 CHECK(op4a.Equals(&op4a)); | 216 CHECK(op4a.Equals(&op4a)); |
217 CHECK(op4a.Equals(&op4b)); | 217 CHECK(op4a.Equals(&op4b)); |
218 CHECK(op4b.Equals(&op4a)); | 218 CHECK(op4b.Equals(&op4a)); |
219 CHECK(op4b.Equals(&op4b)); | 219 CHECK(op4b.Equals(&op4b)); |
220 | 220 |
221 CHECK(!op3.Equals(&op4a)); | 221 CHECK(!op3.Equals(&op4a)); |
222 CHECK(!op3.Equals(&op4b)); | 222 CHECK(!op3.Equals(&op4b)); |
223 CHECK(!op3.Equals(&op4a)); | 223 CHECK(!op3.Equals(&op4a)); |
224 CHECK(!op3.Equals(&op4b)); | 224 CHECK(!op3.Equals(&op4b)); |
225 } | 225 } |
OLD | NEW |