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

Unified Diff: src/jsregexp.cc

Issue 12861: Regexp logging and stl (Closed)
Patch Set: Created 12 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 | « src/jsregexp.h ('k') | src/log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/jsregexp.cc
diff --git a/src/jsregexp.cc b/src/jsregexp.cc
index 8bafc28d66e0ef26188dfb4d40d3a64284a5763c..bf9d4dea4d491e6890ec59b503912fe0f5937a91 100644
--- a/src/jsregexp.cc
+++ b/src/jsregexp.cc
@@ -25,9 +25,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#define _HAS_EXCEPTIONS 0
-#include <set>
-
#include "v8.h"
#include "ast.h"
@@ -1587,7 +1584,6 @@ FOR_EACH_NODE_TYPE(DECLARE_VISIT)
bool ignore_case_;
HeapStringAllocator alloc_;
StringStream stream_;
- std::set<RegExpNode*> seen_;
};
@@ -1614,9 +1610,8 @@ void DotPrinter::PrintNode(const char* label, RegExpNode* node) {
void DotPrinter::Visit(RegExpNode* node) {
- if (seen_.find(node) != seen_.end())
- return;
- seen_.insert(node);
+ if (node->info()->visited) return;
+ node->info()->visited = true;
node->Accept(this);
}
« no previous file with comments | « src/jsregexp.h ('k') | src/log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698