| 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/ast.h" | 8 #include "src/ast/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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 void VisitPropertyLoadForAccumulator(Register obj, Property* expr); | 69 void VisitPropertyLoadForAccumulator(Register obj, Property* expr); |
| 70 | 70 |
| 71 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot, | 71 void VisitVariableLoad(Variable* variable, FeedbackVectorSlot slot, |
| 72 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); | 72 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); |
| 73 void VisitVariableLoadForAccumulatorValue( | 73 void VisitVariableLoadForAccumulatorValue( |
| 74 Variable* variable, FeedbackVectorSlot slot, | 74 Variable* variable, FeedbackVectorSlot slot, |
| 75 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); | 75 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); |
| 76 MUST_USE_RESULT Register | 76 MUST_USE_RESULT Register |
| 77 VisitVariableLoadForRegisterValue(Variable* variable, FeedbackVectorSlot slot, | 77 VisitVariableLoadForRegisterValue(Variable* variable, FeedbackVectorSlot slot, |
| 78 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); | 78 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); |
| 79 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot); | 79 void VisitVariableAssignment(Variable* variable, Token::Value op, |
| 80 FeedbackVectorSlot slot); |
| 81 void BuildThrowIfHole(Handle<String> name); |
| 82 void BuildThrowIfNotHole(Handle<String> name); |
| 83 void BuildThrowReassignConstant(Handle<String> name); |
| 84 void BuildHoleCheckForVariableLoad(VariableMode mode, Handle<String> name); |
| 85 void BuildHoleCheckForVariableAssignment(Variable* variable, Token::Value op); |
| 80 | 86 |
| 81 void VisitArgumentsObject(Variable* variable); | 87 void VisitArgumentsObject(Variable* variable); |
| 82 void VisitRestArgumentsArray(Variable* rest); | 88 void VisitRestArgumentsArray(Variable* rest); |
| 83 void VisitClassLiteralContents(ClassLiteral* expr); | 89 void VisitClassLiteralContents(ClassLiteral* expr); |
| 84 void VisitClassLiteralForRuntimeDefinition(ClassLiteral* expr); | 90 void VisitClassLiteralForRuntimeDefinition(ClassLiteral* expr); |
| 85 void VisitClassLiteralProperties(ClassLiteral* expr, Register literal, | 91 void VisitClassLiteralProperties(ClassLiteral* expr, Register literal, |
| 86 Register prototype); | 92 Register prototype); |
| 87 void VisitClassLiteralStaticPrototypeWithComputedName(Register name); | 93 void VisitClassLiteralStaticPrototypeWithComputedName(Register name); |
| 88 void VisitThisFunctionVariable(Variable* variable); | 94 void VisitThisFunctionVariable(Variable* variable); |
| 89 void VisitNewTargetVariable(Variable* variable); | 95 void VisitNewTargetVariable(Variable* variable); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 ContextScope* execution_context_; | 170 ContextScope* execution_context_; |
| 165 ExpressionResultScope* execution_result_; | 171 ExpressionResultScope* execution_result_; |
| 166 RegisterAllocationScope* register_allocator_; | 172 RegisterAllocationScope* register_allocator_; |
| 167 }; | 173 }; |
| 168 | 174 |
| 169 } // namespace interpreter | 175 } // namespace interpreter |
| 170 } // namespace internal | 176 } // namespace internal |
| 171 } // namespace v8 | 177 } // namespace v8 |
| 172 | 178 |
| 173 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 179 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
| OLD | NEW |