| 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/operator-properties.h" | 5 #include "src/compiler/operator-properties.h" |
| 6 | 6 |
| 7 #include "src/compiler/js-operator.h" | 7 #include "src/compiler/js-operator.h" |
| 8 #include "src/compiler/linkage.h" | 8 #include "src/compiler/linkage.h" |
| 9 #include "src/compiler/opcodes.h" | 9 #include "src/compiler/opcodes.h" |
| 10 | 10 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 return op->ValueInputCount() + GetContextInputCount(op) + | 110 return op->ValueInputCount() + GetContextInputCount(op) + |
| 111 GetFrameStateInputCount(op) + op->EffectInputCount() + | 111 GetFrameStateInputCount(op) + op->EffectInputCount() + |
| 112 op->ControlInputCount(); | 112 op->ControlInputCount(); |
| 113 } | 113 } |
| 114 | 114 |
| 115 | 115 |
| 116 // static | 116 // static |
| 117 bool OperatorProperties::IsBasicBlockBegin(const Operator* op) { | 117 bool OperatorProperties::IsBasicBlockBegin(const Operator* op) { |
| 118 Operator::Opcode const opcode = op->opcode(); | 118 Operator::Opcode const opcode = op->opcode(); |
| 119 return opcode == IrOpcode::kStart || opcode == IrOpcode::kEnd || | 119 return opcode == IrOpcode::kStart || opcode == IrOpcode::kEnd || |
| 120 opcode == IrOpcode::kDeadControl || opcode == IrOpcode::kLoop || | 120 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || |
| 121 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || | 121 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || |
| 122 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess || | 122 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess || |
| 123 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue || | 123 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue || |
| 124 opcode == IrOpcode::kIfDefault; | 124 opcode == IrOpcode::kIfDefault; |
| 125 } | 125 } |
| 126 | 126 |
| 127 } // namespace compiler | 127 } // namespace compiler |
| 128 } // namespace internal | 128 } // namespace internal |
| 129 } // namespace v8 | 129 } // namespace v8 |
| OLD | NEW |