| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 class ReducerTester : public HandleAndZoneScope { | 51 class ReducerTester : public HandleAndZoneScope { |
| 52 public: | 52 public: |
| 53 explicit ReducerTester(int num_parameters = 0) | 53 explicit ReducerTester(int num_parameters = 0) |
| 54 : isolate(main_isolate()), | 54 : isolate(main_isolate()), |
| 55 binop(NULL), | 55 binop(NULL), |
| 56 unop(NULL), | 56 unop(NULL), |
| 57 common(main_zone()), | 57 common(main_zone()), |
| 58 graph(main_zone()), | 58 graph(main_zone()), |
| 59 javascript(main_zone()), | 59 javascript(main_zone()), |
| 60 typer(main_zone()), | 60 typer(&graph, MaybeHandle<Context>()), |
| 61 jsgraph(&graph, &common, &javascript, &typer, &machine), | 61 jsgraph(&graph, &common, &javascript, &machine), |
| 62 maxuint32(Constant<int32_t>(kMaxUInt32)) { | 62 maxuint32(Constant<int32_t>(kMaxUInt32)) { |
| 63 Node* s = graph.NewNode(common.Start(num_parameters)); | 63 Node* s = graph.NewNode(common.Start(num_parameters)); |
| 64 graph.SetStart(s); | 64 graph.SetStart(s); |
| 65 } | 65 } |
| 66 | 66 |
| 67 Isolate* isolate; | 67 Isolate* isolate; |
| 68 const Operator* binop; | 68 const Operator* binop; |
| 69 const Operator* unop; | 69 const Operator* unop; |
| 70 MachineOperatorBuilder machine; | 70 MachineOperatorBuilder machine; |
| 71 CommonOperatorBuilder common; | 71 CommonOperatorBuilder common; |
| (...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 819 // TODO(titzer): test MachineOperatorReducer for Int64Mul | 819 // TODO(titzer): test MachineOperatorReducer for Int64Mul |
| 820 // TODO(titzer): test MachineOperatorReducer for Int64UMul | 820 // TODO(titzer): test MachineOperatorReducer for Int64UMul |
| 821 // TODO(titzer): test MachineOperatorReducer for Int64Div | 821 // TODO(titzer): test MachineOperatorReducer for Int64Div |
| 822 // TODO(titzer): test MachineOperatorReducer for Uint64Div | 822 // TODO(titzer): test MachineOperatorReducer for Uint64Div |
| 823 // TODO(titzer): test MachineOperatorReducer for Int64Mod | 823 // TODO(titzer): test MachineOperatorReducer for Int64Mod |
| 824 // TODO(titzer): test MachineOperatorReducer for Uint64Mod | 824 // TODO(titzer): test MachineOperatorReducer for Uint64Mod |
| 825 // TODO(titzer): test MachineOperatorReducer for Int64Neg | 825 // TODO(titzer): test MachineOperatorReducer for Int64Neg |
| 826 // TODO(titzer): test MachineOperatorReducer for ChangeInt32ToFloat64 | 826 // TODO(titzer): test MachineOperatorReducer for ChangeInt32ToFloat64 |
| 827 // TODO(titzer): test MachineOperatorReducer for ChangeFloat64ToInt32 | 827 // TODO(titzer): test MachineOperatorReducer for ChangeFloat64ToInt32 |
| 828 // TODO(titzer): test MachineOperatorReducer for Float64Compare | 828 // TODO(titzer): test MachineOperatorReducer for Float64Compare |
| OLD | NEW |