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

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

Issue 1193543002: [turbofan] Add test to keep generic pipeline on life support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove includes. Created 5 years, 6 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/js-generic-lowering.cc » ('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 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1030 void InstructionSelector::VisitThrow(Node* value) { 1030 void InstructionSelector::VisitThrow(Node* value) {
1031 OperandGenerator g(this); 1031 OperandGenerator g(this);
1032 Emit(kArchNop, g.NoOutput()); // TODO(titzer) 1032 Emit(kArchNop, g.NoOutput()); // TODO(titzer)
1033 } 1033 }
1034 1034
1035 1035
1036 FrameStateDescriptor* InstructionSelector::GetFrameStateDescriptor( 1036 FrameStateDescriptor* InstructionSelector::GetFrameStateDescriptor(
1037 Node* state) { 1037 Node* state) {
1038 DCHECK(state->opcode() == IrOpcode::kFrameState); 1038 DCHECK(state->opcode() == IrOpcode::kFrameState);
1039 DCHECK_EQ(kFrameStateInputCount, state->InputCount()); 1039 DCHECK_EQ(kFrameStateInputCount, state->InputCount());
1040 DCHECK_EQ(IrOpcode::kTypedStateValues,
1041 state->InputAt(kFrameStateParametersInput)->opcode());
1042 DCHECK_EQ(IrOpcode::kTypedStateValues,
1043 state->InputAt(kFrameStateLocalsInput)->opcode());
1044 DCHECK_EQ(IrOpcode::kTypedStateValues,
1045 state->InputAt(kFrameStateStackInput)->opcode());
1046 FrameStateCallInfo state_info = OpParameter<FrameStateCallInfo>(state); 1040 FrameStateCallInfo state_info = OpParameter<FrameStateCallInfo>(state);
1047 1041
1048 int parameters = static_cast<int>( 1042 int parameters = static_cast<int>(
1049 StateValuesAccess(state->InputAt(kFrameStateParametersInput)).size()); 1043 StateValuesAccess(state->InputAt(kFrameStateParametersInput)).size());
1050 int locals = static_cast<int>( 1044 int locals = static_cast<int>(
1051 StateValuesAccess(state->InputAt(kFrameStateLocalsInput)).size()); 1045 StateValuesAccess(state->InputAt(kFrameStateLocalsInput)).size());
1052 int stack = static_cast<int>( 1046 int stack = static_cast<int>(
1053 StateValuesAccess(state->InputAt(kFrameStateStackInput)).size()); 1047 StateValuesAccess(state->InputAt(kFrameStateStackInput)).size());
1054 1048
1055 FrameStateDescriptor* outer_state = NULL; 1049 FrameStateDescriptor* outer_state = NULL;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
1087 AddFrameStateInputs(state->InputAt(kFrameStateOuterStateInput), inputs, 1081 AddFrameStateInputs(state->InputAt(kFrameStateOuterStateInput), inputs,
1088 descriptor->outer_state()); 1082 descriptor->outer_state());
1089 } 1083 }
1090 1084
1091 Node* parameters = state->InputAt(kFrameStateParametersInput); 1085 Node* parameters = state->InputAt(kFrameStateParametersInput);
1092 Node* locals = state->InputAt(kFrameStateLocalsInput); 1086 Node* locals = state->InputAt(kFrameStateLocalsInput);
1093 Node* stack = state->InputAt(kFrameStateStackInput); 1087 Node* stack = state->InputAt(kFrameStateStackInput);
1094 Node* context = state->InputAt(kFrameStateContextInput); 1088 Node* context = state->InputAt(kFrameStateContextInput);
1095 Node* function = state->InputAt(kFrameStateFunctionInput); 1089 Node* function = state->InputAt(kFrameStateFunctionInput);
1096 1090
1097 DCHECK_EQ(IrOpcode::kTypedStateValues, parameters->op()->opcode());
1098 DCHECK_EQ(IrOpcode::kTypedStateValues, locals->op()->opcode());
1099 DCHECK_EQ(IrOpcode::kTypedStateValues, stack->op()->opcode());
1100
1101 DCHECK_EQ(descriptor->parameters_count(), 1091 DCHECK_EQ(descriptor->parameters_count(),
1102 StateValuesAccess(parameters).size()); 1092 StateValuesAccess(parameters).size());
1103 DCHECK_EQ(descriptor->locals_count(), StateValuesAccess(locals).size()); 1093 DCHECK_EQ(descriptor->locals_count(), StateValuesAccess(locals).size());
1104 DCHECK_EQ(descriptor->stack_count(), StateValuesAccess(stack).size()); 1094 DCHECK_EQ(descriptor->stack_count(), StateValuesAccess(stack).size());
1105 1095
1106 ZoneVector<MachineType> types(instruction_zone()); 1096 ZoneVector<MachineType> types(instruction_zone());
1107 types.reserve(descriptor->GetSize()); 1097 types.reserve(descriptor->GetSize());
1108 1098
1109 OperandGenerator g(this); 1099 OperandGenerator g(this);
1110 size_t value_index = 0; 1100 size_t value_index = 0;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 MachineOperatorBuilder::Flags 1152 MachineOperatorBuilder::Flags
1163 InstructionSelector::SupportedMachineOperatorFlags() { 1153 InstructionSelector::SupportedMachineOperatorFlags() {
1164 return MachineOperatorBuilder::Flag::kNoFlags; 1154 return MachineOperatorBuilder::Flag::kNoFlags;
1165 } 1155 }
1166 1156
1167 #endif // !V8_TURBOFAN_BACKEND 1157 #endif // !V8_TURBOFAN_BACKEND
1168 1158
1169 } // namespace compiler 1159 } // namespace compiler
1170 } // namespace internal 1160 } // namespace internal
1171 } // namespace v8 1161 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/js-generic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698