Commit 398c5a9b authored by erik.corry@gmail.com's avatar erik.corry@gmail.com

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
parent 92bbf759
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment