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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 MUST_USE_RESULT Register | 72 MUST_USE_RESULT Register |
73 VisitVariableLoadForRegisterValue(Variable* variable, FeedbackVectorSlot slot, | 73 VisitVariableLoadForRegisterValue(Variable* variable, FeedbackVectorSlot slot, |
74 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); | 74 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); |
75 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot); | 75 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot); |
76 | 76 |
77 void VisitArgumentsObject(Variable* variable); | 77 void VisitArgumentsObject(Variable* variable); |
78 void VisitThisFunctionVariable(Variable* variable); | 78 void VisitThisFunctionVariable(Variable* variable); |
79 void VisitNewTargetVariable(Variable* variable); | 79 void VisitNewTargetVariable(Variable* variable); |
80 void VisitNewLocalFunctionContext(); | 80 void VisitNewLocalFunctionContext(); |
81 void VisitBuildLocalActivationContext(); | 81 void VisitBuildLocalActivationContext(); |
| 82 void VisitBlockDeclarationsAndStatements(Block* stmt); |
82 void VisitNewLocalBlockContext(Scope* scope); | 83 void VisitNewLocalBlockContext(Scope* scope); |
83 void VisitFunctionClosureForContext(); | 84 void VisitFunctionClosureForContext(); |
84 void VisitSetHomeObject(Register value, Register home_object, | 85 void VisitSetHomeObject(Register value, Register home_object, |
85 ObjectLiteralProperty* property, int slot_number = 0); | 86 ObjectLiteralProperty* property, int slot_number = 0); |
86 void VisitObjectLiteralAccessor(Register home_object, | 87 void VisitObjectLiteralAccessor(Register home_object, |
87 ObjectLiteralProperty* property, | 88 ObjectLiteralProperty* property, |
88 Register value_out); | 89 Register value_out); |
89 void VisitForInAssignment(Expression* expr, FeedbackVectorSlot slot); | 90 void VisitForInAssignment(Expression* expr, FeedbackVectorSlot slot); |
90 | 91 |
91 // Visitors for obtaining expression result in the accumulator, in a | 92 // Visitors for obtaining expression result in the accumulator, in a |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 ContextScope* execution_context_; | 144 ContextScope* execution_context_; |
144 ExpressionResultScope* execution_result_; | 145 ExpressionResultScope* execution_result_; |
145 RegisterAllocationScope* register_allocator_; | 146 RegisterAllocationScope* register_allocator_; |
146 }; | 147 }; |
147 | 148 |
148 } // namespace interpreter | 149 } // namespace interpreter |
149 } // namespace internal | 150 } // namespace internal |
150 } // namespace v8 | 151 } // namespace v8 |
151 | 152 |
152 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 153 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
OLD | NEW |