summaryrefslogtreecommitdiffstats
path: root/src/objects-debug.cc
diff options
context:
space:
mode:
authorKristian Monsen <kristianm@google.com>2010-09-08 11:05:35 +0100
committerKristian Monsen <kristianm@google.com>2010-09-08 11:48:46 +0100
commit80d68eab642096c1a48b6474d6ec33064b0ad1f5 (patch)
tree6d3389d4fa4ca4a913970f75df6bbad6b1c858e9 /src/objects-debug.cc
parent791712a13f1814dd3ab5d1a5ab8ff5dbc476f6d6 (diff)
downloadandroid_external_v8-80d68eab642096c1a48b6474d6ec33064b0ad1f5.tar.gz
android_external_v8-80d68eab642096c1a48b6474d6ec33064b0ad1f5.tar.bz2
android_external_v8-80d68eab642096c1a48b6474d6ec33064b0ad1f5.zip
Update V8 to r5388 as required by WebKit r66666
Change-Id: Ib3c42e9b7226d22c65c7077c543fe31afe62a318
Diffstat (limited to 'src/objects-debug.cc')
-rw-r--r--src/objects-debug.cc27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/objects-debug.cc b/src/objects-debug.cc
index 91aba269..6d49d750 100644
--- a/src/objects-debug.cc
+++ b/src/objects-debug.cc
@@ -30,6 +30,7 @@
#include "disassembler.h"
#include "disasm.h"
#include "jsregexp.h"
+#include "objects-visiting.h"
namespace v8 {
namespace internal {
@@ -648,6 +649,17 @@ void Map::MapVerify() {
}
+void Map::NormalizedMapVerify() {
+ MapVerify();
+ ASSERT_EQ(Heap::empty_descriptor_array(), instance_descriptors());
+ ASSERT_EQ(Heap::empty_fixed_array(), code_cache());
+ ASSERT_EQ(0, pre_allocated_property_fields());
+ ASSERT_EQ(0, unused_property_fields());
+ ASSERT_EQ(StaticVisitorBase::GetVisitorId(instance_type(), instance_size()),
+ visitor_id());
+}
+
+
void CodeCache::CodeCachePrint() {
HeapObject::PrintHeader("CodeCache");
PrintF("\n - default_cache: ");
@@ -1363,6 +1375,21 @@ void JSFunctionResultCache::JSFunctionResultCacheVerify() {
}
+void NormalizedMapCache::NormalizedMapCacheVerify() {
+ FixedArray::cast(this)->Verify();
+ if (FLAG_enable_slow_asserts) {
+ for (int i = 0; i < length(); i++) {
+ Object* e = get(i);
+ if (e->IsMap()) {
+ Map::cast(e)->NormalizedMapVerify();
+ } else {
+ ASSERT(e->IsUndefined());
+ }
+ }
+ }
+}
+
+
#endif // DEBUG
} } // namespace v8::internal