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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // Prepare information for lazy deoptimization. This information is attached | 127 // Prepare information for lazy deoptimization. This information is attached |
128 // to the given node and the output value produced by the node is combined. | 128 // to the given node and the output value produced by the node is combined. |
129 // Conceptually this frame state is "after" a given operation. | 129 // Conceptually this frame state is "after" a given operation. |
130 void PrepareFrameState(Node* node, OutputFrameStateCombine combine); | 130 void PrepareFrameState(Node* node, OutputFrameStateCombine combine); |
131 | 131 |
132 // Computes register liveness and replaces dead ones in frame states with the | 132 // Computes register liveness and replaces dead ones in frame states with the |
133 // undefined values. | 133 // undefined values. |
134 void ClearNonLiveSlotsInFrameStates(); | 134 void ClearNonLiveSlotsInFrameStates(); |
135 | 135 |
136 void BuildCreateArguments(CreateArgumentsType type); | 136 void BuildCreateArguments(CreateArgumentsType type); |
137 Node* BuildLoadContextSlot(); | |
138 Node* BuildLoadCurrentContextSlot(); | |
139 Node* BuildLoadGlobal(uint32_t feedback_slot_index, TypeofMode typeof_mode); | 137 Node* BuildLoadGlobal(uint32_t feedback_slot_index, TypeofMode typeof_mode); |
140 void BuildStoreGlobal(LanguageMode language_mode); | 138 void BuildStoreGlobal(LanguageMode language_mode); |
141 void BuildNamedStore(LanguageMode language_mode); | 139 void BuildNamedStore(LanguageMode language_mode); |
142 void BuildKeyedStore(LanguageMode language_mode); | 140 void BuildKeyedStore(LanguageMode language_mode); |
143 void BuildLdaLookupSlot(TypeofMode typeof_mode); | 141 void BuildLdaLookupSlot(TypeofMode typeof_mode); |
144 void BuildLdaLookupContextSlot(TypeofMode typeof_mode); | 142 void BuildLdaLookupContextSlot(TypeofMode typeof_mode); |
145 void BuildLdaLookupGlobalSlot(TypeofMode typeof_mode); | 143 void BuildLdaLookupGlobalSlot(TypeofMode typeof_mode); |
146 void BuildStaLookupSlot(LanguageMode language_mode); | 144 void BuildStaLookupSlot(LanguageMode language_mode); |
147 void BuildCall(TailCallMode tail_call_mode, | 145 void BuildCall(TailCallMode tail_call_mode, |
148 ConvertReceiverMode receiver_hint); | 146 ConvertReceiverMode receiver_hint); |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 static int const kBinaryOperationSmiHintIndex = 2; | 322 static int const kBinaryOperationSmiHintIndex = 2; |
325 | 323 |
326 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder); | 324 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder); |
327 }; | 325 }; |
328 | 326 |
329 } // namespace compiler | 327 } // namespace compiler |
330 } // namespace internal | 328 } // namespace internal |
331 } // namespace v8 | 329 } // namespace v8 |
332 | 330 |
333 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ | 331 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ |
OLD | NEW |