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

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

Issue 1179543002: [turbofan] Make IfException projections consume effects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « src/compiler/graph-reducer.cc ('k') | src/compiler/node-properties.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 913 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 OperandGenerator g(this); 924 OperandGenerator g(this);
925 int index = ParameterIndexOf(node->op()); 925 int index = ParameterIndexOf(node->op());
926 Emit(kArchNop, 926 Emit(kArchNop,
927 g.DefineAsLocation(node, linkage()->GetParameterLocation(index), 927 g.DefineAsLocation(node, linkage()->GetParameterLocation(index),
928 linkage()->GetParameterType(index))); 928 linkage()->GetParameterType(index)));
929 } 929 }
930 930
931 931
932 void InstructionSelector::VisitIfException(Node* node) { 932 void InstructionSelector::VisitIfException(Node* node) {
933 OperandGenerator g(this); 933 OperandGenerator g(this);
934 Node* call = node->InputAt(0); 934 Node* call = node->InputAt(1);
935 DCHECK_EQ(IrOpcode::kCall, call->opcode()); 935 DCHECK_EQ(IrOpcode::kCall, call->opcode());
936 const CallDescriptor* descriptor = OpParameter<const CallDescriptor*>(call); 936 const CallDescriptor* descriptor = OpParameter<const CallDescriptor*>(call);
937 Emit(kArchNop, g.DefineAsLocation(node, descriptor->GetReturnLocation(0), 937 Emit(kArchNop, g.DefineAsLocation(node, descriptor->GetReturnLocation(0),
938 descriptor->GetReturnType(0))); 938 descriptor->GetReturnType(0)));
939 } 939 }
940 940
941 941
942 void InstructionSelector::VisitOsrValue(Node* node) { 942 void InstructionSelector::VisitOsrValue(Node* node) {
943 OperandGenerator g(this); 943 OperandGenerator g(this);
944 int index = OpParameter<int>(node); 944 int index = OpParameter<int>(node);
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 MachineOperatorBuilder::Flags 1162 MachineOperatorBuilder::Flags
1163 InstructionSelector::SupportedMachineOperatorFlags() { 1163 InstructionSelector::SupportedMachineOperatorFlags() {
1164 return MachineOperatorBuilder::Flag::kNoFlags; 1164 return MachineOperatorBuilder::Flag::kNoFlags;
1165 } 1165 }
1166 1166
1167 #endif // !V8_TURBOFAN_BACKEND 1167 #endif // !V8_TURBOFAN_BACKEND
1168 1168
1169 } // namespace compiler 1169 } // namespace compiler
1170 } // namespace internal 1170 } // namespace internal
1171 } // namespace v8 1171 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/graph-reducer.cc ('k') | src/compiler/node-properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698