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

Side by Side Diff: src/compiler/bytecode-graph-builder.h

Issue 2330883002: [turbofan] Call frequencies for JSCallFunction and JSCallConstruct. (Closed)
Patch Set: Rebase onto the correct CL. Created 4 years, 3 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 unified diff | Download patch
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ 5 #ifndef V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_
6 #define V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ 6 #define V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_
7 7
8 #include "src/compiler/bytecode-branch-analysis.h" 8 #include "src/compiler/bytecode-branch-analysis.h"
9 #include "src/compiler/bytecode-loop-analysis.h" 9 #include "src/compiler/bytecode-loop-analysis.h"
10 #include "src/compiler/js-graph.h" 10 #include "src/compiler/js-graph.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 void BuildInvokeIntrinsic(); 144 void BuildInvokeIntrinsic();
145 145
146 // Helper function to create binary operation hint from the recorded 146 // Helper function to create binary operation hint from the recorded
147 // type feedback. 147 // type feedback.
148 BinaryOperationHint GetBinaryOperationHint(int operand_index); 148 BinaryOperationHint GetBinaryOperationHint(int operand_index);
149 149
150 // Helper function to create compare operation hint from the recorded 150 // Helper function to create compare operation hint from the recorded
151 // type feedback. 151 // type feedback.
152 CompareOperationHint GetCompareOperationHint(); 152 CompareOperationHint GetCompareOperationHint();
153 153
154 // Helper function to compute call frequency from the recorded type
155 // feedback.
156 float ComputeCallFrequency(int slot_id) const;
157
154 // Control flow plumbing. 158 // Control flow plumbing.
155 void BuildJump(); 159 void BuildJump();
156 void BuildJumpIf(Node* condition); 160 void BuildJumpIf(Node* condition);
157 void BuildJumpIfNot(Node* condition); 161 void BuildJumpIfNot(Node* condition);
158 void BuildJumpIfEqual(Node* comperand); 162 void BuildJumpIfEqual(Node* comperand);
159 void BuildJumpIfTrue(); 163 void BuildJumpIfTrue();
160 void BuildJumpIfFalse(); 164 void BuildJumpIfFalse();
161 void BuildJumpIfToBooleanTrue(); 165 void BuildJumpIfToBooleanTrue();
162 void BuildJumpIfToBooleanFalse(); 166 void BuildJumpIfToBooleanFalse();
163 void BuildJumpIfNotHole(); 167 void BuildJumpIfNotHole();
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 static int const kBinaryOperationSmiHintIndex = 2; 300 static int const kBinaryOperationSmiHintIndex = 2;
297 301
298 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder); 302 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder);
299 }; 303 };
300 304
301 } // namespace compiler 305 } // namespace compiler
302 } // namespace internal 306 } // namespace internal
303 } // namespace v8 307 } // namespace v8
304 308
305 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ 309 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/compiler/bytecode-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698