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 "src/compiler/common-operator.h" | 5 #include "src/compiler/common-operator.h" |
6 | 6 |
7 #include "src/assembler.h" | 7 #include "src/assembler.h" |
8 #include "src/base/lazy-instance.h" | 8 #include "src/base/lazy-instance.h" |
9 #include "src/compiler/linkage.h" | 9 #include "src/compiler/linkage.h" |
10 #include "src/unique.h" | 10 #include "src/unique.h" |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 IrOpcode::kInt32Constant, Operator::kPure, 0, 1, "Int32Constant", value); | 130 IrOpcode::kInt32Constant, Operator::kPure, 0, 1, "Int32Constant", value); |
131 } | 131 } |
132 | 132 |
133 | 133 |
134 const Operator* CommonOperatorBuilder::Int64Constant(int64_t value) { | 134 const Operator* CommonOperatorBuilder::Int64Constant(int64_t value) { |
135 return new (zone()) Operator1<int64_t>( | 135 return new (zone()) Operator1<int64_t>( |
136 IrOpcode::kInt64Constant, Operator::kPure, 0, 1, "Int64Constant", value); | 136 IrOpcode::kInt64Constant, Operator::kPure, 0, 1, "Int64Constant", value); |
137 } | 137 } |
138 | 138 |
139 | 139 |
| 140 const Operator* CommonOperatorBuilder::Float32Constant(volatile float value) { |
| 141 return new (zone()) |
| 142 Operator1<float>(IrOpcode::kFloat32Constant, Operator::kPure, 0, 1, |
| 143 "Float32Constant", value); |
| 144 } |
| 145 |
| 146 |
140 const Operator* CommonOperatorBuilder::Float64Constant(volatile double value) { | 147 const Operator* CommonOperatorBuilder::Float64Constant(volatile double value) { |
141 return new (zone()) | 148 return new (zone()) |
142 Operator1<double>(IrOpcode::kFloat64Constant, Operator::kPure, 0, 1, | 149 Operator1<double>(IrOpcode::kFloat64Constant, Operator::kPure, 0, 1, |
143 "Float64Constant", value); | 150 "Float64Constant", value); |
144 } | 151 } |
145 | 152 |
146 | 153 |
147 const Operator* CommonOperatorBuilder::ExternalConstant( | 154 const Operator* CommonOperatorBuilder::ExternalConstant( |
148 const ExternalReference& value) { | 155 const ExternalReference& value) { |
149 return new (zone()) | 156 return new (zone()) |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 | 243 |
237 | 244 |
238 const Operator* CommonOperatorBuilder::Projection(size_t index) { | 245 const Operator* CommonOperatorBuilder::Projection(size_t index) { |
239 return new (zone()) Operator1<size_t>(IrOpcode::kProjection, Operator::kPure, | 246 return new (zone()) Operator1<size_t>(IrOpcode::kProjection, Operator::kPure, |
240 1, 1, "Projection", index); | 247 1, 1, "Projection", index); |
241 } | 248 } |
242 | 249 |
243 } // namespace compiler | 250 } // namespace compiler |
244 } // namespace internal | 251 } // namespace internal |
245 } // namespace v8 | 252 } // namespace v8 |
OLD | NEW |