| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 op->ControlInputCount(); | 93 op->ControlInputCount(); |
| 94 } | 94 } |
| 95 | 95 |
| 96 | 96 |
| 97 // static | 97 // static |
| 98 bool OperatorProperties::IsBasicBlockBegin(const Operator* op) { | 98 bool OperatorProperties::IsBasicBlockBegin(const Operator* op) { |
| 99 Operator::Opcode const opcode = op->opcode(); | 99 Operator::Opcode const opcode = op->opcode(); |
| 100 return opcode == IrOpcode::kStart || opcode == IrOpcode::kEnd || | 100 return opcode == IrOpcode::kStart || opcode == IrOpcode::kEnd || |
| 101 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || | 101 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || |
| 102 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || | 102 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || |
| 103 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfValue || | 103 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess || |
| 104 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue || |
| 104 opcode == IrOpcode::kIfDefault; | 105 opcode == IrOpcode::kIfDefault; |
| 105 } | 106 } |
| 106 | 107 |
| 107 } // namespace compiler | 108 } // namespace compiler |
| 108 } // namespace internal | 109 } // namespace internal |
| 109 } // namespace v8 | 110 } // namespace v8 |
| OLD | NEW |