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