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

Side by Side Diff: src/regexp/jsregexp.h

Issue 1528333002: [regexp] clear QuickCheckDetails for backward reads. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix assertions 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/regexp/jsregexp.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_REGEXP_JSREGEXP_H_ 5 #ifndef V8_REGEXP_JSREGEXP_H_
6 #define V8_REGEXP_JSREGEXP_H_ 6 #define V8_REGEXP_JSREGEXP_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 10
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 Trace* trace, 1107 Trace* trace,
1108 PreloadState* preloads); 1108 PreloadState* preloads);
1109 DispatchTable* table_; 1109 DispatchTable* table_;
1110 // If true, this node is never checked at the start of the input. 1110 // If true, this node is never checked at the start of the input.
1111 // Allows a new trace to start with at_start() set to false. 1111 // Allows a new trace to start with at_start() set to false.
1112 bool not_at_start_; 1112 bool not_at_start_;
1113 bool being_calculated_; 1113 bool being_calculated_;
1114 }; 1114 };
1115 1115
1116 1116
1117 class NegativeLookaheadChoiceNode: public ChoiceNode { 1117 class NegativeLookaroundChoiceNode : public ChoiceNode {
1118 public: 1118 public:
1119 explicit NegativeLookaheadChoiceNode(GuardedAlternative this_must_fail, 1119 explicit NegativeLookaroundChoiceNode(GuardedAlternative this_must_fail,
1120 GuardedAlternative then_do_this, 1120 GuardedAlternative then_do_this,
1121 Zone* zone) 1121 Zone* zone)
1122 : ChoiceNode(2, zone) { 1122 : ChoiceNode(2, zone) {
1123 AddAlternative(this_must_fail); 1123 AddAlternative(this_must_fail);
1124 AddAlternative(then_do_this); 1124 AddAlternative(then_do_this);
1125 } 1125 }
1126 virtual int EatsAtLeast(int still_to_find, int budget, bool not_at_start); 1126 virtual int EatsAtLeast(int still_to_find, int budget, bool not_at_start);
1127 virtual void GetQuickCheckDetails(QuickCheckDetails* details, 1127 virtual void GetQuickCheckDetails(QuickCheckDetails* details,
1128 RegExpCompiler* compiler, 1128 RegExpCompiler* compiler,
1129 int characters_filled_in, 1129 int characters_filled_in,
1130 bool not_at_start); 1130 bool not_at_start);
1131 virtual void FillInBMInfo(Isolate* isolate, int offset, int budget, 1131 virtual void FillInBMInfo(Isolate* isolate, int offset, int budget,
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
1678 static const int kStringOffset = 0; 1678 static const int kStringOffset = 0;
1679 static const int kPatternOffset = 1; 1679 static const int kPatternOffset = 1;
1680 static const int kArrayOffset = 2; 1680 static const int kArrayOffset = 2;
1681 static const int kLastMatchOffset = 3; 1681 static const int kLastMatchOffset = 3;
1682 }; 1682 };
1683 1683
1684 } // namespace internal 1684 } // namespace internal
1685 } // namespace v8 1685 } // namespace v8
1686 1686
1687 #endif // V8_REGEXP_JSREGEXP_H_ 1687 #endif // V8_REGEXP_JSREGEXP_H_
OLDNEW
« no previous file with comments | « no previous file | src/regexp/jsregexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698