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

Side by Side Diff: tools/codemap.js

Issue 638633002: Tick processor: Print C++ entry points (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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
« no previous file with comments | « test/mjsunit/tools/tickprocessor-test.separate-ic ('k') | tools/logreader.js » ('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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 */ 250 */
251 CodeMap.prototype.getAllLibrariesEntries = function() { 251 CodeMap.prototype.getAllLibrariesEntries = function() {
252 return this.libraries_.exportValues(); 252 return this.libraries_.exportValues();
253 }; 253 };
254 254
255 255
256 /** 256 /**
257 * Creates a code entry object. 257 * Creates a code entry object.
258 * 258 *
259 * @param {number} size Code entry size in bytes. 259 * @param {number} size Code entry size in bytes.
260 * @param {string} opt_name Code entry name. 260 * @param {string} opt_name Code entry name.
yurys 2014/10/15 05:35:47 opt_type parameter annotation is missing
Jakob Kummerow 2014/10/15 15:08:57 Done.
261 * @constructor 261 * @constructor
262 */ 262 */
263 CodeMap.CodeEntry = function(size, opt_name) { 263 CodeMap.CodeEntry = function(size, opt_name, opt_type) {
loislo 2014/10/14 15:49:15 please annotate
Jakob Kummerow 2014/10/15 15:08:57 Done.
264 this.size = size; 264 this.size = size;
265 this.name = opt_name || ''; 265 this.name = opt_name || '';
266 this.type = opt_type || '';
266 this.nameUpdated_ = false; 267 this.nameUpdated_ = false;
267 }; 268 };
268 269
269 270
270 CodeMap.CodeEntry.prototype.getName = function() { 271 CodeMap.CodeEntry.prototype.getName = function() {
271 return this.name; 272 return this.name;
272 }; 273 };
273 274
274 275
275 CodeMap.CodeEntry.prototype.toString = function() { 276 CodeMap.CodeEntry.prototype.toString = function() {
276 return this.name + ': ' + this.size.toString(16); 277 return this.name + ': ' + this.size.toString(16);
277 }; 278 };
278 279
279 280
280 CodeMap.NameGenerator = function() { 281 CodeMap.NameGenerator = function() {
281 this.knownNames_ = {}; 282 this.knownNames_ = {};
282 }; 283 };
283 284
284 285
285 CodeMap.NameGenerator.prototype.getName = function(name) { 286 CodeMap.NameGenerator.prototype.getName = function(name) {
286 if (!(name in this.knownNames_)) { 287 if (!(name in this.knownNames_)) {
287 this.knownNames_[name] = 0; 288 this.knownNames_[name] = 0;
288 return name; 289 return name;
289 } 290 }
290 var count = ++this.knownNames_[name]; 291 var count = ++this.knownNames_[name];
291 return name + ' {' + count + '}'; 292 return name + ' {' + count + '}';
292 }; 293 };
OLDNEW
« no previous file with comments | « test/mjsunit/tools/tickprocessor-test.separate-ic ('k') | tools/logreader.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698