Commit 7feaf896 authored by mstarzinger's avatar mstarzinger Committed by Commit bot

[interpreter] Make branch analysis result const again.

Now that the branch analysis result is no longer mutated by the graph
builder, it can be made const again to preserve immutability.

R=bmeurer@chromium.org

Review URL: https://codereview.chromium.org/1656933006

Cr-Commit-Position: refs/heads/master@{#33669}
parent f7292352
......@@ -214,7 +214,7 @@ class BytecodeGraphBuilder {
return branch_analysis_;
}
void set_branch_analysis(BytecodeBranchAnalysis* branch_analysis) {
void set_branch_analysis(const BytecodeBranchAnalysis* branch_analysis) {
branch_analysis_ = branch_analysis;
}
......@@ -229,7 +229,7 @@ class BytecodeGraphBuilder {
Handle<HandlerTable> exception_handler_table_;
const FrameStateFunctionInfo* frame_state_function_info_;
const interpreter::BytecodeArrayIterator* bytecode_iterator_;
BytecodeBranchAnalysis* branch_analysis_; // TODO(mstarzinger): Make const.
const BytecodeBranchAnalysis* branch_analysis_;
Environment* environment_;
// Merge environments are snapshots of the environment at points where the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment