File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -194,6 +194,11 @@ struct Label {
194194 DCHECK_GE (bound_index_, 0 );
195195 }
196196
197+ // Don't copy, don't move. Moving could be implemented, but it's not
198+ // needed anywhere.
199+ Label (const Label&) = delete ;
200+ Label& operator =(const Label&) = delete ;
201+
197202 private:
198203 friend class BytecodeAssembler ;
199204
@@ -204,10 +209,6 @@ struct Label {
204209 int unbound_patch_list_begin_ = -1 ;
205210 int bound_index_;
206211 };
207-
208- // Don't copy, don't move. Moving could be implemented, but it's not
209- // needed anywhere.
210- DISALLOW_COPY_AND_ASSIGN (Label);
211212};
212213
213214class BytecodeAssembler {
Original file line number Diff line number Diff line change @@ -1777,10 +1777,11 @@ class LoopInitializationMarker {
17771777 DCHECK (node_->traversed_loop_initialization_node_ );
17781778 node_->traversed_loop_initialization_node_ = false ;
17791779 }
1780+ LoopInitializationMarker (const LoopInitializationMarker&) = delete ;
1781+ LoopInitializationMarker& operator =(const LoopInitializationMarker&) = delete ;
17801782
17811783 private:
17821784 LoopChoiceNode* node_;
1783- DISALLOW_COPY_AND_ASSIGN (LoopInitializationMarker);
17841785};
17851786
17861787// Temporarily decrements min_loop_iterations_.
@@ -1791,10 +1792,11 @@ class IterationDecrementer {
17911792 --node_->min_loop_iterations_ ;
17921793 }
17931794 ~IterationDecrementer () { ++node_->min_loop_iterations_ ; }
1795+ IterationDecrementer (const IterationDecrementer&) = delete ;
1796+ IterationDecrementer& operator =(const IterationDecrementer&) = delete ;
17941797
17951798 private:
17961799 LoopChoiceNode* node_;
1797- DISALLOW_COPY_AND_ASSIGN (IterationDecrementer);
17981800};
17991801
18001802RegExpNode* SeqRegExpNode::FilterOneByte (int depth) {
Original file line number Diff line number Diff line change @@ -125,6 +125,8 @@ uint32_t LoadPacked24Unsigned(int32_t bytecode_and_packed_arg) {
125125class BacktrackStack {
126126 public:
127127 BacktrackStack () = default ;
128+ BacktrackStack (const BacktrackStack&) = delete ;
129+ BacktrackStack& operator =(const BacktrackStack&) = delete ;
128130
129131 V8_WARN_UNUSED_RESULT bool push (int v) {
130132 data_.emplace_back (v);
@@ -157,8 +159,6 @@ class BacktrackStack {
157159
158160 static constexpr int kMaxSize =
159161 RegExpStack::kMaximumStackSize / sizeof (ValueT);
160-
161- DISALLOW_COPY_AND_ASSIGN (BacktrackStack);
162162};
163163
164164// Registers used during interpreter execution. These consist of output
Original file line number Diff line number Diff line change @@ -26,20 +26,22 @@ class RegExpStackScope {
2626 // Initializes the stack memory area if necessary.
2727 explicit RegExpStackScope (Isolate* isolate);
2828 ~RegExpStackScope (); // Releases the stack if it has grown.
29+ RegExpStackScope (const RegExpStackScope&) = delete ;
30+ RegExpStackScope& operator =(const RegExpStackScope&) = delete ;
2931
3032 RegExpStack* stack () const { return regexp_stack_; }
3133
3234 private:
3335 RegExpStack* regexp_stack_;
34-
35- DISALLOW_COPY_AND_ASSIGN (RegExpStackScope);
3636};
3737
3838
3939class RegExpStack {
4040 public:
4141 RegExpStack ();
4242 ~RegExpStack ();
43+ RegExpStack (const RegExpStack&) = delete ;
44+ RegExpStack& operator =(const RegExpStack&) = delete ;
4345
4446 // Number of allocated locations on the stack below the limit.
4547 // No sequence of pushes must be longer that this without doing a stack-limit
@@ -138,8 +140,6 @@ class RegExpStack {
138140 friend class ExternalReference ;
139141 friend class Isolate ;
140142 friend class RegExpStackScope ;
141-
142- DISALLOW_COPY_AND_ASSIGN (RegExpStack);
143143};
144144
145145} // namespace internal
You can’t perform that action at this time.
0 commit comments