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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // Context operations | 51 // Context operations |
52 case IrOpcode::kJSCreateScriptContext: | 52 case IrOpcode::kJSCreateScriptContext: |
53 case IrOpcode::kJSCreateWithContext: | 53 case IrOpcode::kJSCreateWithContext: |
54 | 54 |
55 // Conversions | 55 // Conversions |
56 case IrOpcode::kJSToObject: | 56 case IrOpcode::kJSToObject: |
57 case IrOpcode::kJSToNumber: | 57 case IrOpcode::kJSToNumber: |
58 case IrOpcode::kJSToName: | 58 case IrOpcode::kJSToName: |
59 | 59 |
60 // Misc operations | 60 // Misc operations |
| 61 case IrOpcode::kJSForInNext: |
| 62 case IrOpcode::kJSForInPrepare: |
61 case IrOpcode::kJSStackCheck: | 63 case IrOpcode::kJSStackCheck: |
62 case IrOpcode::kJSDeleteProperty: | 64 case IrOpcode::kJSDeleteProperty: |
63 return 1; | 65 return 1; |
64 | 66 |
65 // We record the frame state immediately before and immediately after | 67 // We record the frame state immediately before and immediately after |
66 // every property access. | 68 // every property access. |
67 case IrOpcode::kJSLoadNamed: | 69 case IrOpcode::kJSLoadNamed: |
68 case IrOpcode::kJSStoreNamed: | 70 case IrOpcode::kJSStoreNamed: |
69 case IrOpcode::kJSLoadProperty: | 71 case IrOpcode::kJSLoadProperty: |
70 case IrOpcode::kJSStoreProperty: | 72 case IrOpcode::kJSStoreProperty: |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || | 118 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || |
117 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || | 119 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || |
118 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess || | 120 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess || |
119 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue || | 121 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue || |
120 opcode == IrOpcode::kIfDefault; | 122 opcode == IrOpcode::kIfDefault; |
121 } | 123 } |
122 | 124 |
123 } // namespace compiler | 125 } // namespace compiler |
124 } // namespace internal | 126 } // namespace internal |
125 } // namespace v8 | 127 } // namespace v8 |
OLD | NEW |