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

Unified Diff: src/crankshaft/hydrogen.h

Issue 1977473002: [compiler] Move list of inlined functions to Crankshaft. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-compiler-sidechannel-3
Patch Set: Fix tha leeeek. Created 4 years, 7 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 | « src/compiler.h ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/crankshaft/hydrogen.h
diff --git a/src/crankshaft/hydrogen.h b/src/crankshaft/hydrogen.h
index 7e5ea1fb8f7c11027ea6725afced3b91ad789e7d..7fd9a587cf4e7fa1d97adb4cd59ca6294a587dbc 100644
--- a/src/crankshaft/hydrogen.h
+++ b/src/crankshaft/hydrogen.h
@@ -316,6 +316,11 @@ class HLoopInformation final : public ZoneObject {
HStackCheck* stack_check_;
};
+struct HInlinedFunctionInfo {
+ explicit HInlinedFunctionInfo(int start_position)
+ : start_position(start_position) {}
+ int start_position;
+};
class HGraph final : public ZoneObject {
public:
@@ -465,6 +470,10 @@ class HGraph final : public ZoneObject {
// the corresponding script.
int SourcePositionToScriptPosition(SourcePosition position);
+ ZoneVector<HInlinedFunctionInfo>& inlined_function_infos() {
+ return inlined_function_infos_;
+ }
+
private:
HConstant* ReinsertConstantIfNecessary(HConstant* constant);
HConstant* GetConstant(SetOncePointer<HConstant>* pointer,
@@ -509,6 +518,8 @@ class HGraph final : public ZoneObject {
int no_side_effects_scope_count_;
bool disallow_adding_new_values_;
+ ZoneVector<HInlinedFunctionInfo> inlined_function_infos_;
+
DISALLOW_COPY_AND_ASSIGN(HGraph);
};
« no previous file with comments | « src/compiler.h ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698