| OLD | NEW |
| 1 // Copyright 2017 the V8 project authors. All rights reserved. | 1 // Copyright 2017 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_OBJECTS_CODE_CACHE_H_ | 5 #ifndef V8_OBJECTS_CODE_CACHE_H_ |
| 6 #define V8_OBJECTS_CODE_CACHE_H_ | 6 #define V8_OBJECTS_CODE_CACHE_H_ |
| 7 | 7 |
| 8 #include "src/objects/hash-table.h" | 8 #include "src/objects/hash-table.h" |
| 9 | 9 |
| 10 // Has to be the last include (doesn't have include guards): | 10 // Has to be the last include (doesn't have include guards): |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 }; | 89 }; |
| 90 | 90 |
| 91 class CodeCacheHashTable | 91 class CodeCacheHashTable |
| 92 : public HashTable<CodeCacheHashTable, CodeCacheHashTableShape> { | 92 : public HashTable<CodeCacheHashTable, CodeCacheHashTableShape> { |
| 93 public: | 93 public: |
| 94 static Handle<CodeCacheHashTable> Put(Handle<CodeCacheHashTable> table, | 94 static Handle<CodeCacheHashTable> Put(Handle<CodeCacheHashTable> table, |
| 95 Handle<Name> name, Handle<Code> code); | 95 Handle<Name> name, Handle<Code> code); |
| 96 | 96 |
| 97 Code* Lookup(Name* name, Code::Flags flags); | 97 Code* Lookup(Name* name, Code::Flags flags); |
| 98 | 98 |
| 99 DECLARE_CAST(CodeCacheHashTable) | 99 DECL_CAST(CodeCacheHashTable) |
| 100 | 100 |
| 101 private: | 101 private: |
| 102 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeCacheHashTable); | 102 DISALLOW_IMPLICIT_CONSTRUCTORS(CodeCacheHashTable); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace internal | 105 } // namespace internal |
| 106 } // namespace v8 | 106 } // namespace v8 |
| 107 | 107 |
| 108 #include "src/objects/object-macros-undef.h" | 108 #include "src/objects/object-macros-undef.h" |
| 109 | 109 |
| 110 #endif // V8_OBJECTS_CODE_CACHE_H_ | 110 #endif // V8_OBJECTS_CODE_CACHE_H_ |
| OLD | NEW |