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::kJSShiftRight: | 63 case IrOpcode::kJSShiftRight: |
64 case IrOpcode::kJSShiftRightLogical: | 64 case IrOpcode::kJSShiftRightLogical: |
65 case IrOpcode::kJSSubtract: | 65 case IrOpcode::kJSSubtract: |
66 | 66 |
67 // Context operations | 67 // Context operations |
68 case IrOpcode::kJSCreateWithContext: | 68 case IrOpcode::kJSCreateWithContext: |
69 | 69 |
70 // Conversions | 70 // Conversions |
71 case IrOpcode::kJSToObject: | 71 case IrOpcode::kJSToObject: |
72 case IrOpcode::kJSToNumber: | 72 case IrOpcode::kJSToNumber: |
| 73 case IrOpcode::kJSToName: |
73 | 74 |
74 // Properties | 75 // Properties |
75 case IrOpcode::kJSLoadNamed: | 76 case IrOpcode::kJSLoadNamed: |
76 case IrOpcode::kJSLoadProperty: | 77 case IrOpcode::kJSLoadProperty: |
77 case IrOpcode::kJSStoreNamed: | 78 case IrOpcode::kJSStoreNamed: |
78 case IrOpcode::kJSStoreProperty: | 79 case IrOpcode::kJSStoreProperty: |
79 case IrOpcode::kJSDeleteProperty: | 80 case IrOpcode::kJSDeleteProperty: |
80 return true; | 81 return true; |
81 | 82 |
82 default: | 83 default: |
(...skipping 15 matching lines...) Expand all Loading... |
98 Operator::Opcode const opcode = op->opcode(); | 99 Operator::Opcode const opcode = op->opcode(); |
99 return opcode == IrOpcode::kStart || opcode == IrOpcode::kEnd || | 100 return opcode == IrOpcode::kStart || opcode == IrOpcode::kEnd || |
100 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || | 101 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || |
101 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || | 102 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || |
102 opcode == IrOpcode::kIfFalse; | 103 opcode == IrOpcode::kIfFalse; |
103 } | 104 } |
104 | 105 |
105 } // namespace compiler | 106 } // namespace compiler |
106 } // namespace internal | 107 } // namespace internal |
107 } // namespace v8 | 108 } // namespace v8 |
OLD | NEW |