| 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 20 matching lines...) Expand all Loading... |
| 31 void VisitPropertyLoad(Register obj, Property* expr); | 31 void VisitPropertyLoad(Register obj, Property* expr); |
| 32 void VisitVariableLoad(Variable* variable); | 32 void VisitVariableLoad(Variable* variable); |
| 33 | 33 |
| 34 inline BytecodeArrayBuilder& builder() { return builder_; } | 34 inline BytecodeArrayBuilder& builder() { return builder_; } |
| 35 inline Scope* scope() const { return scope_; } | 35 inline Scope* scope() const { return scope_; } |
| 36 inline void set_scope(Scope* scope) { scope_ = scope; } | 36 inline void set_scope(Scope* scope) { scope_ = scope; } |
| 37 inline CompilationInfo* info() const { return info_; } | 37 inline CompilationInfo* info() const { return info_; } |
| 38 inline void set_info(CompilationInfo* info) { info_ = info; } | 38 inline void set_info(CompilationInfo* info) { info_ = info; } |
| 39 | 39 |
| 40 LanguageMode language_mode() const; | 40 LanguageMode language_mode() const; |
| 41 int feedback_index(FeedbackVectorICSlot slot) const; | 41 int feedback_index(FeedbackVectorSlot slot) const; |
| 42 | 42 |
| 43 BytecodeArrayBuilder builder_; | 43 BytecodeArrayBuilder builder_; |
| 44 CompilationInfo* info_; | 44 CompilationInfo* info_; |
| 45 Scope* scope_; | 45 Scope* scope_; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace interpreter | 48 } // namespace interpreter |
| 49 } // namespace internal | 49 } // namespace internal |
| 50 } // namespace v8 | 50 } // namespace v8 |
| 51 | 51 |
| 52 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ | 52 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ |
| OLD | NEW |