From 398c5a9b3704a5283b6b2fdceaf7dc0cc306d245 Mon Sep 17 00:00:00 2001 From: "erik.corry@gmail.com" Date: Tue, 16 Jun 2009 15:01:24 +0000 Subject: [PATCH] Use >>> instead of >> in order to cover the full 32 bit range when handling addresses. Review URL: http://codereview.chromium.org/125187 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2193 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- tools/codemap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/codemap.js b/tools/codemap.js index 3766db048..d6df7fa96 100644 --- a/tools/codemap.js +++ b/tools/codemap.js @@ -126,7 +126,7 @@ devtools.profiler.CodeMap.prototype.addStaticCode = function( devtools.profiler.CodeMap.prototype.markPages_ = function(start, end) { for (var addr = start; addr <= end; addr += devtools.profiler.CodeMap.PAGE_SIZE) { - this.pages_[addr >> devtools.profiler.CodeMap.PAGE_ALIGNMENT] = 1; + this.pages_[addr >>> devtools.profiler.CodeMap.PAGE_ALIGNMENT] = 1; } }; @@ -155,7 +155,7 @@ devtools.profiler.CodeMap.prototype.findInTree_ = function(tree, addr) { * @param {number} addr Address. */ devtools.profiler.CodeMap.prototype.findEntry = function(addr) { - var pageAddr = addr >> devtools.profiler.CodeMap.PAGE_ALIGNMENT; + var pageAddr = addr >>> devtools.profiler.CodeMap.PAGE_ALIGNMENT; if (pageAddr in this.pages_) { return this.findInTree_(this.statics_, addr); } -- 2.34.1