| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef V8_COMPILER_OPERATOR_PROPERTIES_INL_H_ | 5 #ifndef V8_COMPILER_OPERATOR_PROPERTIES_INL_H_ |
| 6 #define V8_COMPILER_OPERATOR_PROPERTIES_INL_H_ | 6 #define V8_COMPILER_OPERATOR_PROPERTIES_INL_H_ |
| 7 | 7 |
| 8 #include "src/compiler/common-operator.h" | 8 #include "src/compiler/common-operator.h" |
| 9 #include "src/compiler/js-operator.h" | 9 #include "src/compiler/js-operator.h" |
| 10 #include "src/compiler/opcodes.h" | 10 #include "src/compiler/opcodes.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 | 33 |
| 34 inline bool OperatorProperties::HasFrameStateInput(Operator* op) { | 34 inline bool OperatorProperties::HasFrameStateInput(Operator* op) { |
| 35 if (!FLAG_turbo_deoptimization) { | 35 if (!FLAG_turbo_deoptimization) { |
| 36 return false; | 36 return false; |
| 37 } | 37 } |
| 38 | 38 |
| 39 switch (op->opcode()) { | 39 switch (op->opcode()) { |
| 40 case IrOpcode::kJSCallFunction: | 40 case IrOpcode::kJSCallFunction: |
| 41 return true; | 41 return true; |
| 42 case IrOpcode::kFrameState: |
| 43 return true; |
| 42 case IrOpcode::kJSCallRuntime: { | 44 case IrOpcode::kJSCallRuntime: { |
| 43 Runtime::FunctionId function = | 45 Runtime::FunctionId function = |
| 44 reinterpret_cast<Operator1<Runtime::FunctionId>*>(op)->parameter(); | 46 reinterpret_cast<Operator1<Runtime::FunctionId>*>(op)->parameter(); |
| 45 // TODO(jarin) At the moment, we only add frame state for | 47 // TODO(jarin) At the moment, we only add frame state for |
| 46 // few chosen runtime functions. | 48 // few chosen runtime functions. |
| 47 switch (function) { | 49 switch (function) { |
| 48 case Runtime::kDebugBreak: | 50 case Runtime::kDebugBreak: |
| 49 case Runtime::kDeoptimizeFunction: | 51 case Runtime::kDeoptimizeFunction: |
| 50 case Runtime::kSetScriptBreakPoint: | 52 case Runtime::kSetScriptBreakPoint: |
| 51 case Runtime::kDebugGetLoadedScripts: | 53 case Runtime::kDebugGetLoadedScripts: |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 default: | 218 default: |
| 217 return false; | 219 return false; |
| 218 } | 220 } |
| 219 return false; | 221 return false; |
| 220 } | 222 } |
| 221 } | 223 } |
| 222 } | 224 } |
| 223 } // namespace v8::internal::compiler | 225 } // namespace v8::internal::compiler |
| 224 | 226 |
| 225 #endif // V8_COMPILER_OPERATOR_PROPERTIES_INL_H_ | 227 #endif // V8_COMPILER_OPERATOR_PROPERTIES_INL_H_ |
| OLD | NEW |