| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 void VisitThisFunctionVariable(Variable* variable); | 134 void VisitThisFunctionVariable(Variable* variable); |
| 135 void VisitNewTargetVariable(Variable* variable); | 135 void VisitNewTargetVariable(Variable* variable); |
| 136 void VisitBlockDeclarationsAndStatements(Block* stmt); | 136 void VisitBlockDeclarationsAndStatements(Block* stmt); |
| 137 void VisitFunctionClosureForContext(); | 137 void VisitFunctionClosureForContext(); |
| 138 void VisitSetHomeObject(Register value, Register home_object, | 138 void VisitSetHomeObject(Register value, Register home_object, |
| 139 LiteralProperty* property, int slot_number = 0); | 139 LiteralProperty* property, int slot_number = 0); |
| 140 void VisitObjectLiteralAccessor(Register home_object, | 140 void VisitObjectLiteralAccessor(Register home_object, |
| 141 ObjectLiteralProperty* property, | 141 ObjectLiteralProperty* property, |
| 142 Register value_out); | 142 Register value_out); |
| 143 void VisitForInAssignment(Expression* expr, FeedbackVectorSlot slot); | 143 void VisitForInAssignment(Expression* expr, FeedbackVectorSlot slot); |
| 144 void VisitModuleNamespaceImports(); |
| 144 | 145 |
| 145 // Visit the header/body of a loop iteration. | 146 // Visit the header/body of a loop iteration. |
| 146 void VisitIterationHeader(IterationStatement* stmt, | 147 void VisitIterationHeader(IterationStatement* stmt, |
| 147 LoopBuilder* loop_builder); | 148 LoopBuilder* loop_builder); |
| 148 void VisitIterationBody(IterationStatement* stmt, LoopBuilder* loop_builder); | 149 void VisitIterationBody(IterationStatement* stmt, LoopBuilder* loop_builder); |
| 149 | 150 |
| 150 // Visit a statement and switch scopes, the context is in the accumulator. | 151 // Visit a statement and switch scopes, the context is in the accumulator. |
| 151 void VisitInScope(Statement* stmt, Scope* scope); | 152 void VisitInScope(Statement* stmt, Scope* scope); |
| 152 | 153 |
| 153 // Visitors for obtaining expression result in the accumulator, in a | 154 // Visitors for obtaining expression result in the accumulator, in a |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 215 |
| 215 Handle<Name> home_object_symbol_; | 216 Handle<Name> home_object_symbol_; |
| 216 Handle<Name> prototype_string_; | 217 Handle<Name> prototype_string_; |
| 217 }; | 218 }; |
| 218 | 219 |
| 219 } // namespace interpreter | 220 } // namespace interpreter |
| 220 } // namespace internal | 221 } // namespace internal |
| 221 } // namespace v8 | 222 } // namespace v8 |
| 222 | 223 |
| 223 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 224 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
| OLD | NEW |