Lines Matching refs:Handle
40 Handle<CompilationCacheTable> CompilationSubCache::GetTable(int generation) {
42 Handle<CompilationCacheTable> result;
49 result = Handle<CompilationCacheTable>(table, isolate());
94 void CompilationSubCache::Remove(Handle<SharedFunctionInfo> function_info) {
96 // into the caller's handle scope.
99 Handle<CompilationCacheTable> table = GetTable(generation);
111 bool CompilationCacheScript::HasOrigin(Handle<SharedFunctionInfo> function_info,
112 Handle<Object> name, int line_offset,
115 Handle<Script> script =
116 Handle<Script>(Script::cast(function_info->script()), isolate());
131 return String::Equals(Handle<String>::cast(name),
132 Handle<String>(String::cast(script->name())));
141 Handle<String> source, Handle<Object> name, int line_offset,
143 Handle<Context> context, LanguageMode language_mode) {
147 // into the caller's handle scope.
151 Handle<CompilationCacheTable> table = GetTable(generation);
154 Handle<SharedFunctionInfo> function_info(probe.shared(), isolate());
155 Handle<Cell> vector_handle;
157 vector_handle = Handle<Cell>(probe.vector(), isolate());
169 // Once outside the manacles of the handle scope, we need to recheck
171 // handle created in the caller's handle scope.
173 Handle<SharedFunctionInfo> shared(result.shared(), isolate());
185 void CompilationCacheScript::Put(Handle<String> source, Handle<Context> context,
187 Handle<SharedFunctionInfo> function_info,
188 Handle<Cell> literals) {
190 Handle<CompilationCacheTable> table = GetFirstTable();
196 Handle<String> source, Handle<SharedFunctionInfo> outer_info,
197 Handle<Context> native_context, LanguageMode language_mode, int position) {
199 // Make sure not to leak the table into the surrounding handle
205 Handle<CompilationCacheTable> table = GetTable(generation);
216 void CompilationCacheEval::Put(Handle<String> source,
217 Handle<SharedFunctionInfo> outer_info,
218 Handle<SharedFunctionInfo> function_info,
219 Handle<Context> native_context,
220 Handle<Cell> literals, int position) {
222 Handle<CompilationCacheTable> table = GetFirstTable();
231 Handle<String> source,
234 // Make sure not to leak the table into the surrounding handle
237 Handle<Object> result = isolate()->factory()->undefined_value();
240 Handle<CompilationCacheTable> table = GetTable(generation);
245 Handle<FixedArray> data = Handle<FixedArray>::cast(result);
258 void CompilationCacheRegExp::Put(Handle<String> source,
260 Handle<FixedArray> data) {
262 Handle<CompilationCacheTable> table = GetFirstTable();
267 void CompilationCache::Remove(Handle<SharedFunctionInfo> function_info) {
276 Handle<String> source, Handle<Object> name, int line_offset,
278 Handle<Context> context, LanguageMode language_mode) {
287 Handle<String> source, Handle<SharedFunctionInfo> outer_info,
288 Handle<Context> context, LanguageMode language_mode, int position) {
297 Handle<Context> native_context(context->native_context(), isolate());
306 MaybeHandle<FixedArray> CompilationCache::LookupRegExp(Handle<String> source,
313 void CompilationCache::PutScript(Handle<String> source, Handle<Context> context,
315 Handle<SharedFunctionInfo> function_info,
316 Handle<Cell> literals) {
322 void CompilationCache::PutEval(Handle<String> source,
323 Handle<SharedFunctionInfo> outer_info,
324 Handle<Context> context,
325 Handle<SharedFunctionInfo> function_info,
326 Handle<Cell> literals, int position) {
335 Handle<Context> native_context(context->native_context(), isolate());
343 void CompilationCache::PutRegExp(Handle<String> source,
345 Handle<FixedArray> data) {