Version 3.1.7

Fixed a number of crash bugs.

Improved Crankshaft for x64 and ARM.

Fixed implementation of indexOf/lastIndexOf for sparse arrays (http://crbug.com/73940).

Fixed bug in map space compaction (http://crbug.com/59688).

Added support for direct getter accessors calls on ARM.


git-svn-id: http://v8.googlecode.com/svn/trunk@6968 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 24887a0..f955d33 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -769,6 +769,10 @@
 
 
 MaybeObject* Object::GetElement(uint32_t index) {
+  // GetElement can trigger a getter which can cause allocation.
+  // This was not always the case. This ASSERT is here to catch
+  // leftover incorrect uses.
+  ASSERT(Heap::IsAllocationAllowed());
   return GetElementWithReceiver(this, index);
 }