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

Unified Diff: src/zone/zone-containers.h

Issue 2618553004: [compiler] Collect eager inner functions for compilation during renumbering. (Closed)
Patch Set: Move to ThreadedList Created 3 years, 11 months 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
« src/full-codegen/full-codegen.cc ('K') | « src/parsing/parse-info.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/zone/zone-containers.h
diff --git a/src/zone/zone-containers.h b/src/zone/zone-containers.h
index 7a53d4b25950c2fce7613e5cd22ab534cf0b8fe8..d59fb3a74368d924dd9cd2ea95c3033b3640e05d 100644
--- a/src/zone/zone-containers.h
+++ b/src/zone/zone-containers.h
@@ -13,6 +13,7 @@
#include <stack>
#include <vector>
+#include "src/utils.h"
marja 2017/01/10 10:10:43 Why?
rmcilroy 2017/01/11 10:20:11 You are right , this wasn't needed (removed anyway
#include "src/zone/zone-allocator.h"
namespace v8 {
@@ -139,6 +140,20 @@ class ZoneMultimap
typedef ZoneVector<bool> BoolVector;
typedef ZoneVector<int> IntVector;
+// Can be used to create a threaded list of |T|.
+template <typename T>
+class ThreadedListZoneEntry final : public ZoneObject {
Michael Starzinger 2017/01/10 12:26:09 This file is specifically meant to contain stdlib
rmcilroy 2017/01/11 10:20:11 I had it there originally but it means src/utils.h
+ public:
+ explicit ThreadedListZoneEntry(T value) : value_(value), next_(nullptr) {}
+
+ T value() { return value_; }
+ ThreadedListZoneEntry<T>** next() { return &next_; }
+
+ private:
+ T value_;
+ ThreadedListZoneEntry<T>* next_;
+};
jochen (gone - plz use gerrit) 2017/01/10 09:57:39 disallow copy/assign?
rmcilroy 2017/01/11 10:20:11 Done.
+
} // namespace internal
} // namespace v8
« src/full-codegen/full-codegen.cc ('K') | « src/parsing/parse-info.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698