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_COMPILATION_CACHE_H_ | 5 #ifndef V8_OBJECTS_COMPILATION_CACHE_H_ |
6 #define V8_OBJECTS_COMPILATION_CACHE_H_ | 6 #define V8_OBJECTS_COMPILATION_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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 Handle<CompilationCacheTable> cache, Handle<String> src, | 90 Handle<CompilationCacheTable> cache, Handle<String> src, |
91 Handle<SharedFunctionInfo> outer_info, Handle<SharedFunctionInfo> value, | 91 Handle<SharedFunctionInfo> outer_info, Handle<SharedFunctionInfo> value, |
92 Handle<Context> native_context, Handle<Cell> literals, int position); | 92 Handle<Context> native_context, Handle<Cell> literals, int position); |
93 static Handle<CompilationCacheTable> PutRegExp( | 93 static Handle<CompilationCacheTable> PutRegExp( |
94 Handle<CompilationCacheTable> cache, Handle<String> src, | 94 Handle<CompilationCacheTable> cache, Handle<String> src, |
95 JSRegExp::Flags flags, Handle<FixedArray> value); | 95 JSRegExp::Flags flags, Handle<FixedArray> value); |
96 void Remove(Object* value); | 96 void Remove(Object* value); |
97 void Age(); | 97 void Age(); |
98 static const int kHashGenerations = 10; | 98 static const int kHashGenerations = 10; |
99 | 99 |
100 DECLARE_CAST(CompilationCacheTable) | 100 DECL_CAST(CompilationCacheTable) |
101 | 101 |
102 private: | 102 private: |
103 DISALLOW_IMPLICIT_CONSTRUCTORS(CompilationCacheTable); | 103 DISALLOW_IMPLICIT_CONSTRUCTORS(CompilationCacheTable); |
104 }; | 104 }; |
105 | 105 |
106 } // namespace internal | 106 } // namespace internal |
107 } // namespace v8 | 107 } // namespace v8 |
108 | 108 |
109 #include "src/objects/object-macros-undef.h" | 109 #include "src/objects/object-macros-undef.h" |
110 | 110 |
111 #endif // V8_OBJECTS_COMPILATION_CACHE_H_ | 111 #endif // V8_OBJECTS_COMPILATION_CACHE_H_ |
OLD | NEW |