| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 2053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2064 const v8::HeapGraphNode* descriptors = | 2064 const v8::HeapGraphNode* descriptors = |
| 2065 GetProperty(map, v8::HeapGraphEdge::kInternal, "descriptors"); | 2065 GetProperty(map, v8::HeapGraphEdge::kInternal, "descriptors"); |
| 2066 CHECK(descriptors); | 2066 CHECK(descriptors); |
| 2067 const v8::HeapGraphNode* length_name = | 2067 const v8::HeapGraphNode* length_name = |
| 2068 GetProperty(descriptors, v8::HeapGraphEdge::kInternal, "2"); | 2068 GetProperty(descriptors, v8::HeapGraphEdge::kInternal, "2"); |
| 2069 CHECK(length_name); | 2069 CHECK(length_name); |
| 2070 CHECK_EQ(0, strcmp("length", *v8::String::Utf8Value(length_name->GetName()))); | 2070 CHECK_EQ(0, strcmp("length", *v8::String::Utf8Value(length_name->GetName()))); |
| 2071 const v8::HeapGraphNode* length_accessor = | 2071 const v8::HeapGraphNode* length_accessor = |
| 2072 GetProperty(descriptors, v8::HeapGraphEdge::kInternal, "4"); | 2072 GetProperty(descriptors, v8::HeapGraphEdge::kInternal, "4"); |
| 2073 CHECK(length_accessor); | 2073 CHECK(length_accessor); |
| 2074 CHECK_EQ(0, strcmp("system / ExecutableAccessorInfo", | 2074 CHECK_EQ(0, strcmp("system / AccessorInfo", |
| 2075 *v8::String::Utf8Value(length_accessor->GetName()))); | 2075 *v8::String::Utf8Value(length_accessor->GetName()))); |
| 2076 const v8::HeapGraphNode* name = | 2076 const v8::HeapGraphNode* name = |
| 2077 GetProperty(length_accessor, v8::HeapGraphEdge::kInternal, "name"); | 2077 GetProperty(length_accessor, v8::HeapGraphEdge::kInternal, "name"); |
| 2078 CHECK(name); | 2078 CHECK(name); |
| 2079 const v8::HeapGraphNode* getter = | 2079 const v8::HeapGraphNode* getter = |
| 2080 GetProperty(length_accessor, v8::HeapGraphEdge::kInternal, "getter"); | 2080 GetProperty(length_accessor, v8::HeapGraphEdge::kInternal, "getter"); |
| 2081 CHECK(getter); | 2081 CHECK(getter); |
| 2082 const v8::HeapGraphNode* setter = | 2082 const v8::HeapGraphNode* setter = |
| 2083 GetProperty(length_accessor, v8::HeapGraphEdge::kInternal, "setter"); | 2083 GetProperty(length_accessor, v8::HeapGraphEdge::kInternal, "setter"); |
| 2084 CHECK(setter); | 2084 CHECK(setter); |
| (...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2845 map.AddRange(ToAddress(0x180), 0x80, 6U); | 2845 map.AddRange(ToAddress(0x180), 0x80, 6U); |
| 2846 map.AddRange(ToAddress(0x180), 0x80, 7U); | 2846 map.AddRange(ToAddress(0x180), 0x80, 7U); |
| 2847 CHECK_EQ(7u, map.GetTraceNodeId(ToAddress(0x180))); | 2847 CHECK_EQ(7u, map.GetTraceNodeId(ToAddress(0x180))); |
| 2848 CHECK_EQ(5u, map.GetTraceNodeId(ToAddress(0x200))); | 2848 CHECK_EQ(5u, map.GetTraceNodeId(ToAddress(0x200))); |
| 2849 CHECK_EQ(3u, map.size()); | 2849 CHECK_EQ(3u, map.size()); |
| 2850 | 2850 |
| 2851 map.Clear(); | 2851 map.Clear(); |
| 2852 CHECK_EQ(0u, map.size()); | 2852 CHECK_EQ(0u, map.size()); |
| 2853 CHECK_EQ(0u, map.GetTraceNodeId(ToAddress(0x400))); | 2853 CHECK_EQ(0u, map.GetTraceNodeId(ToAddress(0x400))); |
| 2854 } | 2854 } |
| OLD | NEW |