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

Unified Diff: src/compiler.h

Issue 914413007: CpuProfiler: move InlinedFunctionInfo class from HGraphBuilder to CompilationInfo. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: out of bounds access to the script source was fixed Created 5 years, 10 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 | src/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.h
diff --git a/src/compiler.h b/src/compiler.h
index c5783c4866dbb2db2670f77b3211d1877ba0289f..1b787dce02fc3c1da918593791b117d38faf9df8 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -30,6 +30,20 @@ struct OffsetRange {
};
+class InlinedFunctionInfo {
+ public:
+ explicit InlinedFunctionInfo(Handle<SharedFunctionInfo> shared)
+ : shared_(shared), start_position_(shared->start_position()) {}
+
+ Handle<SharedFunctionInfo> shared() const { return shared_; }
+ int start_position() const { return start_position_; }
+
+ private:
+ Handle<SharedFunctionInfo> shared_;
+ int start_position_;
+};
+
+
class ScriptData {
public:
ScriptData(const byte* data, int length);
@@ -383,6 +397,14 @@ class CompilationInfo {
return result;
}
+ List<InlinedFunctionInfo>* inlined_function_infos() {
+ return inlined_function_infos_;
+ }
+ List<int>* inlining_id_to_function_id() {
+ return inlining_id_to_function_id_;
+ }
+ int TraceInlinedFunction(Handle<SharedFunctionInfo> shared, int raw_position);
+
Handle<Foreign> object_wrapper() {
if (object_wrapper_.is_null()) {
object_wrapper_ =
@@ -526,6 +548,8 @@ class CompilationInfo {
int prologue_offset_;
List<OffsetRange>* no_frame_ranges_;
+ List<InlinedFunctionInfo>* inlined_function_infos_;
+ List<int>* inlining_id_to_function_id_;
// A copy of shared_info()->opt_count() to avoid handle deref
// during graph optimization.
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698