Revision: 10792
Author:   yang...@chromium.org
Date:     Wed Feb 22 04:21:18 2012
Log:      Remove unused class AssertNoZoneAllocation.

BUG=v8:1962
TEST=

Review URL: https://chromiumcodereview.appspot.com/9430044
http://code.google.com/p/v8/source/detail?r=10792

Modified:
 /branches/bleeding_edge/src/isolate.h
 /branches/bleeding_edge/src/zone-inl.h
 /branches/bleeding_edge/src/zone.h

=======================================
--- /branches/bleeding_edge/src/isolate.h       Wed Feb  8 01:56:33 2012
+++ /branches/bleeding_edge/src/isolate.h       Wed Feb 22 04:21:18 2012
@@ -333,8 +333,6 @@
 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. */ \
=======================================
--- /branches/bleeding_edge/src/zone-inl.h      Mon Jan 30 02:49:25 2012
+++ /branches/bleeding_edge/src/zone-inl.h      Wed Feb 22 04:21:18 2012
@@ -37,21 +37,9 @@

 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);
=======================================
--- /branches/bleeding_edge/src/zone.h  Mon Jan 30 02:49:25 2012
+++ /branches/bleeding_edge/src/zone.h  Wed Feb 22 04:21:18 2012
@@ -163,15 +163,6 @@
 };


-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.

--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev

Reply via email to