Changeset 39697 in webkit for trunk/JavaScriptCore/bytecode/SamplingTool.cpp
- Timestamp:
- Jan 7, 2009, 5:46:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/bytecode/SamplingTool.cpp
r39252 r39697 1 1 /* 2 * Copyright (C) 2008 Apple Inc. All rights reserved.2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 260 260 if (count) { 261 261 printf(" [% 4d] has sample count: % 4d\n", op, count); 262 unsigned line = codeBlock->lineNumberForBytecodeOffset(op); 262 // It is okay to pass 0 as the CallFrame for lineNumberForBytecodeOffset since 263 // we ensure exception information when Sampling is enabled. 264 unsigned line = codeBlock->lineNumberForBytecodeOffset(0, op); 263 265 lineCounts.set(line, (lineCounts.contains(line) ? lineCounts.get(line) : 0) + count); 264 266 }
Note:
See TracChangeset
for help on using the changeset viewer.