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

Side by Side Diff: courgette/rel32_finder.cc

Issue 2008253004: Refactor rel32 searching process for x64 to make it more similar to x86. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include <stdint.h>
huangs 2016/05/26 18:34:34 Do you need this include?
etiennep 2016/05/26 20:50:09 Nop.
6
7 #include "courgette/rel32_finder.h"
8
9 namespace courgette {
10
11 Rel32Finder::Rel32Finder(RVA relocs_start_rva, RVA relocs_end_rva)
12 : relocs_start_rva_(relocs_start_rva), relocs_end_rva_(relocs_end_rva) {}
13
14 void Rel32Finder::SwapRel32Locations(std::vector<RVA>* dest) {
15 dest->swap(rel32_locations_);
16 }
17
18 #if COURGETTE_HISTOGRAM_TARGETS
19 void Rel32FinderX86::SwapRel32TargetRVAs(std::map<RVA, int>* dest) {
20 dest->swap(rel32_target_rvas_);
21 }
22 #endif
23
24 } // namespace courgette
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698