Commit 5632b6d0 authored by yangguo@chromium.org's avatar yangguo@chromium.org

Remove unused class AssertNoZoneAllocation.

BUG=v8:1962
TEST=

Review URL: https://chromiumcodereview.appspot.com/9430044

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10792 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 7de6be06
...@@ -333,8 +333,6 @@ class HashMap; ...@@ -333,8 +333,6 @@ class HashMap;
typedef List<HeapObject*, PreallocatedStorage> DebugObjectCache; typedef List<HeapObject*, PreallocatedStorage> DebugObjectCache;
#define ISOLATE_INIT_LIST(V) \ #define ISOLATE_INIT_LIST(V) \
/* AssertNoZoneAllocation state. */ \
V(bool, zone_allow_allocation, true) \
/* SerializerDeserializer state. */ \ /* SerializerDeserializer state. */ \
V(int, serialize_partial_snapshot_cache_length, 0) \ V(int, serialize_partial_snapshot_cache_length, 0) \
/* Assembler state. */ \ /* Assembler state. */ \
......
...@@ -39,19 +39,7 @@ namespace v8 { ...@@ -39,19 +39,7 @@ namespace v8 {
namespace internal { namespace internal {
AssertNoZoneAllocation::AssertNoZoneAllocation()
: prev_(Isolate::Current()->zone_allow_allocation()) {
Isolate::Current()->set_zone_allow_allocation(false);
}
AssertNoZoneAllocation::~AssertNoZoneAllocation() {
Isolate::Current()->set_zone_allow_allocation(prev_);
}
inline void* Zone::New(int size) { inline void* Zone::New(int size) {
ASSERT(Isolate::Current()->zone_allow_allocation());
ASSERT(ZoneScope::nesting() > 0); ASSERT(ZoneScope::nesting() > 0);
// Round up the requested size to fit the alignment. // Round up the requested size to fit the alignment.
size = RoundUp(size, kAlignment); size = RoundUp(size, kAlignment);
......
...@@ -163,15 +163,6 @@ class ZoneObject { ...@@ -163,15 +163,6 @@ class ZoneObject {
}; };
class AssertNoZoneAllocation {
public:
inline AssertNoZoneAllocation();
inline ~AssertNoZoneAllocation();
private:
bool prev_;
};
// The ZoneListAllocationPolicy is used to specialize the GenericList // The ZoneListAllocationPolicy is used to specialize the GenericList
// implementation to allocate ZoneLists and their elements in the // implementation to allocate ZoneLists and their elements in the
// Zone. // Zone.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment