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

Unified Diff: src/objects.cc

Issue 2503393002: [cpu-profiler] use new source position information for deoptimization in cpu profiler (Closed)
Patch Set: addressed comment Created 4 years, 1 month 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 | « src/objects.h ('k') | src/profiler/cpu-profiler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index b8fc5ffd4787547c95ad0a8a77eebad9d662e2a7..ad3813205809d23dcd709d322f3552f533b64cd7 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -10577,6 +10577,14 @@ Handle<DeoptimizationOutputData> DeoptimizationOutputData::New(
return Handle<DeoptimizationOutputData>::cast(result);
}
+SharedFunctionInfo* DeoptimizationInputData::GetInlinedFunction(int index) {
+ if (index == -1) {
+ return SharedFunctionInfo::cast(SharedFunctionInfo());
+ } else {
+ return SharedFunctionInfo::cast(LiteralArray()->get(index));
+ }
+}
+
const int LiteralsArray::kFeedbackVectorOffset =
LiteralsArray::OffsetOfElementAt(LiteralsArray::kVectorIndex);
« no previous file with comments | « src/objects.h ('k') | src/profiler/cpu-profiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698