diff options
Diffstat (limited to 'deps/v8/test/unittests/compiler/zone-pool-unittest.cc')
-rw-r--r-- | deps/v8/test/unittests/compiler/zone-pool-unittest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/deps/v8/test/unittests/compiler/zone-pool-unittest.cc b/deps/v8/test/unittests/compiler/zone-pool-unittest.cc index e23557adc4..3bfde4bdce 100644 --- a/deps/v8/test/unittests/compiler/zone-pool-unittest.cc +++ b/deps/v8/test/unittests/compiler/zone-pool-unittest.cc @@ -12,7 +12,7 @@ namespace compiler { class ZonePoolTest : public TestWithIsolate { public: - ZonePoolTest() : zone_pool_(isolate()) {} + ZonePoolTest() {} protected: ZonePool* zone_pool() { return &zone_pool_; } @@ -32,9 +32,9 @@ class ZonePoolTest : public TestWithIsolate { size_t Allocate(Zone* zone) { size_t bytes = rng.NextInt(25) + 7; - int size_before = zone->allocation_size(); - zone->New(static_cast<int>(bytes)); - return static_cast<size_t>(zone->allocation_size() - size_before); + size_t size_before = zone->allocation_size(); + zone->New(bytes); + return zone->allocation_size() - size_before; } private: |