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

Side by Side Diff: tools/codemap.js

Issue 1884493003: Dump C++ symbols and merge into v8 log. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | tools/dump-cpp.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 239
240 /** 240 /**
241 * Returns an array of all static code entries. 241 * Returns an array of all static code entries.
242 */ 242 */
243 CodeMap.prototype.getAllStaticEntries = function() { 243 CodeMap.prototype.getAllStaticEntries = function() {
244 return this.statics_.exportValues(); 244 return this.statics_.exportValues();
245 }; 245 };
246 246
247 247
248 /** 248 /**
249 * Returns an array of pairs of all static code entries and their addresses.
250 */
251 CodeMap.prototype.getAllStaticEntriesWithAddresses = function() {
252 return this.statics_.exportKeysAndValues();
253 };
254
255
256 /**
249 * Returns an array of all libraries entries. 257 * Returns an array of all libraries entries.
250 */ 258 */
251 CodeMap.prototype.getAllLibrariesEntries = function() { 259 CodeMap.prototype.getAllLibrariesEntries = function() {
252 return this.libraries_.exportValues(); 260 return this.libraries_.exportValues();
253 }; 261 };
254 262
255 263
256 /** 264 /**
257 * Creates a code entry object. 265 * Creates a code entry object.
258 * 266 *
(...skipping 26 matching lines...) Expand all
285 293
286 294
287 CodeMap.NameGenerator.prototype.getName = function(name) { 295 CodeMap.NameGenerator.prototype.getName = function(name) {
288 if (!(name in this.knownNames_)) { 296 if (!(name in this.knownNames_)) {
289 this.knownNames_[name] = 0; 297 this.knownNames_[name] = 0;
290 return name; 298 return name;
291 } 299 }
292 var count = ++this.knownNames_[name]; 300 var count = ++this.knownNames_[name];
293 return name + ' {' + count + '}'; 301 return name + ' {' + count + '}';
294 }; 302 };
OLDNEW
« no previous file with comments | « no previous file | tools/dump-cpp.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698