Chromium Code Reviews| Index: src/crankshaft/hydrogen.h |
| diff --git a/src/crankshaft/hydrogen.h b/src/crankshaft/hydrogen.h |
| index 7e5ea1fb8f7c11027ea6725afced3b91ad789e7d..c3682527ad89ea8fbe64b84bf18923c0b09137e1 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); |
| + std::vector<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_; |
| + std::vector<HInlinedFunctionInfo> inlined_function_infos_; |
|
Benedikt Meurer
2016/05/12 17:42:02
This has to be a ZoneVector, otherwise you leak th
Michael Starzinger
2016/05/13 08:32:47
Done. Absolutely right. I just blindly moved it wi
|
| + |
| DISALLOW_COPY_AND_ASSIGN(HGraph); |
| }; |