Split TemplateHashMapImpl::Lookup into two methods
authoradamk <adamk@chromium.org>
Mon, 13 Apr 2015 19:01:15 +0000 (12:01 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 13 Apr 2015 19:01:15 +0000 (19:01 +0000)
commit5277c41044d94ce6452e5fcf6ed703d6c1dcfe4b
tree16d7581678433ca63844c344e14d66f3743646c7
parent186dd69b3a708171a1309be9509b8985bc20e305
Split TemplateHashMapImpl::Lookup into two methods

This avoids both a mysterious boolean argument ("insert") and lets
non-mutating lookups skip passing an allocator (in one such case,
we were passing a scary-looking ZoneAllocationPolicy(NULL)!).

Review URL: https://codereview.chromium.org/1074943002

Cr-Commit-Position: refs/heads/master@{#27799}
24 files changed:
src/allocation-tracker.cc
src/arm/simulator-arm.cc
src/ast-value-factory.cc
src/ast.cc
src/bootstrapper.cc
src/compiler/state-values-utils.cc
src/d8.h
src/debug.cc
src/gdb-jit.cc
src/hashmap.h
src/heap-snapshot-generator.cc
src/heap/spaces.cc
src/hydrogen-bce.cc
src/modules.cc
src/ppc/simulator-ppc.cc
src/profile-generator.cc
src/scanner.cc
src/scopes.cc
src/snapshot/serialize.cc
src/snapshot/serialize.h
src/strings-storage.cc
test/cctest/test-api.cc
test/cctest/test-hashmap.cc
test/cctest/test-heap-profiler.cc