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/bytecodes.h" | 10 #include "src/interpreter/bytecodes.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot); | 77 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot); |
78 | 78 |
79 void VisitArgumentsObject(Variable* variable); | 79 void VisitArgumentsObject(Variable* variable); |
80 void VisitThisFunctionVariable(Variable* variable); | 80 void VisitThisFunctionVariable(Variable* variable); |
81 void VisitNewTargetVariable(Variable* variable); | 81 void VisitNewTargetVariable(Variable* variable); |
82 void VisitNewLocalFunctionContext(); | 82 void VisitNewLocalFunctionContext(); |
83 void VisitBuildLocalActivationContext(); | 83 void VisitBuildLocalActivationContext(); |
84 void VisitBlockDeclarationsAndStatements(Block* stmt); | 84 void VisitBlockDeclarationsAndStatements(Block* stmt); |
85 void VisitNewLocalBlockContext(Scope* scope); | 85 void VisitNewLocalBlockContext(Scope* scope); |
86 void VisitNewLocalCatchContext(Variable* variable); | 86 void VisitNewLocalCatchContext(Variable* variable); |
| 87 void VisitNewLocalWithContext(); |
87 void VisitFunctionClosureForContext(); | 88 void VisitFunctionClosureForContext(); |
88 void VisitSetHomeObject(Register value, Register home_object, | 89 void VisitSetHomeObject(Register value, Register home_object, |
89 ObjectLiteralProperty* property, int slot_number = 0); | 90 ObjectLiteralProperty* property, int slot_number = 0); |
90 void VisitObjectLiteralAccessor(Register home_object, | 91 void VisitObjectLiteralAccessor(Register home_object, |
91 ObjectLiteralProperty* property, | 92 ObjectLiteralProperty* property, |
92 Register value_out); | 93 Register value_out); |
93 void VisitForInAssignment(Expression* expr, FeedbackVectorSlot slot); | 94 void VisitForInAssignment(Expression* expr, FeedbackVectorSlot slot); |
94 | 95 |
95 // Visit a statement and switch scopes, the context is in the accumulator. | 96 // Visit a statement and switch scopes, the context is in the accumulator. |
96 void VisitInScope(Statement* stmt, Scope* scope); | 97 void VisitInScope(Statement* stmt, Scope* scope); |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 ContextScope* execution_context_; | 152 ContextScope* execution_context_; |
152 ExpressionResultScope* execution_result_; | 153 ExpressionResultScope* execution_result_; |
153 RegisterAllocationScope* register_allocator_; | 154 RegisterAllocationScope* register_allocator_; |
154 }; | 155 }; |
155 | 156 |
156 } // namespace interpreter | 157 } // namespace interpreter |
157 } // namespace internal | 158 } // namespace internal |
158 } // namespace v8 | 159 } // namespace v8 |
159 | 160 |
160 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 161 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
OLD | NEW |