| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |