Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(538)

Side by Side Diff: test/cctest/test-heap-profiler.cc

Issue 145353003: Allow arbitrary names for weak references in heap snapshots. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Reupload Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« src/heap-snapshot-generator.cc ('K') | « src/heap-snapshot-generator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698