Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: src/compiler/instruction-selector.cc

Issue 1398943003: [turbofan] Change deoptimization register allocator constraints to ANY. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/compiler/instruction-selector-impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/instruction-selector-impl.h" 10 #include "src/compiler/instruction-selector-impl.h"
(...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 case IrOpcode::kInt32Constant: 1089 case IrOpcode::kInt32Constant:
1090 case IrOpcode::kNumberConstant: 1090 case IrOpcode::kNumberConstant:
1091 case IrOpcode::kFloat64Constant: 1091 case IrOpcode::kFloat64Constant:
1092 case IrOpcode::kHeapConstant: 1092 case IrOpcode::kHeapConstant:
1093 return g->UseImmediate(input); 1093 return g->UseImmediate(input);
1094 default: 1094 default:
1095 switch (kind) { 1095 switch (kind) {
1096 case FrameStateInputKind::kStackSlot: 1096 case FrameStateInputKind::kStackSlot:
1097 return g->UseUniqueSlot(input); 1097 return g->UseUniqueSlot(input);
1098 case FrameStateInputKind::kAny: 1098 case FrameStateInputKind::kAny:
1099 return g->Use(input); 1099 return g->UseAny(input);
1100 } 1100 }
1101 UNREACHABLE(); 1101 UNREACHABLE();
1102 return InstructionOperand(); 1102 return InstructionOperand();
1103 } 1103 }
1104 } 1104 }
1105 1105
1106 1106
1107 void InstructionSelector::AddFrameStateInputs(Node* state, 1107 void InstructionSelector::AddFrameStateInputs(Node* state,
1108 InstructionOperandVector* inputs, 1108 InstructionOperandVector* inputs,
1109 FrameStateDescriptor* descriptor, 1109 FrameStateDescriptor* descriptor,
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1149 for (StateValuesAccess::TypedNode input_node : StateValuesAccess(stack)) { 1149 for (StateValuesAccess::TypedNode input_node : StateValuesAccess(stack)) {
1150 inputs->push_back(OperandForDeopt(&g, input_node.node, kind)); 1150 inputs->push_back(OperandForDeopt(&g, input_node.node, kind));
1151 descriptor->SetType(value_index++, input_node.type); 1151 descriptor->SetType(value_index++, input_node.type);
1152 } 1152 }
1153 DCHECK(value_index == descriptor->GetSize()); 1153 DCHECK(value_index == descriptor->GetSize());
1154 } 1154 }
1155 1155
1156 } // namespace compiler 1156 } // namespace compiler
1157 } // namespace internal 1157 } // namespace internal
1158 } // namespace v8 1158 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/instruction-selector-impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698