| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 case IrOpcode::kJSStackCheck: | 64 case IrOpcode::kJSStackCheck: |
| 65 case IrOpcode::kJSDeleteProperty: | 65 case IrOpcode::kJSDeleteProperty: |
| 66 return 1; | 66 return 1; |
| 67 | 67 |
| 68 // We record the frame state immediately before and immediately after | 68 // We record the frame state immediately before and immediately after |
| 69 // every property or global variable access. | 69 // every property or global variable access. |
| 70 case IrOpcode::kJSLoadNamed: | 70 case IrOpcode::kJSLoadNamed: |
| 71 case IrOpcode::kJSStoreNamed: | 71 case IrOpcode::kJSStoreNamed: |
| 72 case IrOpcode::kJSLoadProperty: | 72 case IrOpcode::kJSLoadProperty: |
| 73 case IrOpcode::kJSStoreProperty: | 73 case IrOpcode::kJSStoreProperty: |
| 74 case IrOpcode::kJSLoadGlobal: |
| 75 case IrOpcode::kJSStoreGlobal: |
| 74 case IrOpcode::kJSLoadDynamicGlobal: | 76 case IrOpcode::kJSLoadDynamicGlobal: |
| 75 return 2; | 77 return 2; |
| 76 | 78 |
| 77 // Binary operators that can deopt in the middle the operation (e.g., | 79 // Binary operators that can deopt in the middle the operation (e.g., |
| 78 // as a result of lazy deopt in ToNumber conversion) need a second frame | 80 // as a result of lazy deopt in ToNumber conversion) need a second frame |
| 79 // state so that we can resume before the operation. | 81 // state so that we can resume before the operation. |
| 80 case IrOpcode::kJSMultiply: | 82 case IrOpcode::kJSMultiply: |
| 81 case IrOpcode::kJSAdd: | 83 case IrOpcode::kJSAdd: |
| 82 case IrOpcode::kJSBitwiseAnd: | 84 case IrOpcode::kJSBitwiseAnd: |
| 83 case IrOpcode::kJSBitwiseOr: | 85 case IrOpcode::kJSBitwiseOr: |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || | 122 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || |
| 121 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || | 123 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || |
| 122 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess || | 124 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess || |
| 123 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue || | 125 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue || |
| 124 opcode == IrOpcode::kIfDefault; | 126 opcode == IrOpcode::kIfDefault; |
| 125 } | 127 } |
| 126 | 128 |
| 127 } // namespace compiler | 129 } // namespace compiler |
| 128 } // namespace internal | 130 } // namespace internal |
| 129 } // namespace v8 | 131 } // namespace v8 |
| OLD | NEW |