Index: src/code-stub-assembler.h |
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h |
index 304cb853f64d45243728e59e9b7af73410e0ca02..27669d097e5fb4722ea59c1cbb38acc652bd9ca4 100644 |
--- a/src/code-stub-assembler.h |
+++ b/src/code-stub-assembler.h |
@@ -706,6 +706,11 @@ class V8_EXPORT_PRIVATE CodeStubAssembler : public compiler::CodeAssembler { |
IntPtrConstant(0)); |
} |
+ // Returns true if any of the mask's bits in given |word| are set. |
+ Node* IsSetWord(Node* word, uint32_t mask) { |
+ return WordNotEqual(WordAnd(word, Int32Constant(mask)), Int32Constant(0)); |
+ } |
+ |
void SetCounter(StatsCounter* counter, int value); |
void IncrementCounter(StatsCounter* counter, int delta); |
void DecrementCounter(StatsCounter* counter, int delta); |