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

Unified Diff: tracing/tracing/extras/importer/trace_code_map.html

Issue 2771723003: [tracing] Move math utilities from base into their own subdirectory (attempt 2) (Closed)
Patch Set: rebase Created 3 years, 9 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
Index: tracing/tracing/extras/importer/trace_code_map.html
diff --git a/tracing/tracing/extras/importer/trace_code_map.html b/tracing/tracing/extras/importer/trace_code_map.html
index ec159f5f2b870b040f60448d3f205db0f0f93c7b..53180d4199b272114869dca013b5f060d4cbdcbe 100644
--- a/tracing/tracing/extras/importer/trace_code_map.html
+++ b/tracing/tracing/extras/importer/trace_code_map.html
@@ -80,7 +80,7 @@ tr.exportTo('tr.e.importer', function() {
if (this.entries_.length === 0)
return undefined;
- var index = tr.b.findLowIndexInSortedArray(
+ var index = tr.b.math.findLowIndexInSortedArray(
this.entries_, function(entry) { return entry.address; }, address);
var entry = this.entries_[index];
if (!entry || entry.address !== address)
@@ -91,7 +91,7 @@ tr.exportTo('tr.e.importer', function() {
},
lookupEntry: function(address) {
- var index = tr.b.findHighIndexInSortedArray(
+ var index = tr.b.math.findHighIndexInSortedArray(
this.entries_, function(e) { return address - e.address; }) - 1;
var entry = this.entries_[index];
return entry &&
@@ -105,7 +105,7 @@ tr.exportTo('tr.e.importer', function() {
this.entries_.push(newEntry);
var endAddress = newEntry.address + newEntry.size;
- var lastIndex = tr.b.findLowIndexInSortedArray(
+ var lastIndex = tr.b.math.findLowIndexInSortedArray(
this.entries_, function(entry) { return entry.address; }, endAddress);
var index;
for (index = lastIndex - 1; index >= 0; --index) {

Powered by Google App Engine
This is Rietveld 408576698