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/compiler/opcodes.h" | 10 #include "src/compiler/opcodes.h" |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 // Uncached. | 308 // Uncached. |
309 return new (zone()) Operator1<int>( // -- | 309 return new (zone()) Operator1<int>( // -- |
310 IrOpcode::kParameter, Operator::kPure, // opcode | 310 IrOpcode::kParameter, Operator::kPure, // opcode |
311 "Parameter", // name | 311 "Parameter", // name |
312 1, 0, 0, 1, 0, 0, // counts | 312 1, 0, 0, 1, 0, 0, // counts |
313 index); // parameter | 313 index); // parameter |
314 } | 314 } |
315 | 315 |
316 | 316 |
317 const Operator* CommonOperatorBuilder::OsrValue(int index) { | 317 const Operator* CommonOperatorBuilder::OsrValue(int index) { |
318 return new (zone()) Operator1<int>( // -- | 318 return new (zone()) Operator1<int>( // -- |
319 IrOpcode::kOsrValue, Operator::kPure, // opcode | 319 IrOpcode::kOsrValue, Operator::kNoProperties, // opcode |
320 "OsrValue", // name | 320 "OsrValue", // name |
321 0, 0, 1, 1, 0, 0, // counts | 321 0, 0, 1, 1, 0, 0, // counts |
322 index); // parameter | 322 index); // parameter |
323 } | 323 } |
324 | 324 |
325 | 325 |
326 const Operator* CommonOperatorBuilder::Int32Constant(int32_t value) { | 326 const Operator* CommonOperatorBuilder::Int32Constant(int32_t value) { |
327 return new (zone()) Operator1<int32_t>( // -- | 327 return new (zone()) Operator1<int32_t>( // -- |
328 IrOpcode::kInt32Constant, Operator::kPure, // opcode | 328 IrOpcode::kInt32Constant, Operator::kPure, // opcode |
329 "Int32Constant", // name | 329 "Int32Constant", // name |
330 0, 0, 0, 1, 0, 0, // counts | 330 0, 0, 0, 1, 0, 0, // counts |
331 value); // parameter | 331 value); // parameter |
332 } | 332 } |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
508 } else { | 508 } else { |
509 UNREACHABLE(); | 509 UNREACHABLE(); |
510 return nullptr; | 510 return nullptr; |
511 } | 511 } |
512 } | 512 } |
513 | 513 |
514 | 514 |
515 } // namespace compiler | 515 } // namespace compiler |
516 } // namespace internal | 516 } // namespace internal |
517 } // namespace v8 | 517 } // namespace v8 |
OLD | NEW |