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

Unified Diff: src/gdb-jit.cc

Issue 1074943002: Split TemplateHashMapImpl::Lookup into two methods (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm (and ppc) builds Created 5 years, 8 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
« no previous file with comments | « src/debug.cc ('k') | src/hashmap.h » ('j') | src/hashmap.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gdb-jit.cc
diff --git a/src/gdb-jit.cc b/src/gdb-jit.cc
index 044f6fe3f423cf759da6ed69dcd10270610c7342..0664c6091a68f299db7822a69c06cf12eeb6c25f 100644
--- a/src/gdb-jit.cc
+++ b/src/gdb-jit.cc
@@ -1972,7 +1972,7 @@ static HashMap* GetLineMap() {
static void PutLineInfo(Address addr, LineInfo* info) {
HashMap* line_map = GetLineMap();
- HashMap::Entry* e = line_map->Lookup(addr, HashCodeAddress(addr), true);
+ HashMap::Entry* e = line_map->LookupOrInsert(addr, HashCodeAddress(addr));
if (e->value != NULL) delete static_cast<LineInfo*>(e->value);
e->value = info;
}
« no previous file with comments | « src/debug.cc ('k') | src/hashmap.h » ('j') | src/hashmap.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698