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

Unified Diff: src/utils.h

Issue 2475433002: Turn Scope::locals_ into a ThreadedList (Closed)
Patch Set: Addressed comments Created 4 years, 1 month 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/debug/liveedit.cc ('k') | test/mjsunit/regress/regress-abort-preparsing-params.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils.h
diff --git a/src/utils.h b/src/utils.h
index dcc4756a36de0ef258c415a2d9321b0853795393..bd5589cc895196827e55e2ec8b245f087507329e 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -1648,6 +1648,15 @@ class ThreadedList final {
*tail_ = nullptr;
}
+ void MoveTail(ThreadedList<T>* parent, Iterator location) {
+ if (parent->end() != location) {
+ DCHECK_NULL(*tail_);
+ *tail_ = *location;
+ tail_ = parent->tail_;
+ parent->Rewind(location);
+ }
+ }
+
bool is_empty() const { return head_ == nullptr; }
// Slow. For testing purposes.
« no previous file with comments | « src/debug/liveedit.cc ('k') | test/mjsunit/regress/regress-abort-preparsing-params.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698