| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |