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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(); | 137 Node* BuildLoadContextSlot(); |
| 138 Node* BuildLoadCurrentContextSlot(); |
138 Node* BuildLoadGlobal(uint32_t feedback_slot_index, TypeofMode typeof_mode); | 139 Node* BuildLoadGlobal(uint32_t feedback_slot_index, TypeofMode typeof_mode); |
139 void BuildStoreGlobal(LanguageMode language_mode); | 140 void BuildStoreGlobal(LanguageMode language_mode); |
140 Node* BuildNamedLoad(); | 141 Node* BuildNamedLoad(); |
141 void BuildNamedStore(LanguageMode language_mode); | 142 void BuildNamedStore(LanguageMode language_mode); |
142 Node* BuildKeyedLoad(); | 143 Node* BuildKeyedLoad(); |
143 void BuildKeyedStore(LanguageMode language_mode); | 144 void BuildKeyedStore(LanguageMode language_mode); |
144 void BuildLdaLookupSlot(TypeofMode typeof_mode); | 145 void BuildLdaLookupSlot(TypeofMode typeof_mode); |
145 void BuildLdaLookupContextSlot(TypeofMode typeof_mode); | 146 void BuildLdaLookupContextSlot(TypeofMode typeof_mode); |
146 void BuildLdaLookupGlobalSlot(TypeofMode typeof_mode); | 147 void BuildLdaLookupGlobalSlot(TypeofMode typeof_mode); |
147 void BuildStaLookupSlot(LanguageMode language_mode); | 148 void BuildStaLookupSlot(LanguageMode language_mode); |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 static int const kBinaryOperationSmiHintIndex = 2; | 326 static int const kBinaryOperationSmiHintIndex = 2; |
326 | 327 |
327 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder); | 328 DISALLOW_COPY_AND_ASSIGN(BytecodeGraphBuilder); |
328 }; | 329 }; |
329 | 330 |
330 } // namespace compiler | 331 } // namespace compiler |
331 } // namespace internal | 332 } // namespace internal |
332 } // namespace v8 | 333 } // namespace v8 |
333 | 334 |
334 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ | 335 #endif // V8_COMPILER_BYTECODE_GRAPH_BUILDER_H_ |
OLD | NEW |