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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // Build jump to targets[value], where | 118 // Build jump to targets[value], where |
119 // start_index <= value < start_index + size. | 119 // start_index <= value < start_index + size. |
120 void BuildIndexedJump(Register value, size_t start_index, size_t size, | 120 void BuildIndexedJump(Register value, size_t start_index, size_t size, |
121 ZoneVector<BytecodeLabel>& targets); | 121 ZoneVector<BytecodeLabel>& targets); |
122 | 122 |
123 void VisitGeneratorPrologue(); | 123 void VisitGeneratorPrologue(); |
124 | 124 |
125 void VisitArgumentsObject(Variable* variable); | 125 void VisitArgumentsObject(Variable* variable); |
126 void VisitRestArgumentsArray(Variable* rest); | 126 void VisitRestArgumentsArray(Variable* rest); |
127 void VisitCallSuper(Call* call); | 127 void VisitCallSuper(Call* call); |
128 void VisitClassLiteralContents(ClassLiteral* expr); | |
129 void VisitClassLiteralForRuntimeDefinition(ClassLiteral* expr); | 128 void VisitClassLiteralForRuntimeDefinition(ClassLiteral* expr); |
130 void VisitClassLiteralProperties(ClassLiteral* expr, Register literal, | 129 void VisitClassLiteralProperties(ClassLiteral* expr, Register literal, |
131 Register prototype); | 130 Register prototype); |
132 void VisitClassLiteralStaticPrototypeWithComputedName(Register name); | 131 void VisitClassLiteralStaticPrototypeWithComputedName(Register name); |
133 void VisitThisFunctionVariable(Variable* variable); | 132 void VisitThisFunctionVariable(Variable* variable); |
134 void VisitNewTargetVariable(Variable* variable); | 133 void VisitNewTargetVariable(Variable* variable); |
135 void VisitNewLocalFunctionContext(); | 134 void VisitNewLocalFunctionContext(); |
136 void VisitBuildLocalActivationContext(); | 135 void VisitBuildLocalActivationContext(); |
137 void VisitBlockDeclarationsAndStatements(Block* stmt); | 136 void VisitBlockDeclarationsAndStatements(Block* stmt); |
138 void VisitNewLocalBlockContext(Scope* scope); | 137 void VisitNewLocalBlockContext(Scope* scope); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 RegisterAllocationScope* register_allocator_; | 211 RegisterAllocationScope* register_allocator_; |
213 ZoneVector<BytecodeLabel> generator_resume_points_; | 212 ZoneVector<BytecodeLabel> generator_resume_points_; |
214 Register generator_state_; | 213 Register generator_state_; |
215 }; | 214 }; |
216 | 215 |
217 } // namespace interpreter | 216 } // namespace interpreter |
218 } // namespace internal | 217 } // namespace internal |
219 } // namespace v8 | 218 } // namespace v8 |
220 | 219 |
221 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 220 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
OLD | NEW |