| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 case IrOpcode::kJSMultiply: | 63 case IrOpcode::kJSMultiply: |
| 64 case IrOpcode::kJSShiftLeft: | 64 case IrOpcode::kJSShiftLeft: |
| 65 case IrOpcode::kJSShiftRight: | 65 case IrOpcode::kJSShiftRight: |
| 66 case IrOpcode::kJSShiftRightLogical: | 66 case IrOpcode::kJSShiftRightLogical: |
| 67 case IrOpcode::kJSStoreNamed: | 67 case IrOpcode::kJSStoreNamed: |
| 68 case IrOpcode::kJSStoreProperty: | 68 case IrOpcode::kJSStoreProperty: |
| 69 case IrOpcode::kJSSubtract: | 69 case IrOpcode::kJSSubtract: |
| 70 | 70 |
| 71 // Conversions | 71 // Conversions |
| 72 case IrOpcode::kJSToObject: | 72 case IrOpcode::kJSToObject: |
| 73 case IrOpcode::kJSToNumber: |
| 73 | 74 |
| 74 // Other | 75 // Other |
| 75 case IrOpcode::kJSDeleteProperty: | 76 case IrOpcode::kJSDeleteProperty: |
| 76 return true; | 77 return true; |
| 77 | 78 |
| 78 default: | 79 default: |
| 79 return false; | 80 return false; |
| 80 } | 81 } |
| 81 } | 82 } |
| 82 | 83 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 94 Operator::Opcode const opcode = op->opcode(); | 95 Operator::Opcode const opcode = op->opcode(); |
| 95 return opcode == IrOpcode::kStart || opcode == IrOpcode::kEnd || | 96 return opcode == IrOpcode::kStart || opcode == IrOpcode::kEnd || |
| 96 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || | 97 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || |
| 97 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || | 98 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || |
| 98 opcode == IrOpcode::kIfFalse; | 99 opcode == IrOpcode::kIfFalse; |
| 99 } | 100 } |
| 100 | 101 |
| 101 } // namespace compiler | 102 } // namespace compiler |
| 102 } // namespace internal | 103 } // namespace internal |
| 103 } // namespace v8 | 104 } // namespace v8 |
| OLD | NEW |