Lines Matching full:pages_
318 base.exportTo("tracing.importer.v8",function(){function d(){this.dynamics_=new tracing.importer.v8.SplayTree;this.dynamicsNameGen_=new tracing.importer.v8.CodeMap.NameGenerator;this.statics_=new tracing.importer.v8.SplayTree;this.libraries_=new tracing.importer.v8.SplayTree;this.pages_=[]}d.PAGE_ALIGNMENT=12;d.PAGE_SIZE=1<<d.PAGE_ALIGNMENT;d.prototype.addCode=function(c,a){this.deleteAllCoveredNodes_(this.dynamics_,c,c+a.size);this.dynamics_.insert(c,a)};d.prototype.moveCode=function(c,a){var b=this.dynamics_.remove(c);
319 this.deleteAllCoveredNodes_(this.dynamics_,a,a+b.value.size);this.dynamics_.insert(a,b.value)};d.prototype.deleteCode=function(c){this.dynamics_.remove(c)};d.prototype.addLibrary=function(c,a){this.markPages_(c,c+a.size);this.libraries_.insert(c,a)};d.prototype.addStaticCode=function(c,a){this.statics_.insert(c,a)};d.prototype.markPages_=function(c,a){for(var b=c;b<=a;b+=d.PAGE_SIZE)this.pages_[b>>>d.PAGE_ALIGNMENT]=1};d.prototype.deleteAllCoveredNodes_=function(c,a,b){for(var d=[],e=b-1;e>=a;){var g=
320 c.findGreatestLessThan(e);if(!g)break;e=g.key;g=e+g.value.size;e<b&&a<g&&d.push(e);e-=1}a=0;for(b=d.length;a<b;++a)c.remove(d[a])};d.prototype.isAddressBelongsTo_=function(c,a){return c>=a.key&&c<a.key+a.value.size};d.prototype.findInTree_=function(c,a){var b=c.findGreatestLessThan(a);return b&&this.isAddressBelongsTo_(a,b)?b.value:null};d.prototype.findEntry=function(c){if(c>>>d.PAGE_ALIGNMENT in this.pages_)return this.findInTree_(this.statics_,c)||this.findInTree_(this.libraries_,c);var a=this.dynamics_.findMin(),