Tests that the GC doesn't mistake non-pointer constant pool entries as pointers.
authorrmcilroy@chromium.org <rmcilroy@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 28 Jul 2014 10:04:36 +0000 (10:04 +0000)
committerrmcilroy@chromium.org <rmcilroy@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 28 Jul 2014 10:04:36 +0000 (10:04 +0000)
commitcc532e449b3af97bacbb357d2a66f055c33ad44c
treee08d3110cd73664be56b86940c61240778121deb
parentd9075bf07e2250d63bd58369c07c169808b08baa
Tests that the GC doesn't mistake non-pointer constant pool entries as pointers.

Adds a test for ConstantPoolArray to ensure that the GC
doesn't mistake non-pointer entries as pointers and try
to modify them during scavenge operations.

Also adds asserts to ConstantPoolArray::set(int, *Object) to
ensure we don't add new-space pointers in constant pool
array.

R=hpayer@chromium.org

Committed: https://code.google.com/p/v8/source/detail?r=22608

Review URL: https://codereview.chromium.org/396803009

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22634 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/objects-inl.h
test/cctest/test-constantpool.cc