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 14 matching lines...) Expand all Loading... |
25 case IrOpcode::kCheckpoint: | 25 case IrOpcode::kCheckpoint: |
26 case IrOpcode::kFrameState: | 26 case IrOpcode::kFrameState: |
27 return true; | 27 return true; |
28 case IrOpcode::kJSCallRuntime: { | 28 case IrOpcode::kJSCallRuntime: { |
29 const CallRuntimeParameters& p = CallRuntimeParametersOf(op); | 29 const CallRuntimeParameters& p = CallRuntimeParametersOf(op); |
30 return Linkage::NeedsFrameStateInput(p.id()); | 30 return Linkage::NeedsFrameStateInput(p.id()); |
31 } | 31 } |
32 | 32 |
33 // Strict equality cannot lazily deoptimize. | 33 // Strict equality cannot lazily deoptimize. |
34 case IrOpcode::kJSStrictEqual: | 34 case IrOpcode::kJSStrictEqual: |
35 case IrOpcode::kJSStrictNotEqual: | |
36 return false; | 35 return false; |
37 | 36 |
38 // Binary operations | 37 // Binary operations |
39 case IrOpcode::kJSAdd: | 38 case IrOpcode::kJSAdd: |
40 case IrOpcode::kJSSubtract: | 39 case IrOpcode::kJSSubtract: |
41 case IrOpcode::kJSMultiply: | 40 case IrOpcode::kJSMultiply: |
42 case IrOpcode::kJSDivide: | 41 case IrOpcode::kJSDivide: |
43 case IrOpcode::kJSModulus: | 42 case IrOpcode::kJSModulus: |
44 | 43 |
45 // Bitwise operations | 44 // Bitwise operations |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || | 128 opcode == IrOpcode::kDead || opcode == IrOpcode::kLoop || |
130 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || | 129 opcode == IrOpcode::kMerge || opcode == IrOpcode::kIfTrue || |
131 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess || | 130 opcode == IrOpcode::kIfFalse || opcode == IrOpcode::kIfSuccess || |
132 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue || | 131 opcode == IrOpcode::kIfException || opcode == IrOpcode::kIfValue || |
133 opcode == IrOpcode::kIfDefault; | 132 opcode == IrOpcode::kIfDefault; |
134 } | 133 } |
135 | 134 |
136 } // namespace compiler | 135 } // namespace compiler |
137 } // namespace internal | 136 } // namespace internal |
138 } // namespace v8 | 137 } // namespace v8 |
OLD | NEW |