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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // Dispatched from VisitBinaryOperation. | 44 // Dispatched from VisitBinaryOperation. |
45 void VisitArithmeticExpression(BinaryOperation* binop); | 45 void VisitArithmeticExpression(BinaryOperation* binop); |
46 void VisitCommaExpression(BinaryOperation* binop); | 46 void VisitCommaExpression(BinaryOperation* binop); |
47 void VisitLogicalOrExpression(BinaryOperation* binop); | 47 void VisitLogicalOrExpression(BinaryOperation* binop); |
48 void VisitLogicalAndExpression(BinaryOperation* binop); | 48 void VisitLogicalAndExpression(BinaryOperation* binop); |
49 | 49 |
50 // Dispatched from VisitUnaryOperation. | 50 // Dispatched from VisitUnaryOperation. |
51 void VisitVoid(UnaryOperation* expr); | 51 void VisitVoid(UnaryOperation* expr); |
52 void VisitTypeOf(UnaryOperation* expr); | 52 void VisitTypeOf(UnaryOperation* expr); |
53 void VisitNot(UnaryOperation* expr); | 53 void VisitNot(UnaryOperation* expr); |
| 54 void VisitDelete(UnaryOperation* expr); |
54 | 55 |
55 // Helper visitors which perform common operations. | 56 // Helper visitors which perform common operations. |
56 Register VisitArguments(ZoneList<Expression*>* arguments); | 57 Register VisitArguments(ZoneList<Expression*>* arguments); |
57 | 58 |
58 void VisitPropertyLoad(Register obj, Property* expr); | 59 void VisitPropertyLoad(Register obj, Property* expr); |
59 void VisitPropertyLoadForAccumulator(Register obj, Property* expr); | 60 void VisitPropertyLoadForAccumulator(Register obj, Property* expr); |
60 | 61 |
61 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot); | 62 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot); |
62 void VisitVariableLoadForAccumulatorValue(Variable* variable, | 63 void VisitVariableLoadForAccumulatorValue(Variable* variable, |
63 FeedbackVectorSlot slot); | 64 FeedbackVectorSlot slot); |
(...skipping 69 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 |