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 17 matching lines...) Expand all Loading... |
28 const CallRuntimeParameters& p = CallRuntimeParametersOf(op); | 28 const CallRuntimeParameters& p = CallRuntimeParametersOf(op); |
29 return Linkage::FrameStateInputCount(p.id()); | 29 return Linkage::FrameStateInputCount(p.id()); |
30 } | 30 } |
31 | 31 |
32 // Strict equality cannot lazily deoptimize. | 32 // Strict equality cannot lazily deoptimize. |
33 case IrOpcode::kJSStrictEqual: | 33 case IrOpcode::kJSStrictEqual: |
34 case IrOpcode::kJSStrictNotEqual: | 34 case IrOpcode::kJSStrictNotEqual: |
35 return 0; | 35 return 0; |
36 | 36 |
37 // We record the frame state immediately before and immediately after every | 37 // We record the frame state immediately before and immediately after every |
38 // function call. | 38 // construct/function call. |
| 39 case IrOpcode::kJSCallConstruct: |
39 case IrOpcode::kJSCallFunction: | 40 case IrOpcode::kJSCallFunction: |
40 return 2; | 41 return 2; |
41 | 42 |
42 // Construct calls | |
43 case IrOpcode::kJSCallConstruct: | |
44 | |
45 // Compare operations | 43 // Compare operations |
46 case IrOpcode::kJSEqual: | 44 case IrOpcode::kJSEqual: |
47 case IrOpcode::kJSNotEqual: | 45 case IrOpcode::kJSNotEqual: |
48 case IrOpcode::kJSHasProperty: | 46 case IrOpcode::kJSHasProperty: |
49 case IrOpcode::kJSInstanceOf: | 47 case IrOpcode::kJSInstanceOf: |
50 | 48 |
51 // Object operations | 49 // Object operations |
52 case IrOpcode::kJSCreate: | 50 case IrOpcode::kJSCreate: |
53 case IrOpcode::kJSCreateArguments: | 51 case IrOpcode::kJSCreateArguments: |
54 case IrOpcode::kJSCreateArray: | 52 case IrOpcode::kJSCreateArray: |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || | 128 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || |
131 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || | 129 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || |
132 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess || | 130 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess || |
133 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue || | 131 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue || |
134 opcode == IrOpcode::kIfDefault; | 132 opcode == IrOpcode::kIfDefault; |
135 } | 133 } |
136 | 134 |
137 } // namespace compiler | 135 } // namespace compiler |
138 } // namespace internal | 136 } // namespace internal |
139 } // namespace v8 | 137 } // namespace v8 |
OLD | NEW |