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

Unified Diff: src/compiler/instruction-selector.h

Issue 2390303002: [turbofan] Check instruction input/output count limits in instruction selector. (Closed)
Patch Set: Fix silly mistakes in the test. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/instruction-selector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/instruction-selector.h
diff --git a/src/compiler/instruction-selector.h b/src/compiler/instruction-selector.h
index 36b699153e638f28307bf2668acb3574e9806b6a..212a66eadb5e18b59429cd59b7594c97644089cf 100644
--- a/src/compiler/instruction-selector.h
+++ b/src/compiler/instruction-selector.h
@@ -61,7 +61,7 @@ class InstructionSelector final {
: kDisableScheduling);
// Visit code for the entire graph with the included schedule.
- void SelectInstructions();
+ bool SelectInstructions();
void StartBlock(RpoNumber rpo);
void EndBlock(RpoNumber rpo);
@@ -332,6 +332,11 @@ class InstructionSelector final {
Zone* instruction_zone() const { return sequence()->zone(); }
Zone* zone() const { return zone_; }
+ void set_instruction_selection_failed() {
+ instruction_selection_failed_ = true;
+ }
+ bool instruction_selection_failed() { return instruction_selection_failed_; }
+
// ===========================================================================
Zone* const zone_;
@@ -351,6 +356,7 @@ class InstructionSelector final {
InstructionScheduler* scheduler_;
EnableScheduling enable_scheduling_;
Frame* frame_;
+ bool instruction_selection_failed_;
};
} // namespace compiler
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/instruction-selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698