| 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 <limits> | 5 #include <limits> |
| 6 | 6 |
| 7 #include "src/compiler/access-builder.h" | 7 #include "src/compiler/access-builder.h" |
| 8 #include "src/compiler/change-lowering.h" | 8 #include "src/compiler/change-lowering.h" |
| 9 #include "src/compiler/control-builders.h" | 9 #include "src/compiler/control-builders.h" |
| 10 #include "src/compiler/generic-node-inl.h" | |
| 11 #include "src/compiler/graph-reducer.h" | 10 #include "src/compiler/graph-reducer.h" |
| 12 #include "src/compiler/graph-visualizer.h" | 11 #include "src/compiler/graph-visualizer.h" |
| 13 #include "src/compiler/node-properties-inl.h" | 12 #include "src/compiler/node-properties-inl.h" |
| 14 #include "src/compiler/pipeline.h" | 13 #include "src/compiler/pipeline.h" |
| 15 #include "src/compiler/representation-change.h" | 14 #include "src/compiler/representation-change.h" |
| 16 #include "src/compiler/simplified-lowering.h" | 15 #include "src/compiler/simplified-lowering.h" |
| 17 #include "src/compiler/typer.h" | 16 #include "src/compiler/typer.h" |
| 18 #include "src/compiler/verifier.h" | 17 #include "src/compiler/verifier.h" |
| 19 #include "src/execution.h" | 18 #include "src/execution.h" |
| 20 #include "src/parser.h" | 19 #include "src/parser.h" |
| (...skipping 1930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1951 TestingGraph t(Type::Unsigned32()); | 1950 TestingGraph t(Type::Unsigned32()); |
| 1952 Node* k = t.jsgraph.Constant(0); | 1951 Node* k = t.jsgraph.Constant(0); |
| 1953 Node* mod = t.graph()->NewNode(t.simplified()->NumberModulus(), t.p0, k); | 1952 Node* mod = t.graph()->NewNode(t.simplified()->NumberModulus(), t.p0, k); |
| 1954 Node* trunc = t.graph()->NewNode(t.simplified()->NumberToUint32(), mod); | 1953 Node* trunc = t.graph()->NewNode(t.simplified()->NumberToUint32(), mod); |
| 1955 t.Return(trunc); | 1954 t.Return(trunc); |
| 1956 t.Lower(); | 1955 t.Lower(); |
| 1957 | 1956 |
| 1958 CHECK_EQ(IrOpcode::kFloat64Mod, mod->opcode()); | 1957 CHECK_EQ(IrOpcode::kFloat64Mod, mod->opcode()); |
| 1959 } | 1958 } |
| 1960 } | 1959 } |
| OLD | NEW |