Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1518)

Unified Diff: runtime/vm/profiler_service.cc

Issue 1834963002: Don't allocate a new handle unnecessarily (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/profiler_service.cc
diff --git a/runtime/vm/profiler_service.cc b/runtime/vm/profiler_service.cc
index 5c3efa6790a01c34b13df37fd3b6550c9df130ce..c0ac69d47b2166490ad000d93c1bdebaa5be0c2d 100644
--- a/runtime/vm/profiler_service.cc
+++ b/runtime/vm/profiler_service.cc
@@ -2539,7 +2539,7 @@ const char* ProfileTrieWalker::CurrentToken() {
return NULL;
}
ProfileFunction* func = profile_->GetFunction(current_->table_index());
- const Function& function = Function::Handle(func->function()->raw());
+ const Function& function = *(func->function());
if (function.IsNull()) {
// No function.
return NULL;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698