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

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

Issue 1407003015: [turbofan] Fix for register allocation crash (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 | « src/compiler/code-generator.cc ('k') | no next file » | 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 state_info.state_combine(), parameters, locals, stack, 1089 state_info.state_combine(), parameters, locals, stack,
1090 state_info.shared_info(), outer_state); 1090 state_info.shared_info(), outer_state);
1091 } 1091 }
1092 1092
1093 1093
1094 InstructionOperand InstructionSelector::OperandForDeopt( 1094 InstructionOperand InstructionSelector::OperandForDeopt(
1095 OperandGenerator* g, Node* input, FrameStateInputKind kind) { 1095 OperandGenerator* g, Node* input, FrameStateInputKind kind) {
1096 switch (input->opcode()) { 1096 switch (input->opcode()) {
1097 case IrOpcode::kInt32Constant: 1097 case IrOpcode::kInt32Constant:
1098 case IrOpcode::kNumberConstant: 1098 case IrOpcode::kNumberConstant:
1099 case IrOpcode::kFloat32Constant:
1099 case IrOpcode::kFloat64Constant: 1100 case IrOpcode::kFloat64Constant:
1100 case IrOpcode::kHeapConstant: 1101 case IrOpcode::kHeapConstant:
1101 return g->UseImmediate(input); 1102 return g->UseImmediate(input);
1102 default: 1103 default:
1103 switch (kind) { 1104 switch (kind) {
1104 case FrameStateInputKind::kStackSlot: 1105 case FrameStateInputKind::kStackSlot:
1105 return g->UseUniqueSlot(input); 1106 return g->UseUniqueSlot(input);
1106 case FrameStateInputKind::kAny: 1107 case FrameStateInputKind::kAny:
1107 return g->UseAny(input); 1108 return g->UseAny(input);
1108 } 1109 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
1157 for (StateValuesAccess::TypedNode input_node : StateValuesAccess(stack)) { 1158 for (StateValuesAccess::TypedNode input_node : StateValuesAccess(stack)) {
1158 inputs->push_back(OperandForDeopt(&g, input_node.node, kind)); 1159 inputs->push_back(OperandForDeopt(&g, input_node.node, kind));
1159 descriptor->SetType(value_index++, input_node.type); 1160 descriptor->SetType(value_index++, input_node.type);
1160 } 1161 }
1161 DCHECK(value_index == descriptor->GetSize()); 1162 DCHECK(value_index == descriptor->GetSize());
1162 } 1163 }
1163 1164
1164 } // namespace compiler 1165 } // namespace compiler
1165 } // namespace internal 1166 } // namespace internal
1166 } // namespace v8 1167 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/code-generator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698