| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 return OpParameter<double>(op); | 49 return OpParameter<double>(op); |
| 50 } | 50 } |
| 51 | 51 |
| 52 | 52 |
| 53 class ReducerTester : public HandleAndZoneScope { | 53 class ReducerTester : public HandleAndZoneScope { |
| 54 public: | 54 public: |
| 55 explicit ReducerTester(int num_parameters = 0) | 55 explicit ReducerTester(int num_parameters = 0) |
| 56 : isolate(main_isolate()), | 56 : isolate(main_isolate()), |
| 57 binop(NULL), | 57 binop(NULL), |
| 58 unop(NULL), | 58 unop(NULL), |
| 59 machine(main_zone()), |
| 59 common(main_zone()), | 60 common(main_zone()), |
| 60 graph(main_zone()), | 61 graph(main_zone()), |
| 61 javascript(main_zone()), | 62 javascript(main_zone()), |
| 62 typer(&graph, MaybeHandle<Context>()), | 63 typer(&graph, MaybeHandle<Context>()), |
| 63 jsgraph(&graph, &common, &javascript, &machine), | 64 jsgraph(&graph, &common, &javascript, &machine), |
| 64 maxuint32(Constant<int32_t>(kMaxUInt32)) { | 65 maxuint32(Constant<int32_t>(kMaxUInt32)) { |
| 65 Node* s = graph.NewNode(common.Start(num_parameters)); | 66 Node* s = graph.NewNode(common.Start(num_parameters)); |
| 66 graph.SetStart(s); | 67 graph.SetStart(s); |
| 67 } | 68 } |
| 68 | 69 |
| (...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 // TODO(titzer): test MachineOperatorReducer for Int64Mul | 833 // TODO(titzer): test MachineOperatorReducer for Int64Mul |
| 833 // TODO(titzer): test MachineOperatorReducer for Int64UMul | 834 // TODO(titzer): test MachineOperatorReducer for Int64UMul |
| 834 // TODO(titzer): test MachineOperatorReducer for Int64Div | 835 // TODO(titzer): test MachineOperatorReducer for Int64Div |
| 835 // TODO(titzer): test MachineOperatorReducer for Uint64Div | 836 // TODO(titzer): test MachineOperatorReducer for Uint64Div |
| 836 // TODO(titzer): test MachineOperatorReducer for Int64Mod | 837 // TODO(titzer): test MachineOperatorReducer for Int64Mod |
| 837 // TODO(titzer): test MachineOperatorReducer for Uint64Mod | 838 // TODO(titzer): test MachineOperatorReducer for Uint64Mod |
| 838 // TODO(titzer): test MachineOperatorReducer for Int64Neg | 839 // TODO(titzer): test MachineOperatorReducer for Int64Neg |
| 839 // TODO(titzer): test MachineOperatorReducer for ChangeInt32ToFloat64 | 840 // TODO(titzer): test MachineOperatorReducer for ChangeInt32ToFloat64 |
| 840 // TODO(titzer): test MachineOperatorReducer for ChangeFloat64ToInt32 | 841 // TODO(titzer): test MachineOperatorReducer for ChangeFloat64ToInt32 |
| 841 // TODO(titzer): test MachineOperatorReducer for Float64Compare | 842 // TODO(titzer): test MachineOperatorReducer for Float64Compare |
| OLD | NEW |