| 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/instruction-selector.h" | 5 #include "src/compiler/instruction-selector.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "src/base/adapters.h" | 9 #include "src/base/adapters.h" |
| 10 #include "src/compiler/compiler-source-position-table.h" | 10 #include "src/compiler/compiler-source-position-table.h" |
| (...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1034 if (!IsSmiDouble(value)) MarkAsReference(node); | 1034 if (!IsSmiDouble(value)) MarkAsReference(node); |
| 1035 return VisitConstant(node); | 1035 return VisitConstant(node); |
| 1036 } | 1036 } |
| 1037 case IrOpcode::kCall: | 1037 case IrOpcode::kCall: |
| 1038 return VisitCall(node); | 1038 return VisitCall(node); |
| 1039 case IrOpcode::kDeoptimizeIf: | 1039 case IrOpcode::kDeoptimizeIf: |
| 1040 return VisitDeoptimizeIf(node); | 1040 return VisitDeoptimizeIf(node); |
| 1041 case IrOpcode::kDeoptimizeUnless: | 1041 case IrOpcode::kDeoptimizeUnless: |
| 1042 return VisitDeoptimizeUnless(node); | 1042 return VisitDeoptimizeUnless(node); |
| 1043 case IrOpcode::kTrapIf: | 1043 case IrOpcode::kTrapIf: |
| 1044 return VisitTrapIf(node); | 1044 return VisitTrapIf(node, static_cast<Runtime::FunctionId>( |
| 1045 OpParameter<int32_t>(node->op()))); |
| 1045 case IrOpcode::kTrapUnless: | 1046 case IrOpcode::kTrapUnless: |
| 1046 return VisitTrapUnless(node); | 1047 return VisitTrapUnless(node, static_cast<Runtime::FunctionId>( |
| 1048 OpParameter<int32_t>(node->op()))); |
| 1047 case IrOpcode::kFrameState: | 1049 case IrOpcode::kFrameState: |
| 1048 case IrOpcode::kStateValues: | 1050 case IrOpcode::kStateValues: |
| 1049 case IrOpcode::kObjectState: | 1051 case IrOpcode::kObjectState: |
| 1050 return; | 1052 return; |
| 1051 case IrOpcode::kDebugBreak: | 1053 case IrOpcode::kDebugBreak: |
| 1052 VisitDebugBreak(node); | 1054 VisitDebugBreak(node); |
| 1053 return; | 1055 return; |
| 1054 case IrOpcode::kComment: | 1056 case IrOpcode::kComment: |
| 1055 VisitComment(node); | 1057 VisitComment(node); |
| 1056 return; | 1058 return; |
| (...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2158 return new (instruction_zone()) FrameStateDescriptor( | 2160 return new (instruction_zone()) FrameStateDescriptor( |
| 2159 instruction_zone(), state_info.type(), state_info.bailout_id(), | 2161 instruction_zone(), state_info.type(), state_info.bailout_id(), |
| 2160 state_info.state_combine(), parameters, locals, stack, | 2162 state_info.state_combine(), parameters, locals, stack, |
| 2161 state_info.shared_info(), outer_state); | 2163 state_info.shared_info(), outer_state); |
| 2162 } | 2164 } |
| 2163 | 2165 |
| 2164 | 2166 |
| 2165 } // namespace compiler | 2167 } // namespace compiler |
| 2166 } // namespace internal | 2168 } // namespace internal |
| 2167 } // namespace v8 | 2169 } // namespace v8 |
| OLD | NEW |