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 2319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2330 heap_profiler->TakeHeapSnapshot(v8_str("snapshot")); | 2330 heap_profiler->TakeHeapSnapshot(v8_str("snapshot")); |
2331 CHECK(ValidateSnapshot(snapshot)); | 2331 CHECK(ValidateSnapshot(snapshot)); |
2332 const v8::HeapGraphNode* global = GetGlobalObject(snapshot); | 2332 const v8::HeapGraphNode* global = GetGlobalObject(snapshot); |
2333 const v8::HeapGraphNode* arr1_obj = | 2333 const v8::HeapGraphNode* arr1_obj = |
2334 GetProperty(global, v8::HeapGraphEdge::kProperty, "arr1"); | 2334 GetProperty(global, v8::HeapGraphEdge::kProperty, "arr1"); |
2335 CHECK_NE(NULL, arr1_obj); | 2335 CHECK_NE(NULL, arr1_obj); |
2336 const v8::HeapGraphNode* arr1_buffer = | 2336 const v8::HeapGraphNode* arr1_buffer = |
2337 GetProperty(arr1_obj, v8::HeapGraphEdge::kInternal, "buffer"); | 2337 GetProperty(arr1_obj, v8::HeapGraphEdge::kInternal, "buffer"); |
2338 CHECK_NE(NULL, arr1_buffer); | 2338 CHECK_NE(NULL, arr1_buffer); |
2339 const v8::HeapGraphNode* first_view = | 2339 const v8::HeapGraphNode* first_view = |
2340 GetProperty(arr1_buffer, v8::HeapGraphEdge::kWeak, "2"); | 2340 GetProperty(arr1_buffer, v8::HeapGraphEdge::kWeak, "weak_first_view"); |
2341 CHECK_NE(NULL, first_view); | 2341 CHECK_NE(NULL, first_view); |
2342 } | 2342 } |
OLD | NEW |