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;
typedef List<HeapObject*, PreallocatedStorage> DebugObjectCache;
#define ISOLATE_INIT_LIST(V) \
/* AssertNoZoneAllocation state. */ \
V(bool, zone_allow_allocation, true) \
/* SerializerDeserializer state. */ \
V(int, serialize_partial_snapshot_cache_length, 0) \
/* Assembler state. */ \
......
......@@ -39,19 +39,7 @@ namespace v8 {
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) {
ASSERT(Isolate::Current()->zone_allow_allocation());
ASSERT(ZoneScope::nesting() > 0);
// Round up the requested size to fit the alignment.
size = RoundUp(size, kAlignment);
......
......@@ -163,15 +163,6 @@ class ZoneObject {
};
class AssertNoZoneAllocation {
public:
inline AssertNoZoneAllocation();
inline ~AssertNoZoneAllocation();
private:
bool prev_;
};
// The ZoneListAllocationPolicy is used to specialize the GenericList
// implementation to allocate ZoneLists and their elements in the
// 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