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

Unified Diff: src/compiler/common-operator.cc

Issue 2227763004: [turbofan] Verify nodes without kNoThrow have only IfSuccess or IfException uses. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@p7
Patch Set: Localize and inline CHECK_EXTRA. Fix the check as discussed. Make OsrLoopEntry, Start, Tailcall NoT… Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/verifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/common-operator.cc
diff --git a/src/compiler/common-operator.cc b/src/compiler/common-operator.cc
index aaed01fe5db25d7020eb078947ae873390a46753..321528c46425cb830e15fc7fddac02ef4a4e4887 100644
--- a/src/compiler/common-operator.cc
+++ b/src/compiler/common-operator.cc
@@ -210,22 +210,22 @@ std::ostream& operator<<(std::ostream& os,
return os;
}
-#define CACHED_OP_LIST(V) \
- V(Dead, Operator::kFoldable, 0, 0, 0, 1, 1, 1) \
- V(IfTrue, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \
- V(IfFalse, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \
- V(IfSuccess, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \
- V(IfException, Operator::kKontrol, 0, 1, 1, 1, 1, 1) \
- V(IfDefault, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \
- V(Throw, Operator::kKontrol, 1, 1, 1, 0, 0, 1) \
- V(Terminate, Operator::kKontrol, 0, 1, 1, 0, 0, 1) \
- V(OsrNormalEntry, Operator::kFoldable, 0, 1, 1, 0, 1, 1) \
- V(OsrLoopEntry, Operator::kFoldable, 0, 1, 1, 0, 1, 1) \
- V(LoopExit, Operator::kKontrol, 0, 0, 2, 0, 0, 1) \
- V(LoopExitValue, Operator::kPure, 1, 0, 1, 1, 0, 0) \
- V(LoopExitEffect, Operator::kNoThrow, 0, 1, 1, 0, 1, 0) \
- V(Checkpoint, Operator::kKontrol, 0, 1, 1, 0, 1, 0) \
- V(FinishRegion, Operator::kKontrol, 1, 1, 0, 1, 1, 0) \
+#define CACHED_OP_LIST(V) \
+ V(Dead, Operator::kFoldable, 0, 0, 0, 1, 1, 1) \
+ V(IfTrue, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \
+ V(IfFalse, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \
+ V(IfSuccess, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \
+ V(IfException, Operator::kKontrol, 0, 1, 1, 1, 1, 1) \
+ V(IfDefault, Operator::kKontrol, 0, 0, 1, 0, 0, 1) \
+ V(Throw, Operator::kKontrol, 1, 1, 1, 0, 0, 1) \
+ V(Terminate, Operator::kKontrol, 0, 1, 1, 0, 0, 1) \
+ V(OsrNormalEntry, Operator::kFoldable, 0, 1, 1, 0, 1, 1) \
+ V(OsrLoopEntry, Operator::kFoldable | Operator::kNoThrow, 0, 1, 1, 0, 1, 1) \
+ V(LoopExit, Operator::kKontrol, 0, 0, 2, 0, 0, 1) \
+ V(LoopExitValue, Operator::kPure, 1, 0, 1, 1, 0, 0) \
+ V(LoopExitEffect, Operator::kNoThrow, 0, 1, 1, 0, 1, 0) \
+ V(Checkpoint, Operator::kKontrol, 0, 1, 1, 0, 1, 0) \
+ V(FinishRegion, Operator::kKontrol, 1, 1, 0, 1, 1, 0) \
V(Retain, Operator::kKontrol, 1, 1, 0, 0, 1, 0)
#define CACHED_RETURN_LIST(V) \
@@ -619,10 +619,10 @@ const Operator* CommonOperatorBuilder::IfValue(int32_t index) {
const Operator* CommonOperatorBuilder::Start(int value_output_count) {
- return new (zone()) Operator( // --
- IrOpcode::kStart, Operator::kFoldable, // opcode
- "Start", // name
- 0, 0, 0, value_output_count, 1, 1); // counts
+ return new (zone()) Operator( // --
+ IrOpcode::kStart, Operator::kFoldable | Operator::kNoThrow, // opcode
+ "Start", // name
+ 0, 0, 0, value_output_count, 1, 1); // counts
}
@@ -934,7 +934,8 @@ const Operator* CommonOperatorBuilder::TailCall(
public:
explicit TailCallOperator(const CallDescriptor* descriptor)
: Operator1<const CallDescriptor*>(
- IrOpcode::kTailCall, descriptor->properties(), "TailCall",
+ IrOpcode::kTailCall,
+ descriptor->properties() | Operator::kNoThrow, "TailCall",
descriptor->InputCount() + descriptor->FrameStateCount(), 1, 1, 0,
0, 1, descriptor) {}
« no previous file with comments | « no previous file | src/compiler/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698