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

Side by Side Diff: src/compiler/common-operator.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/ast-graph-builder.cc ('k') | src/compiler/graph-reducer.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/common-operator.h" 5 #include "src/compiler/common-operator.h"
6 6
7 #include "src/assembler.h" 7 #include "src/assembler.h"
8 #include "src/base/lazy-instance.h" 8 #include "src/base/lazy-instance.h"
9 #include "src/compiler/linkage.h" 9 #include "src/compiler/linkage.h"
10 #include "src/compiler/opcodes.h" 10 #include "src/compiler/opcodes.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 Name##Operator k##Name##Operator; 223 Name##Operator k##Name##Operator;
224 CACHED_OP_LIST(CACHED) 224 CACHED_OP_LIST(CACHED)
225 #undef CACHED 225 #undef CACHED
226 226
227 template <IfExceptionHint kCaughtLocally> 227 template <IfExceptionHint kCaughtLocally>
228 struct IfExceptionOperator final : public Operator1<IfExceptionHint> { 228 struct IfExceptionOperator final : public Operator1<IfExceptionHint> {
229 IfExceptionOperator() 229 IfExceptionOperator()
230 : Operator1<IfExceptionHint>( // -- 230 : Operator1<IfExceptionHint>( // --
231 IrOpcode::kIfException, Operator::kKontrol, // opcode 231 IrOpcode::kIfException, Operator::kKontrol, // opcode
232 "IfException", // name 232 "IfException", // name
233 0, 0, 1, 1, 0, 1, // counts 233 0, 1, 1, 1, 1, 1, // counts
234 kCaughtLocally) {} // parameter 234 kCaughtLocally) {} // parameter
235 }; 235 };
236 IfExceptionOperator<IfExceptionHint::kLocallyCaught> kIfExceptionCOperator; 236 IfExceptionOperator<IfExceptionHint::kLocallyCaught> kIfExceptionCOperator;
237 IfExceptionOperator<IfExceptionHint::kLocallyUncaught> kIfExceptionUOperator; 237 IfExceptionOperator<IfExceptionHint::kLocallyUncaught> kIfExceptionUOperator;
238 238
239 template <size_t kInputCount> 239 template <size_t kInputCount>
240 struct EndOperator final : public Operator { 240 struct EndOperator final : public Operator {
241 EndOperator() 241 EndOperator()
242 : Operator( // -- 242 : Operator( // --
243 IrOpcode::kEnd, Operator::kKontrol, // opcode 243 IrOpcode::kEnd, Operator::kKontrol, // opcode
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 } else { 772 } else {
773 UNREACHABLE(); 773 UNREACHABLE();
774 return nullptr; 774 return nullptr;
775 } 775 }
776 } 776 }
777 777
778 778
779 } // namespace compiler 779 } // namespace compiler
780 } // namespace internal 780 } // namespace internal
781 } // namespace v8 781 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/graph-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698