| 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 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 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 Register VisitArguments(ZoneList<Expression*>* arguments, |
| 37 TemporaryRegisterScope* caller_scope); |
| 36 void VisitArithmeticExpression(BinaryOperation* binop); | 38 void VisitArithmeticExpression(BinaryOperation* binop); |
| 37 void VisitPropertyLoad(Register obj, Property* expr); | 39 void VisitPropertyLoad(Register obj, Property* expr); |
| 38 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot); | 40 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot); |
| 39 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot); | 41 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot); |
| 40 | 42 |
| 41 // Dispatched from VisitUnaryOperation. | 43 // Dispatched from VisitUnaryOperation. |
| 42 void VisitVoid(UnaryOperation* expr); | 44 void VisitVoid(UnaryOperation* expr); |
| 43 void VisitTypeOf(UnaryOperation* expr); | 45 void VisitTypeOf(UnaryOperation* expr); |
| 44 void VisitNot(UnaryOperation* expr); | 46 void VisitNot(UnaryOperation* expr); |
| 45 | 47 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 65 | 67 |
| 66 // TODO(rmcilroy): Encapsulate this in an environment object. | 68 // TODO(rmcilroy): Encapsulate this in an environment object. |
| 67 Register current_context_; | 69 Register current_context_; |
| 68 }; | 70 }; |
| 69 | 71 |
| 70 } // namespace interpreter | 72 } // namespace interpreter |
| 71 } // namespace internal | 73 } // namespace internal |
| 72 } // namespace v8 | 74 } // namespace v8 |
| 73 | 75 |
| 74 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 76 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
| OLD | NEW |