| 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.h" | 8 #include "src/compiler.h" |
| 9 #include "src/compiler/bytecode-branch-analysis.h" | 9 #include "src/compiler/bytecode-branch-analysis.h" |
| 10 #include "src/compiler/js-graph.h" | 10 #include "src/compiler/js-graph.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 void BuildLdaLookupSlot(TypeofMode typeof_mode); | 121 void BuildLdaLookupSlot(TypeofMode typeof_mode); |
| 122 void BuildStaLookupSlot(LanguageMode language_mode); | 122 void BuildStaLookupSlot(LanguageMode language_mode); |
| 123 void BuildCall(TailCallMode tail_call_mode); | 123 void BuildCall(TailCallMode tail_call_mode); |
| 124 void BuildThrow(); | 124 void BuildThrow(); |
| 125 void BuildBinaryOp(const Operator* op); | 125 void BuildBinaryOp(const Operator* op); |
| 126 void BuildCompareOp(const Operator* op); | 126 void BuildCompareOp(const Operator* op); |
| 127 void BuildDelete(LanguageMode language_mode); | 127 void BuildDelete(LanguageMode language_mode); |
| 128 void BuildCastOperator(const Operator* op); | 128 void BuildCastOperator(const Operator* op); |
| 129 void BuildForInPrepare(); | 129 void BuildForInPrepare(); |
| 130 void BuildForInNext(); | 130 void BuildForInNext(); |
| 131 void BuildInvokeIntrinsic(); |
| 131 | 132 |
| 132 // Control flow plumbing. | 133 // Control flow plumbing. |
| 133 void BuildJump(); | 134 void BuildJump(); |
| 134 void BuildConditionalJump(Node* condition); | 135 void BuildConditionalJump(Node* condition); |
| 135 void BuildJumpIfEqual(Node* comperand); | 136 void BuildJumpIfEqual(Node* comperand); |
| 136 void BuildJumpIfToBooleanEqual(Node* boolean_comperand); | 137 void BuildJumpIfToBooleanEqual(Node* boolean_comperand); |
| 137 void BuildJumpIfNotHole(); | 138 void BuildJumpIfNotHole(); |
| 138 | 139 |
| 139 // Simulates control flow by forward-propagating environments. | 140 // Simulates control flow by forward-propagating environments. |
| 140 void MergeIntoSuccessorEnvironment(int target_offset); | 141 void MergeIntoSuccessorEnvironment(int target_offset); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 ZoneVector<Node*> exit_controls_; | 244 ZoneVector<Node*> exit_controls_; |
| 244 | 245 |
| 245 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder); | 246 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder); |
| 246 }; | 247 }; |
| 247 | 248 |
| 248 } // namespace compiler | 249 } // namespace compiler |
| 249 } // namespace internal | 250 } // namespace internal |
| 250 } // namespace v8 | 251 } // namespace v8 |
| 251 | 252 |
| 252 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ | 253 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ |
| OLD | NEW |