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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
148 0, controls, "Merge"); | 148 0, controls, "Merge"); |
149 } | 149 } |
150 | 150 |
151 | 151 |
152 const Operator* CommonOperatorBuilder::Loop(int controls) { | 152 const Operator* CommonOperatorBuilder::Loop(int controls) { |
153 return new (zone()) ControlOperator(IrOpcode::kLoop, Operator::kFoldable, 0, | 153 return new (zone()) ControlOperator(IrOpcode::kLoop, Operator::kFoldable, 0, |
154 0, controls, "Loop"); | 154 0, controls, "Loop"); |
155 } | 155 } |
156 | 156 |
157 | 157 |
158 const Operator* CommonOperatorBuilder::Terminate(int effects) { | |
Michael Starzinger
2014/10/22 17:07:26
nit: Can we drop the "effects" argument?
| |
159 return new (zone()) ControlOperator( | |
160 IrOpcode::kTerminate, Operator::kNoProperties, 0, 0, 1, "Terminate"); | |
161 } | |
162 | |
163 | |
158 const Operator* CommonOperatorBuilder::Parameter(int index) { | 164 const Operator* CommonOperatorBuilder::Parameter(int index) { |
159 return new (zone()) Operator1<int>(IrOpcode::kParameter, Operator::kPure, 1, | 165 return new (zone()) Operator1<int>(IrOpcode::kParameter, Operator::kPure, 1, |
160 1, "Parameter", index); | 166 1, "Parameter", index); |
161 } | 167 } |
162 | 168 |
163 | 169 |
164 const Operator* CommonOperatorBuilder::Int32Constant(int32_t value) { | 170 const Operator* CommonOperatorBuilder::Int32Constant(int32_t value) { |
165 return new (zone()) Operator1<int32_t>( | 171 return new (zone()) Operator1<int32_t>( |
166 IrOpcode::kInt32Constant, Operator::kPure, 0, 1, "Int32Constant", value); | 172 IrOpcode::kInt32Constant, Operator::kPure, 0, 1, "Int32Constant", value); |
167 } | 173 } |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
277 | 283 |
278 | 284 |
279 const Operator* CommonOperatorBuilder::Projection(size_t index) { | 285 const Operator* CommonOperatorBuilder::Projection(size_t index) { |
280 return new (zone()) Operator1<size_t>(IrOpcode::kProjection, Operator::kPure, | 286 return new (zone()) Operator1<size_t>(IrOpcode::kProjection, Operator::kPure, |
281 1, 1, "Projection", index); | 287 1, 1, "Projection", index); |
282 } | 288 } |
283 | 289 |
284 } // namespace compiler | 290 } // namespace compiler |
285 } // namespace internal | 291 } // namespace internal |
286 } // namespace v8 | 292 } // namespace v8 |
OLD | NEW |