Upgrade V8 to version 4.9.385.28
https://chromium.googlesource.com/v8/v8/+/4.9.385.28
FPIIM-449
Change-Id: I4b2e74289d4bf3667f2f3dc8aa2e541f63e26eb4
diff --git a/src/compiler/zone-pool.h b/src/compiler/zone-pool.h
index 8b43265..aaf9daa 100644
--- a/src/compiler/zone-pool.h
+++ b/src/compiler/zone-pool.h
@@ -9,26 +9,27 @@
#include <set>
#include <vector>
-#include "src/v8.h"
+#include "src/zone.h"
namespace v8 {
namespace internal {
namespace compiler {
-class ZonePool FINAL {
+class ZonePool final {
public:
- class Scope FINAL {
+ class Scope final {
public:
- explicit Scope(ZonePool* zone_pool) : zone_pool_(zone_pool), zone_(NULL) {}
+ explicit Scope(ZonePool* zone_pool)
+ : zone_pool_(zone_pool), zone_(nullptr) {}
~Scope() { Destroy(); }
Zone* zone() {
- if (zone_ == NULL) zone_ = zone_pool_->NewEmptyZone();
+ if (zone_ == nullptr) zone_ = zone_pool_->NewEmptyZone();
return zone_;
}
void Destroy() {
- if (zone_ != NULL) zone_pool_->ReturnZone(zone_);
- zone_ = NULL;
+ if (zone_ != nullptr) zone_pool_->ReturnZone(zone_);
+ zone_ = nullptr;
}
private:
@@ -37,7 +38,7 @@
DISALLOW_COPY_AND_ASSIGN(Scope);
};
- class StatsScope FINAL {
+ class StatsScope final {
public:
explicit StatsScope(ZonePool* zone_pool);
~StatsScope();
@@ -60,7 +61,7 @@
DISALLOW_COPY_AND_ASSIGN(StatsScope);
};
- explicit ZonePool(Isolate* isolate);
+ ZonePool();
~ZonePool();
size_t GetMaxAllocatedBytes();
@@ -76,7 +77,6 @@
typedef std::vector<Zone*> Used;
typedef std::vector<StatsScope*> Stats;
- Isolate* const isolate_;
Unused unused_;
Used used_;
Stats stats_;