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
This commit is contained in:
parent
92bbf75971
commit
398c5a9b37
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user