| 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.h" | 8 #include "src/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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 void VisitNewTargetVariable(Variable* variable); | 70 void VisitNewTargetVariable(Variable* variable); |
| 71 void VisitNewLocalFunctionContext(); | 71 void VisitNewLocalFunctionContext(); |
| 72 void VisitBuildLocalActivationContext(); | 72 void VisitBuildLocalActivationContext(); |
| 73 void VisitNewLocalBlockContext(Scope* scope); | 73 void VisitNewLocalBlockContext(Scope* scope); |
| 74 void VisitFunctionClosureForContext(); | 74 void VisitFunctionClosureForContext(); |
| 75 void VisitSetHomeObject(Register value, Register home_object, | 75 void VisitSetHomeObject(Register value, Register home_object, |
| 76 ObjectLiteralProperty* property, int slot_number = 0); | 76 ObjectLiteralProperty* property, int slot_number = 0); |
| 77 void VisitObjectLiteralAccessor(Register home_object, | 77 void VisitObjectLiteralAccessor(Register home_object, |
| 78 ObjectLiteralProperty* property, | 78 ObjectLiteralProperty* property, |
| 79 Register value_out); | 79 Register value_out); |
| 80 void VisitForInAssignment(Expression* expr, FeedbackVectorSlot slot); |
| 80 | 81 |
| 81 | 82 |
| 82 // Visitors for obtaining expression result in the accumulator, in a | 83 // Visitors for obtaining expression result in the accumulator, in a |
| 83 // register, or just getting the effect. | 84 // register, or just getting the effect. |
| 84 void VisitForAccumulatorValue(Expression* expression); | 85 void VisitForAccumulatorValue(Expression* expression); |
| 85 MUST_USE_RESULT Register VisitForRegisterValue(Expression* expression); | 86 MUST_USE_RESULT Register VisitForRegisterValue(Expression* expression); |
| 86 void VisitForEffect(Expression* node); | 87 void VisitForEffect(Expression* node); |
| 87 | 88 |
| 88 // Methods marking the start and end of binary expressions. | 89 // Methods marking the start and end of binary expressions. |
| 89 void PrepareForBinaryExpression(); | 90 void PrepareForBinaryExpression(); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 134 |
| 134 int binary_expression_depth_; | 135 int binary_expression_depth_; |
| 135 ZoneSet<int> binary_expression_hazard_set_; | 136 ZoneSet<int> binary_expression_hazard_set_; |
| 136 }; | 137 }; |
| 137 | 138 |
| 138 } // namespace interpreter | 139 } // namespace interpreter |
| 139 } // namespace internal | 140 } // namespace internal |
| 140 } // namespace v8 | 141 } // namespace v8 |
| 141 | 142 |
| 142 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 143 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
| OLD | NEW |