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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 void VisitNewLocalFunctionContext(); | 109 void VisitNewLocalFunctionContext(); |
110 void VisitBuildLocalActivationContext(); | 110 void VisitBuildLocalActivationContext(); |
111 void VisitNewLocalBlockContext(Scope* scope); | 111 void VisitNewLocalBlockContext(Scope* scope); |
112 void VisitFunctionClosureForContext(); | 112 void VisitFunctionClosureForContext(); |
113 void VisitSetHomeObject(Register value, Register home_object, | 113 void VisitSetHomeObject(Register value, Register home_object, |
114 ObjectLiteralProperty* property, int slot_number = 0); | 114 ObjectLiteralProperty* property, int slot_number = 0); |
115 void VisitObjectLiteralAccessor(Register home_object, | 115 void VisitObjectLiteralAccessor(Register home_object, |
116 ObjectLiteralProperty* property, | 116 ObjectLiteralProperty* property, |
117 Register value_out); | 117 Register value_out); |
118 void VisitForInAssignment(Expression* expr, FeedbackVectorSlot slot); | 118 void VisitForInAssignment(Expression* expr, FeedbackVectorSlot slot); |
| 119 void GetForInPreparedItem(Register destination, int index, |
| 120 Register prepare_result, Register scratch); |
119 | 121 |
120 // Visitors for obtaining expression result in the accumulator, in a | 122 // Visitors for obtaining expression result in the accumulator, in a |
121 // register, or just getting the effect. | 123 // register, or just getting the effect. |
122 void VisitForAccumulatorValue(Expression* expression); | 124 void VisitForAccumulatorValue(Expression* expression); |
123 MUST_USE_RESULT Register VisitForRegisterValue(Expression* expression); | 125 MUST_USE_RESULT Register VisitForRegisterValue(Expression* expression); |
124 void VisitForEffect(Expression* node); | 126 void VisitForEffect(Expression* node); |
125 | 127 |
126 // Methods for tracking and remapping register. | 128 // Methods for tracking and remapping register. |
127 void RecordStoreToRegister(Register reg); | 129 void RecordStoreToRegister(Register reg); |
128 Register LoadFromAliasedRegister(Register reg); | 130 Register LoadFromAliasedRegister(Register reg); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 ContextScope* execution_context_; | 170 ContextScope* execution_context_; |
169 ExpressionResultScope* execution_result_; | 171 ExpressionResultScope* execution_result_; |
170 AssignmentHazardHelper assignment_hazard_helper_; | 172 AssignmentHazardHelper assignment_hazard_helper_; |
171 }; | 173 }; |
172 | 174 |
173 } // namespace interpreter | 175 } // namespace interpreter |
174 } // namespace internal | 176 } // namespace internal |
175 } // namespace v8 | 177 } // namespace v8 |
176 | 178 |
177 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 179 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
OLD | NEW |