OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // | 2 // |
3 // Tests for heap profiler | 3 // Tests for heap profiler |
4 | 4 |
5 #include <ctype.h> | 5 #include <ctype.h> |
6 | 6 |
7 #include "v8.h" | 7 #include "v8.h" |
8 | 8 |
9 #include "cctest.h" | 9 #include "cctest.h" |
10 #include "hashmap.h" | 10 #include "hashmap.h" |
(...skipping 997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1008 } | 1008 } |
1009 } | 1009 } |
1010 CHECK(false); | 1010 CHECK(false); |
1011 return NULL; | 1011 return NULL; |
1012 } | 1012 } |
1013 | 1013 |
1014 static i::List<TestRetainedObjectInfo*> instances; | 1014 static i::List<TestRetainedObjectInfo*> instances; |
1015 | 1015 |
1016 private: | 1016 private: |
1017 bool disposed_; | 1017 bool disposed_; |
1018 int category_; | |
1019 int hash_; | 1018 int hash_; |
1020 const char* group_label_; | 1019 const char* group_label_; |
1021 const char* label_; | 1020 const char* label_; |
1022 intptr_t element_count_; | 1021 intptr_t element_count_; |
1023 intptr_t size_; | 1022 intptr_t size_; |
1024 }; | 1023 }; |
1025 | 1024 |
1026 | 1025 |
1027 i::List<TestRetainedObjectInfo*> TestRetainedObjectInfo::instances; | 1026 i::List<TestRetainedObjectInfo*> TestRetainedObjectInfo::instances; |
1028 } | 1027 } |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1674 const v8::HeapGraphNode* map = | 1673 const v8::HeapGraphNode* map = |
1675 GetProperty(global_object, v8::HeapGraphEdge::kInternal, "map"); | 1674 GetProperty(global_object, v8::HeapGraphEdge::kInternal, "map"); |
1676 CHECK_NE(NULL, map); | 1675 CHECK_NE(NULL, map); |
1677 const v8::HeapGraphNode* own_descriptors = GetProperty( | 1676 const v8::HeapGraphNode* own_descriptors = GetProperty( |
1678 map, v8::HeapGraphEdge::kInternal, "descriptors"); | 1677 map, v8::HeapGraphEdge::kInternal, "descriptors"); |
1679 CHECK_NE(NULL, own_descriptors); | 1678 CHECK_NE(NULL, own_descriptors); |
1680 const v8::HeapGraphNode* own_transitions = GetProperty( | 1679 const v8::HeapGraphNode* own_transitions = GetProperty( |
1681 map, v8::HeapGraphEdge::kInternal, "transitions"); | 1680 map, v8::HeapGraphEdge::kInternal, "transitions"); |
1682 CHECK_EQ(NULL, own_transitions); | 1681 CHECK_EQ(NULL, own_transitions); |
1683 } | 1682 } |
OLD | NEW |