| 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 #include "test/cctest/cctest.h" | 5 #include "test/cctest/cctest.h" | 
| 6 | 6 | 
| 7 #include "src/base/utils/random-number-generator.h" | 7 #include "src/base/utils/random-number-generator.h" | 
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" | 
| 9 #include "src/compiler/graph-inl.h" | 9 #include "src/compiler/graph-inl.h" | 
| 10 #include "src/compiler/js-graph.h" | 10 #include "src/compiler/js-graph.h" | 
| (...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 837   FOR_FLOAT64_INPUTS(pl) { | 837   FOR_FLOAT64_INPUTS(pl) { | 
| 838     FOR_FLOAT64_INPUTS(pr) { | 838     FOR_FLOAT64_INPUTS(pr) { | 
| 839       double x = *pl, y = *pr; | 839       double x = *pl, y = *pr; | 
| 840       R.CheckFoldBinop<double>(modulo(x, y), x, y); | 840       R.CheckFoldBinop<double>(modulo(x, y), x, y); | 
| 841     } | 841     } | 
| 842   } | 842   } | 
| 843 | 843 | 
| 844   Node* x = R.Parameter(); | 844   Node* x = R.Parameter(); | 
| 845   Node* zero = R.Constant<double>(0.0); | 845   Node* zero = R.Constant<double>(0.0); | 
| 846 | 846 | 
| 847   R.CheckFoldBinop<double>(v8::base::OS::nan_value(), x, zero); | 847   R.CheckFoldBinop<double>(std::numeric_limits<double>::quiet_NaN(), x, zero); | 
| 848 | 848 | 
| 849   CheckNans(&R); | 849   CheckNans(&R); | 
| 850 } | 850 } | 
| 851 | 851 | 
| 852 | 852 | 
| 853 // TODO(titzer): test MachineOperatorReducer for Word64And | 853 // TODO(titzer): test MachineOperatorReducer for Word64And | 
| 854 // TODO(titzer): test MachineOperatorReducer for Word64Or | 854 // TODO(titzer): test MachineOperatorReducer for Word64Or | 
| 855 // TODO(titzer): test MachineOperatorReducer for Word64Xor | 855 // TODO(titzer): test MachineOperatorReducer for Word64Xor | 
| 856 // TODO(titzer): test MachineOperatorReducer for Word64Shl | 856 // TODO(titzer): test MachineOperatorReducer for Word64Shl | 
| 857 // TODO(titzer): test MachineOperatorReducer for Word64Shr | 857 // TODO(titzer): test MachineOperatorReducer for Word64Shr | 
| 858 // TODO(titzer): test MachineOperatorReducer for Word64Sar | 858 // TODO(titzer): test MachineOperatorReducer for Word64Sar | 
| 859 // TODO(titzer): test MachineOperatorReducer for Word64Equal | 859 // TODO(titzer): test MachineOperatorReducer for Word64Equal | 
| 860 // TODO(titzer): test MachineOperatorReducer for Word64Not | 860 // TODO(titzer): test MachineOperatorReducer for Word64Not | 
| 861 // TODO(titzer): test MachineOperatorReducer for Int64Add | 861 // TODO(titzer): test MachineOperatorReducer for Int64Add | 
| 862 // TODO(titzer): test MachineOperatorReducer for Int64Sub | 862 // TODO(titzer): test MachineOperatorReducer for Int64Sub | 
| 863 // TODO(titzer): test MachineOperatorReducer for Int64Mul | 863 // TODO(titzer): test MachineOperatorReducer for Int64Mul | 
| 864 // TODO(titzer): test MachineOperatorReducer for Int64UMul | 864 // TODO(titzer): test MachineOperatorReducer for Int64UMul | 
| 865 // TODO(titzer): test MachineOperatorReducer for Int64Div | 865 // TODO(titzer): test MachineOperatorReducer for Int64Div | 
| 866 // TODO(titzer): test MachineOperatorReducer for Uint64Div | 866 // TODO(titzer): test MachineOperatorReducer for Uint64Div | 
| 867 // TODO(titzer): test MachineOperatorReducer for Int64Mod | 867 // TODO(titzer): test MachineOperatorReducer for Int64Mod | 
| 868 // TODO(titzer): test MachineOperatorReducer for Uint64Mod | 868 // TODO(titzer): test MachineOperatorReducer for Uint64Mod | 
| 869 // TODO(titzer): test MachineOperatorReducer for Int64Neg | 869 // TODO(titzer): test MachineOperatorReducer for Int64Neg | 
| 870 // TODO(titzer): test MachineOperatorReducer for ChangeInt32ToFloat64 | 870 // TODO(titzer): test MachineOperatorReducer for ChangeInt32ToFloat64 | 
| 871 // TODO(titzer): test MachineOperatorReducer for ChangeFloat64ToInt32 | 871 // TODO(titzer): test MachineOperatorReducer for ChangeFloat64ToInt32 | 
| 872 // TODO(titzer): test MachineOperatorReducer for Float64Compare | 872 // TODO(titzer): test MachineOperatorReducer for Float64Compare | 
| OLD | NEW | 
|---|