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

Unified Diff: third_party/re2/re2/prog.h

Issue 1530113002: Revert of Update re2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « third_party/re2/re2/prefilter_tree.cc ('k') | third_party/re2/re2/prog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/re2/re2/prog.h
diff --git a/third_party/re2/re2/prog.h b/third_party/re2/re2/prog.h
index 8c5b2c4939e238955792ab9e3e1a95ff4427ee42..2cf65bc767285f076c7680f31156be47fb7e85cc 100644
--- a/third_party/re2/re2/prog.h
+++ b/third_party/re2/re2/prog.h
@@ -10,7 +10,6 @@
#define RE2_PROG_H__
#include "util/util.h"
-#include "util/sparse_array.h"
#include "re2/re2.h"
namespace re2 {
@@ -43,7 +42,7 @@
static const int WordLog = 5;
static const int Words = (Bits+31)/32;
uint32 w_[Words];
- DISALLOW_COPY_AND_ASSIGN(Bitmap);
+ DISALLOW_EVIL_CONSTRUCTORS(Bitmap);
};
@@ -96,7 +95,7 @@
void InitFail();
// Getters
- int id(Prog* p) { return static_cast<int>(this - p->inst_); }
+ int id(Prog* p) { return this - p->inst_; }
InstOp opcode() { return static_cast<InstOp>(out_opcode_&7); }
int out() { return out_opcode_>>3; }
int out1() { DCHECK(opcode() == kInstAlt || opcode() == kInstAltMatch); return out1_; }
@@ -168,7 +167,7 @@
friend struct PatchList;
friend class Prog;
- DISALLOW_COPY_AND_ASSIGN(Inst);
+ DISALLOW_EVIL_CONSTRUCTORS(Inst);
};
// Whether to anchor the search.
@@ -201,10 +200,10 @@
int start_unanchored() { return start_unanchored_; }
void set_start(int start) { start_ = start; }
void set_start_unanchored(int start) { start_unanchored_ = start; }
- int size() { return size_; }
+ int64 size() { return size_; }
bool reversed() { return reversed_; }
void set_reversed(bool reversed) { reversed_ = reversed; }
- int byte_inst_count() { return byte_inst_count_; }
+ int64 byte_inst_count() { return byte_inst_count_; }
const Bitmap<256>& byterange() { return byterange_; }
void set_dfa_mem(int64 dfa_mem) { dfa_mem_ = dfa_mem; }
int64 dfa_mem() { return dfa_mem_; }
@@ -330,10 +329,6 @@
// Returns true on success, false on error.
bool PossibleMatchRange(string* min, string* max, int maxlen);
- // EXPERIMENTAL! SUBJECT TO CHANGE!
- // Outputs the program fanout into the given sparse array.
- void Fanout(SparseArray<int>* fanout);
-
// Compiles a collection of regexps to Prog. Each regexp will have
// its own Match instruction recording the index in the vector.
static Prog* CompileSet(const RE2::Options& options, RE2::Anchor anchor,
@@ -373,7 +368,7 @@
uint8* onepass_nodes_; // data for OnePass nodes
OneState* onepass_start_; // start node for OnePass program
- DISALLOW_COPY_AND_ASSIGN(Prog);
+ DISALLOW_EVIL_CONSTRUCTORS(Prog);
};
} // namespace re2
« no previous file with comments | « third_party/re2/re2/prefilter_tree.cc ('k') | third_party/re2/re2/prog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698