| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 class ContextScope; | 31 class ContextScope; |
| 32 class ControlScope; | 32 class ControlScope; |
| 33 class ControlScopeForIteration; | 33 class ControlScopeForIteration; |
| 34 | 34 |
| 35 void MakeBytecodeBody(); | 35 void MakeBytecodeBody(); |
| 36 | 36 |
| 37 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); | 37 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); |
| 38 | 38 |
| 39 Register VisitArguments(ZoneList<Expression*>* arguments, |
| 40 TemporaryRegisterScope* caller_scope); |
| 39 void VisitArithmeticExpression(BinaryOperation* binop); | 41 void VisitArithmeticExpression(BinaryOperation* binop); |
| 40 void VisitCommaExpression(BinaryOperation* binop); | 42 void VisitCommaExpression(BinaryOperation* binop); |
| 41 void VisitLogicalOrExpression(BinaryOperation* binop); | 43 void VisitLogicalOrExpression(BinaryOperation* binop); |
| 42 void VisitLogicalAndExpression(BinaryOperation* binop); | 44 void VisitLogicalAndExpression(BinaryOperation* binop); |
| 43 void VisitPropertyLoad(Register obj, Property* expr); | 45 void VisitPropertyLoad(Register obj, Property* expr); |
| 44 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot); | 46 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot); |
| 45 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot); | 47 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot); |
| 46 void VisitNewLocalFunctionContext(); | 48 void VisitNewLocalFunctionContext(); |
| 47 void VisitSetHomeObject(Register value, Register home_object, | 49 void VisitSetHomeObject(Register value, Register home_object, |
| 48 ObjectLiteralProperty* property, int slot_number = 0); | 50 ObjectLiteralProperty* property, int slot_number = 0); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 ControlScope* control_scope_; | 88 ControlScope* control_scope_; |
| 87 | 89 |
| 88 Register current_context_; | 90 Register current_context_; |
| 89 }; | 91 }; |
| 90 | 92 |
| 91 } // namespace interpreter | 93 } // namespace interpreter |
| 92 } // namespace internal | 94 } // namespace internal |
| 93 } // namespace v8 | 95 } // namespace v8 |
| 94 | 96 |
| 95 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 97 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
| OLD | NEW |