Lines Matching refs:shared

5 #include "src/objects/shared-function-info.h"
14 #include "src/objects/shared-function-info-inl.h"
190 // Add shared function info to new script's list. If a collection occurs,
191 // the shared function info may be temporarily in two lists.
210 // Remove shared function info from old script's list.
302 Handle<SharedFunctionInfo> shared) {
304 if (shared->HasWasmExportedFunctionData()) {
305 return shared->GetIsolate()
307 ->NewStringFromUtf8(base::CStrVector(shared->DebugNameCStr().get()))
312 String function_name = shared->Name();
313 if (function_name.length() == 0) function_name = shared->inferred_name();
314 return handle(function_name, shared->GetIsolate());
394 Handle<SharedFunctionInfo> shared) {
395 Isolate* isolate = shared->GetIsolate();
396 if (!shared->HasSourceCode()) return isolate->factory()->undefined_value();
397 Handle<String> source(String::cast(Script::cast(shared->script()).source()),
399 return isolate->factory()->NewSubString(source, shared->StartPosition(),
400 shared->EndPosition());
405 Handle<SharedFunctionInfo> shared) {
406 Isolate* isolate = shared->GetIsolate();
407 if (!shared->HasSourceCode()) return isolate->factory()->undefined_value();
409 String::cast(Script::cast(shared->script()).source()), isolate);
410 int start_pos = shared->function_token_position();
413 script_source, start_pos, shared->EndPosition());
414 if (!shared->is_wrapped()) return source;
416 DCHECK(!shared->name_should_print_as_anonymous());
419 builder.AppendString(Handle<String>(shared->Name(), isolate));
421 Handle<FixedArray> args(Script::cast(shared->script()).wrapped_arguments(),
725 FATAL("Failed to compile shared info that was already compiled before");
740 void SharedFunctionInfo::InstallDebugBytecode(Handle<SharedFunctionInfo> shared,
742 DCHECK(shared->HasBytecodeArray());
744 shared->GetBytecodeArray(isolate), isolate);
752 DebugInfo debug_info = shared->GetDebugInfo();
756 shared->SetActiveBytecodeArray(*debug_bytecode_array);
761 void SharedFunctionInfo::UninstallDebugBytecode(SharedFunctionInfo shared,
766 DebugInfo debug_info = shared.GetDebugInfo();
768 DCHECK(!shared.HasBaselineCode());
769 shared.SetActiveBytecodeArray(original_bytecode_array);