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 // TODO(jochen): Remove this after the setting is turned on globally. | 5 // TODO(jochen): Remove this after the setting is turned on globally. |
6 #define V8_IMMINENT_DEPRECATION_WARNINGS | 6 #define V8_IMMINENT_DEPRECATION_WARNINGS |
7 | 7 |
8 #include "src/base/utils/random-number-generator.h" | 8 #include "src/base/utils/random-number-generator.h" |
9 #include "src/codegen.h" | 9 #include "src/codegen.h" |
10 #include "src/compiler/js-graph.h" | 10 #include "src/compiler/js-graph.h" |
11 #include "src/compiler/machine-operator-reducer.h" | 11 #include "src/compiler/machine-operator-reducer.h" |
12 #include "src/compiler/operator-properties.h" | 12 #include "src/compiler/operator-properties.h" |
13 #include "src/compiler/typer.h" | 13 #include "src/compiler/typer.h" |
14 #include "test/cctest/cctest.h" | 14 #include "test/cctest/cctest.h" |
15 #include "test/cctest/compiler/value-helper.h" | 15 #include "test/cctest/compiler/value-helper.h" |
16 | 16 |
17 using namespace v8::internal; | 17 namespace v8 { |
18 using namespace v8::internal::compiler; | 18 namespace internal { |
| 19 namespace compiler { |
19 | 20 |
20 template <typename T> | 21 template <typename T> |
21 const Operator* NewConstantOperator(CommonOperatorBuilder* common, | 22 const Operator* NewConstantOperator(CommonOperatorBuilder* common, |
22 volatile T value); | 23 volatile T value); |
23 | 24 |
24 template <> | 25 template <> |
25 const Operator* NewConstantOperator<int32_t>(CommonOperatorBuilder* common, | 26 const Operator* NewConstantOperator<int32_t>(CommonOperatorBuilder* common, |
26 volatile int32_t value) { | 27 volatile int32_t value) { |
27 return common->Int32Constant(value); | 28 return common->Int32Constant(value); |
28 } | 29 } |
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 // TODO(titzer): test MachineOperatorReducer for Uint64Mod | 744 // TODO(titzer): test MachineOperatorReducer for Uint64Mod |
744 // TODO(titzer): test MachineOperatorReducer for Int64Neg | 745 // TODO(titzer): test MachineOperatorReducer for Int64Neg |
745 // TODO(titzer): test MachineOperatorReducer for ChangeInt32ToFloat64 | 746 // TODO(titzer): test MachineOperatorReducer for ChangeInt32ToFloat64 |
746 // TODO(titzer): test MachineOperatorReducer for ChangeFloat64ToInt32 | 747 // TODO(titzer): test MachineOperatorReducer for ChangeFloat64ToInt32 |
747 // TODO(titzer): test MachineOperatorReducer for Float64Compare | 748 // TODO(titzer): test MachineOperatorReducer for Float64Compare |
748 // TODO(titzer): test MachineOperatorReducer for Float64Add | 749 // TODO(titzer): test MachineOperatorReducer for Float64Add |
749 // TODO(titzer): test MachineOperatorReducer for Float64Sub | 750 // TODO(titzer): test MachineOperatorReducer for Float64Sub |
750 // TODO(titzer): test MachineOperatorReducer for Float64Mul | 751 // TODO(titzer): test MachineOperatorReducer for Float64Mul |
751 // TODO(titzer): test MachineOperatorReducer for Float64Div | 752 // TODO(titzer): test MachineOperatorReducer for Float64Div |
752 // TODO(titzer): test MachineOperatorReducer for Float64Mod | 753 // TODO(titzer): test MachineOperatorReducer for Float64Mod |
| 754 |
| 755 } // namespace compiler |
| 756 } // namespace internal |
| 757 } // namespace v8 |
OLD | NEW |