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

Unified Diff: src/basic-block-profiler.h

Issue 606403003: Refactor BasicBlock, no inheritance from GenericNode (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Attempt n+1 to address the size_t madness Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/basic-block-profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/basic-block-profiler.h
diff --git a/src/basic-block-profiler.h b/src/basic-block-profiler.h
index e625cd23b5fcb59b0197f243183be852b058277b..58e85427ea06ff426b3bbf14fcdaca7a7cd4596e 100644
--- a/src/basic-block-profiler.h
+++ b/src/basic-block-profiler.h
@@ -25,7 +25,7 @@ class BasicBlockProfiler {
void SetCode(OStringStream* os);
void SetFunctionName(OStringStream* os);
void SetSchedule(OStringStream* os);
- void SetBlockId(size_t offset, int block_id);
+ void SetBlockId(size_t offset, size_t block_id);
uint32_t* GetCounterAddress(size_t offset);
private:
@@ -38,7 +38,7 @@ class BasicBlockProfiler {
void ResetCounts();
const size_t n_blocks_;
- std::vector<int> block_ids_;
+ std::vector<size_t> block_ids_;
std::vector<uint32_t> counts_;
std::string function_name_;
std::string schedule_;
« no previous file with comments | « no previous file | src/basic-block-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698