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

Side by Side Diff: src/libsampler/utils.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/libsampler/hashmap.h ('k') | src/libsampler/v8-sampler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 the V8 project 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 #ifndef V8_LIBSAMPLER_UTILS_H_
6 #define V8_LIBSAMPLER_UTILS_H_
7
8 #include "include/v8.h"
9
10 namespace v8 {
11 namespace sampler {
12
13 class Malloced {
14 public:
15 static void* New(size_t size) {
16 return malloc(size);
17 }
18
19 static void Delete(void* p) {
20 free(p);
21 }
22 };
23
24 } // namespace sampler
25 } // namespace v8
26
27 #endif // V8_LIBSAMPLER_UTILS_H_
OLDNEW
« no previous file with comments | « src/libsampler/hashmap.h ('k') | src/libsampler/v8-sampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698