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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 explicit ReducerTester( | 54 explicit ReducerTester( |
55 int num_parameters = 0, | 55 int num_parameters = 0, |
56 MachineOperatorBuilder::Flags flags = MachineOperatorBuilder::kNoFlags) | 56 MachineOperatorBuilder::Flags flags = MachineOperatorBuilder::kNoFlags) |
57 : isolate(main_isolate()), | 57 : isolate(main_isolate()), |
58 binop(NULL), | 58 binop(NULL), |
59 unop(NULL), | 59 unop(NULL), |
60 machine(main_zone(), kMachPtr, flags), | 60 machine(main_zone(), kMachPtr, flags), |
61 common(main_zone()), | 61 common(main_zone()), |
62 graph(main_zone()), | 62 graph(main_zone()), |
63 javascript(main_zone()), | 63 javascript(main_zone()), |
64 typer(&graph, MaybeHandle<Context>()), | 64 typer(isolate, &graph, MaybeHandle<Context>()), |
65 jsgraph(&graph, &common, &javascript, &machine), | 65 jsgraph(isolate, &graph, &common, &javascript, &machine), |
66 maxuint32(Constant<int32_t>(kMaxUInt32)) { | 66 maxuint32(Constant<int32_t>(kMaxUInt32)) { |
67 Node* s = graph.NewNode(common.Start(num_parameters)); | 67 Node* s = graph.NewNode(common.Start(num_parameters)); |
68 graph.SetStart(s); | 68 graph.SetStart(s); |
69 } | 69 } |
70 | 70 |
71 Isolate* isolate; | 71 Isolate* isolate; |
72 const Operator* binop; | 72 const Operator* binop; |
73 const Operator* unop; | 73 const Operator* unop; |
74 MachineOperatorBuilder machine; | 74 MachineOperatorBuilder machine; |
75 CommonOperatorBuilder common; | 75 CommonOperatorBuilder common; |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |