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

Side by Side Diff: tools/codemap.js

Issue 7310025: Remove support for logging into a memory buffer. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Don't add runtime test-only functions Created 9 years, 5 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 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 /** 205 /**
206 * Returns an array of all dynamic code entries. 206 * Returns an array of all dynamic code entries.
207 */ 207 */
208 CodeMap.prototype.getAllDynamicEntries = function() { 208 CodeMap.prototype.getAllDynamicEntries = function() {
209 return this.dynamics_.exportValues(); 209 return this.dynamics_.exportValues();
210 }; 210 };
211 211
212 212
213 /** 213 /**
214 * Returns an array of pairs of all dynamic code entries and their addresses.
215 */
216 CodeMap.prototype.getAllDynamicEntriesWithAddresses = function() {
217 return this.dynamics_.exportKeysAndValues();
218 };
219
220
221 /**
214 * Returns an array of all static code entries. 222 * Returns an array of all static code entries.
215 */ 223 */
216 CodeMap.prototype.getAllStaticEntries = function() { 224 CodeMap.prototype.getAllStaticEntries = function() {
217 return this.statics_.exportValues(); 225 return this.statics_.exportValues();
218 }; 226 };
219 227
220 228
221 /** 229 /**
222 * Returns an array of all libraries entries. 230 * Returns an array of all libraries entries.
223 */ 231 */
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 264
257 265
258 CodeMap.NameGenerator.prototype.getName = function(name) { 266 CodeMap.NameGenerator.prototype.getName = function(name) {
259 if (!(name in this.knownNames_)) { 267 if (!(name in this.knownNames_)) {
260 this.knownNames_[name] = 0; 268 this.knownNames_[name] = 0;
261 return name; 269 return name;
262 } 270 }
263 var count = ++this.knownNames_[name]; 271 var count = ++this.knownNames_[name];
264 return name + ' {' + count + '}'; 272 return name + ' {' + count + '}';
265 }; 273 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698