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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 void VisitTypeOf(UnaryOperation* expr); | 53 void VisitTypeOf(UnaryOperation* expr); |
54 void VisitNot(UnaryOperation* expr); | 54 void VisitNot(UnaryOperation* expr); |
55 void VisitDelete(UnaryOperation* expr); | 55 void VisitDelete(UnaryOperation* expr); |
56 | 56 |
57 // Helper visitors which perform common operations. | 57 // Helper visitors which perform common operations. |
58 Register VisitArguments(ZoneList<Expression*>* arguments); | 58 Register VisitArguments(ZoneList<Expression*>* arguments); |
59 | 59 |
60 void VisitPropertyLoad(Register obj, Property* expr); | 60 void VisitPropertyLoad(Register obj, Property* expr); |
61 void VisitPropertyLoadForAccumulator(Register obj, Property* expr); | 61 void VisitPropertyLoadForAccumulator(Register obj, Property* expr); |
62 | 62 |
63 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot); | 63 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot, |
64 void VisitVariableLoadForAccumulatorValue(Variable* variable, | 64 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); |
65 FeedbackVectorSlot slot); | 65 void VisitVariableLoadForAccumulatorValue( |
66 MUST_USE_RESULT Register VisitVariableLoadForRegisterValue( | 66 Variable* variable, FeedbackVectorSlot slot, |
67 Variable* variable, FeedbackVectorSlot slot); | 67 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); |
| 68 MUST_USE_RESULT Register |
| 69 VisitVariableLoadForRegisterValue(Variable* variable, FeedbackVectorSlot slot, |
| 70 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); |
68 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot); | 71 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot); |
69 | 72 |
70 void VisitArgumentsObject(Variable* variable); | 73 void VisitArgumentsObject(Variable* variable); |
71 void VisitThisFunctionVariable(Variable* variable); | 74 void VisitThisFunctionVariable(Variable* variable); |
72 void VisitNewTargetVariable(Variable* variable); | 75 void VisitNewTargetVariable(Variable* variable); |
73 void VisitNewLocalFunctionContext(); | 76 void VisitNewLocalFunctionContext(); |
74 void VisitBuildLocalActivationContext(); | 77 void VisitBuildLocalActivationContext(); |
75 void VisitNewLocalBlockContext(Scope* scope); | 78 void VisitNewLocalBlockContext(Scope* scope); |
76 void VisitFunctionClosureForContext(); | 79 void VisitFunctionClosureForContext(); |
77 void VisitSetHomeObject(Register value, Register home_object, | 80 void VisitSetHomeObject(Register value, Register home_object, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 139 |
137 int binary_expression_depth_; | 140 int binary_expression_depth_; |
138 ZoneSet<int> binary_expression_hazard_set_; | 141 ZoneSet<int> binary_expression_hazard_set_; |
139 }; | 142 }; |
140 | 143 |
141 } // namespace interpreter | 144 } // namespace interpreter |
142 } // namespace internal | 145 } // namespace internal |
143 } // namespace v8 | 146 } // namespace v8 |
144 | 147 |
145 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 148 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
OLD | NEW |