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

Unified Diff: src/compiler.h

Issue 1175953002: [turbofan] Record the SharedFunctionInfo of ALL inlined functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Cannot use a ZoneVector because of smart... Created 5 years, 6 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/code-generator.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 56de2b60aec47c7aee914e95bfc445137b75aac6..c90bf91e596c8376062f6c770e03e4273752a47e 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -384,6 +384,14 @@ class CompilationInfo {
Handle<Code> GenerateCodeStub();
+ typedef std::vector<Handle<SharedFunctionInfo>> InlinedFunctionList;
+ InlinedFunctionList const& inlined_functions() const {
+ return inlined_functions_;
+ }
+ void AddInlinedFunction(Handle<SharedFunctionInfo> inlined_function) {
+ inlined_functions_.push_back(inlined_function);
+ }
+
protected:
ParseInfo* parse_info_;
@@ -458,6 +466,8 @@ class CompilationInfo {
std::vector<InlinedFunctionInfo> inlined_function_infos_;
bool track_positions_;
+ InlinedFunctionList inlined_functions_;
+
// A copy of shared_info()->opt_count() to avoid handle deref
// during graph optimization.
int opt_count_;
« no previous file with comments | « no previous file | src/compiler/code-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698