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