OLD | NEW |
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...) Loading... |
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...) Loading... |
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 }; |
OLD | NEW |