Lines Matching refs:function

74 		// Source location and function name must also match.
139 status_t AddFunction(Function* function)
141 if (!fFunctions.BinaryInsert(function, &_CompareFunctions))
147 void RemoveFunction(Function* function)
149 int32 index = fFunctions.BinarySearchIndex(*function,
162 // No exact match, so we return the previous function which might still
180 for (int32 i = 0; Function* function = fFunctions.ItemAt(i); i++) {
181 if (name == function->Name())
182 return function;
209 const Function* function)
211 SourceLocation functionLocation = function->GetSourceLocation();
295 Function* function = fFunctions->Clear(true);
296 while (function != NULL) {
297 Function* next = function->fNext;
298 function->ReleaseReference();
299 function = next;
317 // create function hash table
487 Function* function = FunctionAtSourceLocation(file,
489 if (function != NULL) {
490 function_source_state state = function->SourceCodeState();
491 if (function->SourceCodeState() == FUNCTION_SOURCE_LOADED) {
492 _code = function->GetSourceCode();
496 // if the function's source state is not loaded, check
499 // function, and consequently only sets the loaded source code
500 // on that particular function at that point in time, rather
507 function->SetSourceCode(sourceCode,
601 // get the source language from some function's image debug info
602 Function* function = entry->FunctionAt(0);
603 if (function == NULL)
607 = function->FirstInstance()->GetFunctionDebugInfo();
670 // allocate a buffer for the function code
679 // read the function code
706 // lookup the function or create it, if it doesn't exist yet
707 Function* function = fFunctions->Lookup(instance);
708 if (function != NULL) {
709 // TODO: Also update possible user breakpoints in this function!
710 function->AddInstance(instance);
711 instance->SetFunction(function);
714 // the source file of the function, so remember the source file
716 if (LocatableFile* sourceFile = function->SourceFile()) {
722 function = new(std::nothrow) Function;
723 if (function == NULL) {
727 function->AddInstance(instance);
728 instance->SetFunction(function);
730 status_t error = _AddFunction(function);
731 // Insert after adding the instance. Otherwise the function
734 function->RemoveInstance(instance);
770 if (Function* function = instance->GetFunction()) {
771 // TODO: Also update possible user breakpoints in this function!
772 if (function->FirstInstance() == function->LastInstance()) {
773 // function unused -- remove it
775 // the instance, since otherwise the function cannot be compared
777 _RemoveFunction(function);
778 function->ReleaseReference();
782 function->RemoveInstance(instance);
785 // reference to the function.
852 TeamDebugInfo::_AddFunction(Function* function)
854 // If the function refers to a source file, add it to the respective entry.
855 if (LocatableFile* sourceFile = function->SourceFile()) {
872 // add the function
873 status_t error = entry->AddFunction(function);
883 fFunctions->Insert(function);
890 TeamDebugInfo::_RemoveFunction(Function* function)
892 fFunctions->Remove(function);
894 // If the function refers to a source file, remove it from the respective
896 if (LocatableFile* sourceFile = function->SourceFile()) {
898 entry->RemoveFunction(function);