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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 void BuildLocalActivationContextInitialization(); | 123 void BuildLocalActivationContextInitialization(); |
124 void BuildNewLocalBlockContext(Scope* scope); | 124 void BuildNewLocalBlockContext(Scope* scope); |
125 void BuildNewLocalCatchContext(Variable* variable, Scope* scope); | 125 void BuildNewLocalCatchContext(Variable* variable, Scope* scope); |
126 void BuildNewLocalWithContext(Scope* scope); | 126 void BuildNewLocalWithContext(Scope* scope); |
127 | 127 |
128 void VisitGeneratorPrologue(); | 128 void VisitGeneratorPrologue(); |
129 | 129 |
130 void VisitArgumentsObject(Variable* variable); | 130 void VisitArgumentsObject(Variable* variable); |
131 void VisitRestArgumentsArray(Variable* rest); | 131 void VisitRestArgumentsArray(Variable* rest); |
132 void VisitCallSuper(Call* call); | 132 void VisitCallSuper(Call* call); |
133 void VisitClassLiteralForRuntimeDefinition(ClassLiteral* expr); | 133 void VisitClassLiteralProperties(ClassLiteral* expr, Register constructor, |
134 void VisitClassLiteralProperties(ClassLiteral* expr, Register literal, | |
135 Register prototype); | 134 Register prototype); |
136 void BuildClassLiteralNameProperty(ClassLiteral* expr, Register literal); | 135 void BuildClassLiteralNameProperty(ClassLiteral* expr, Register constructor); |
137 void VisitThisFunctionVariable(Variable* variable); | 136 void VisitThisFunctionVariable(Variable* variable); |
138 void VisitNewTargetVariable(Variable* variable); | 137 void VisitNewTargetVariable(Variable* variable); |
139 void VisitBlockDeclarationsAndStatements(Block* stmt); | 138 void VisitBlockDeclarationsAndStatements(Block* stmt); |
140 void VisitFunctionClosureForContext(); | 139 void VisitFunctionClosureForContext(); |
141 void VisitSetHomeObject(Register value, Register home_object, | 140 void VisitSetHomeObject(Register value, Register home_object, |
142 LiteralProperty* property, int slot_number = 0); | 141 LiteralProperty* property, int slot_number = 0); |
143 void VisitObjectLiteralAccessor(Register home_object, | 142 void VisitObjectLiteralAccessor(Register home_object, |
144 ObjectLiteralProperty* property, | 143 ObjectLiteralProperty* property, |
145 Register value_out); | 144 Register value_out); |
146 void VisitForInAssignment(Expression* expr, FeedbackVectorSlot slot); | 145 void VisitForInAssignment(Expression* expr, FeedbackVectorSlot slot); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 Handle<Name> prototype_string_; | 227 Handle<Name> prototype_string_; |
229 Handle<FixedArray> empty_fixed_array_; | 228 Handle<FixedArray> empty_fixed_array_; |
230 const AstRawString* undefined_string_; | 229 const AstRawString* undefined_string_; |
231 }; | 230 }; |
232 | 231 |
233 } // namespace interpreter | 232 } // namespace interpreter |
234 } // namespace internal | 233 } // namespace internal |
235 } // namespace v8 | 234 } // namespace v8 |
236 | 235 |
237 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 236 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
OLD | NEW |