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