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 16 matching lines...) Expand all Loading... |
27 // Visiting function for declarations list is overridden. | 27 // Visiting function for declarations list is overridden. |
28 void VisitDeclarations(ZoneList<Declaration*>* declarations) override; | 28 void VisitDeclarations(ZoneList<Declaration*>* declarations) override; |
29 | 29 |
30 private: | 30 private: |
31 class ControlScope; | 31 class ControlScope; |
32 class ControlScopeForIteration; | 32 class ControlScopeForIteration; |
33 | 33 |
34 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); | 34 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); |
35 | 35 |
36 void VisitArithmeticExpression(BinaryOperation* binop); | 36 void VisitArithmeticExpression(BinaryOperation* binop); |
| 37 void VisitCommaExpression(BinaryOperation* binop); |
| 38 void VisitLogicalOrExpression(BinaryOperation* binop); |
| 39 void VisitLogicalAndExpression(BinaryOperation* binop); |
37 void VisitPropertyLoad(Register obj, Property* expr); | 40 void VisitPropertyLoad(Register obj, Property* expr); |
38 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot); | 41 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot); |
39 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot); | 42 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot); |
40 | 43 |
41 // Dispatched from VisitUnaryOperation. | 44 // Dispatched from VisitUnaryOperation. |
42 void VisitVoid(UnaryOperation* expr); | 45 void VisitVoid(UnaryOperation* expr); |
43 void VisitTypeOf(UnaryOperation* expr); | 46 void VisitTypeOf(UnaryOperation* expr); |
44 void VisitNot(UnaryOperation* expr); | 47 void VisitNot(UnaryOperation* expr); |
45 | 48 |
46 inline BytecodeArrayBuilder* builder() { return &builder_; } | 49 inline BytecodeArrayBuilder* builder() { return &builder_; } |
(...skipping 18 matching lines...) Expand all Loading... |
65 | 68 |
66 // TODO(rmcilroy): Encapsulate this in an environment object. | 69 // TODO(rmcilroy): Encapsulate this in an environment object. |
67 Register current_context_; | 70 Register current_context_; |
68 }; | 71 }; |
69 | 72 |
70 } // namespace interpreter | 73 } // namespace interpreter |
71 } // namespace internal | 74 } // namespace internal |
72 } // namespace v8 | 75 } // namespace v8 |
73 | 76 |
74 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 77 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
OLD | NEW |