| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 // TODO(jochen): Remove this after the setting is turned on globally. | 5 // TODO(jochen): Remove this after the setting is turned on globally. |
| 6 #define V8_IMMINENT_DEPRECATION_WARNINGS | 6 #define V8_IMMINENT_DEPRECATION_WARNINGS |
| 7 | 7 |
| 8 #include "src/v8.h" | |
| 9 | |
| 10 #include "test/cctest/cctest.h" | 8 #include "test/cctest/cctest.h" |
| 11 #include "test/cctest/compiler/codegen-tester.h" | 9 #include "test/cctest/compiler/codegen-tester.h" |
| 12 #include "test/cctest/compiler/value-helper.h" | 10 #include "test/cctest/compiler/value-helper.h" |
| 13 | 11 |
| 14 using namespace v8::internal; | 12 using namespace v8::internal; |
| 15 using namespace v8::internal::compiler; | 13 using namespace v8::internal::compiler; |
| 16 | 14 |
| 17 typedef RawMachineAssembler::Label MLabel; | 15 typedef RawMachineAssembler::Label MLabel; |
| 18 | 16 |
| 19 static IrOpcode::Value int32cmp_opcodes[] = { | 17 static IrOpcode::Value int32cmp_opcodes[] = { |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 invert ? (cmp.Float64Compare(input_a, input_b) ? ne_constant | 451 invert ? (cmp.Float64Compare(input_a, input_b) ? ne_constant |
| 454 : eq_constant) | 452 : eq_constant) |
| 455 : (cmp.Float64Compare(input_a, input_b) ? eq_constant | 453 : (cmp.Float64Compare(input_a, input_b) ? eq_constant |
| 456 : ne_constant); | 454 : ne_constant); |
| 457 CHECK_EQ(expected, m.Call()); | 455 CHECK_EQ(expected, m.Call()); |
| 458 } | 456 } |
| 459 } | 457 } |
| 460 } | 458 } |
| 461 } | 459 } |
| 462 } | 460 } |
| OLD | NEW |