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

Side by Side Diff: src/profiler/allocation-tracker.h

Issue 2010243003: Move hashmap into base/. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 6 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
« no previous file with comments | « src/ppc/simulator-ppc.h ('k') | src/profiler/allocation-tracker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_PROFILER_ALLOCATION_TRACKER_H_ 5 #ifndef V8_PROFILER_ALLOCATION_TRACKER_H_
6 #define V8_PROFILER_ALLOCATION_TRACKER_H_ 6 #define V8_PROFILER_ALLOCATION_TRACKER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "include/v8-profiler.h" 10 #include "include/v8-profiler.h"
11 #include "src/base/hashmap.h"
11 #include "src/handles.h" 12 #include "src/handles.h"
12 #include "src/hashmap.h"
13 #include "src/list.h" 13 #include "src/list.h"
14 #include "src/vector.h" 14 #include "src/vector.h"
15 15
16 namespace v8 { 16 namespace v8 {
17 namespace internal { 17 namespace internal {
18 18
19 // Forward declarations. 19 // Forward declarations.
20 class AllocationTraceTree; 20 class AllocationTraceTree;
21 class AllocationTracker; 21 class AllocationTracker;
22 class HeapObjectsMap; 22 class HeapObjectsMap;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 FunctionInfo* info_; 136 FunctionInfo* info_;
137 }; 137 };
138 static void DeleteUnresolvedLocation(UnresolvedLocation** location); 138 static void DeleteUnresolvedLocation(UnresolvedLocation** location);
139 139
140 static const int kMaxAllocationTraceLength = 64; 140 static const int kMaxAllocationTraceLength = 64;
141 HeapObjectsMap* ids_; 141 HeapObjectsMap* ids_;
142 StringsStorage* names_; 142 StringsStorage* names_;
143 AllocationTraceTree trace_tree_; 143 AllocationTraceTree trace_tree_;
144 unsigned allocation_trace_buffer_[kMaxAllocationTraceLength]; 144 unsigned allocation_trace_buffer_[kMaxAllocationTraceLength];
145 List<FunctionInfo*> function_info_list_; 145 List<FunctionInfo*> function_info_list_;
146 HashMap id_to_function_info_index_; 146 base::HashMap id_to_function_info_index_;
147 List<UnresolvedLocation*> unresolved_locations_; 147 List<UnresolvedLocation*> unresolved_locations_;
148 unsigned info_index_for_other_state_; 148 unsigned info_index_for_other_state_;
149 AddressToTraceMap address_to_trace_; 149 AddressToTraceMap address_to_trace_;
150 150
151 DISALLOW_COPY_AND_ASSIGN(AllocationTracker); 151 DISALLOW_COPY_AND_ASSIGN(AllocationTracker);
152 }; 152 };
153 153
154 } // namespace internal 154 } // namespace internal
155 } // namespace v8 155 } // namespace v8
156 156
157 #endif // V8_ALLOCATION_TRACKER_H_ 157 #endif // V8_ALLOCATION_TRACKER_H_
OLDNEW
« no previous file with comments | « src/ppc/simulator-ppc.h ('k') | src/profiler/allocation-tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698