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

Unified Diff: src/code-stub-assembler.h

Issue 2551443002: [regexp] Migrate constructor and compile to CSA (Closed)
Patch Set: Address comments Created 4 years 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
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);

Powered by Google App Engine
This is Rietveld 408576698