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_INTERPRETER_BYTECODE_GENERATOR_H_ | 5 #ifndef V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
6 #define V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 6 #define V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
7 | 7 |
8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.h" |
9 #include "src/interpreter/bytecode-array-builder.h" | 9 #include "src/interpreter/bytecode-array-builder.h" |
10 #include "src/interpreter/bytecode-label.h" | 10 #include "src/interpreter/bytecode-label.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 // Build jump to targets[value], where | 117 // Build jump to targets[value], where |
118 // start_index <= value < start_index + size. | 118 // start_index <= value < start_index + size. |
119 void BuildIndexedJump(Register value, size_t start_index, size_t size, | 119 void BuildIndexedJump(Register value, size_t start_index, size_t size, |
120 ZoneVector<BytecodeLabel>& targets); | 120 ZoneVector<BytecodeLabel>& targets); |
121 | 121 |
122 void VisitGeneratorPrologue(); | 122 void VisitGeneratorPrologue(); |
123 | 123 |
124 void VisitArgumentsObject(Variable* variable); | 124 void VisitArgumentsObject(Variable* variable); |
125 void VisitRestArgumentsArray(Variable* rest); | 125 void VisitRestArgumentsArray(Variable* rest); |
126 void VisitCallSuper(Call* call); | 126 void VisitCallSuper(Call* call); |
127 void VisitClassLiteralContents(ClassLiteral* expr); | |
128 void VisitClassLiteralForRuntimeDefinition(ClassLiteral* expr); | |
129 void VisitClassLiteralProperties(ClassLiteral* expr, Register literal, | |
130 Register prototype); | |
131 void VisitClassLiteralStaticPrototypeWithComputedName(Register name); | |
132 void VisitThisFunctionVariable(Variable* variable); | 127 void VisitThisFunctionVariable(Variable* variable); |
133 void VisitNewTargetVariable(Variable* variable); | 128 void VisitNewTargetVariable(Variable* variable); |
134 void VisitNewLocalFunctionContext(); | 129 void VisitNewLocalFunctionContext(); |
135 void VisitBuildLocalActivationContext(); | 130 void VisitBuildLocalActivationContext(); |
136 void VisitBlockDeclarationsAndStatements(Block* stmt); | 131 void VisitBlockDeclarationsAndStatements(Block* stmt); |
137 void VisitNewLocalBlockContext(Scope* scope); | 132 void VisitNewLocalBlockContext(Scope* scope); |
138 void VisitNewLocalCatchContext(Variable* variable); | 133 void VisitNewLocalCatchContext(Variable* variable); |
139 void VisitNewLocalWithContext(); | 134 void VisitNewLocalWithContext(); |
140 void VisitFunctionClosureForContext(); | 135 void VisitFunctionClosureForContext(); |
141 void VisitSetHomeObject(Register value, Register home_object, | 136 void VisitSetHomeObject(Register value, Register home_object, |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 RegisterAllocationScope* register_allocator_; | 206 RegisterAllocationScope* register_allocator_; |
212 ZoneVector<BytecodeLabel> generator_resume_points_; | 207 ZoneVector<BytecodeLabel> generator_resume_points_; |
213 Register generator_state_; | 208 Register generator_state_; |
214 }; | 209 }; |
215 | 210 |
216 } // namespace interpreter | 211 } // namespace interpreter |
217 } // namespace internal | 212 } // namespace internal |
218 } // namespace v8 | 213 } // namespace v8 |
219 | 214 |
220 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 215 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
OLD | NEW |