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

Side by Side Diff: src/parsing/duplicate-finder.h

Issue 2369963002: [base] Remove PointersMatch, making a separate std::equals hashmap (Closed)
Patch Set: Fix the other simulators Created 4 years, 2 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/mips64/simulator-mips64.cc ('k') | src/ppc/simulator-ppc.h » ('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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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_PARSING_DUPLICATE_FINDER_H_ 5 #ifndef V8_PARSING_DUPLICATE_FINDER_H_
6 #define V8_PARSING_DUPLICATE_FINDER_H_ 6 #define V8_PARSING_DUPLICATE_FINDER_H_
7 7
8 #include "src/base/hashmap.h" 8 #include "src/base/hashmap.h"
9 #include "src/collector.h" 9 #include "src/collector.h"
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // form. 46 // form.
47 static bool IsNumberCanonical(Vector<const uint8_t> key); 47 static bool IsNumberCanonical(Vector<const uint8_t> key);
48 48
49 // Size of buffer. Sufficient for using it to call DoubleToCString in 49 // Size of buffer. Sufficient for using it to call DoubleToCString in
50 // from conversions.h. 50 // from conversions.h.
51 static const int kBufferSize = 100; 51 static const int kBufferSize = 100;
52 52
53 UnicodeCache* unicode_constants_; 53 UnicodeCache* unicode_constants_;
54 // Backing store used to store strings used as hashmap keys. 54 // Backing store used to store strings used as hashmap keys.
55 SequenceCollector<unsigned char> backing_store_; 55 SequenceCollector<unsigned char> backing_store_;
56 base::HashMap map_; 56 base::CustomMatcherHashMap map_;
57 // Buffer used for string->number->canonical string conversions. 57 // Buffer used for string->number->canonical string conversions.
58 char number_buffer_[kBufferSize]; 58 char number_buffer_[kBufferSize];
59 }; 59 };
60 60
61 } // namespace internal 61 } // namespace internal
62 } // namespace v8 62 } // namespace v8
63 63
64 #endif // V8_PARSING_DUPLICATE_FINDER_H_ 64 #endif // V8_PARSING_DUPLICATE_FINDER_H_
OLDNEW
« no previous file with comments | « src/mips64/simulator-mips64.cc ('k') | src/ppc/simulator-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698