We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7527169 commit b47c163Copy full SHA for b47c163
src/codegen/assembler.h
@@ -78,10 +78,16 @@ class JumpOptimizationInfo {
78
public:
79
bool is_collecting() const { return stage_ == kCollection; }
80
bool is_optimizing() const { return stage_ == kOptimization; }
81
- void set_optimizing() { stage_ = kOptimization; }
+ void set_optimizing() {
82
+ DCHECK(is_optimizable());
83
+ stage_ = kOptimization;
84
+ }
85
86
bool is_optimizable() const { return optimizable_; }
- void set_optimizable() { optimizable_ = true; }
87
+ void set_optimizable() {
88
+ DCHECK(is_collecting());
89
+ optimizable_ = true;
90
91
92
// Used to verify the instruction sequence is always the same in two stages.
93
size_t hash_code() const { return hash_code_; }
0 commit comments