Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: src/interpreter/bytecode-generator.h

Issue 1361113002: [Interpreter] Add support for loading globals in the interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review comments and fix ASAN Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/interpreter/bytecode-array-iterator.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 11 matching lines...) Expand all
22 22
23 #define DECLARE_VISIT(type) void Visit##type(type* node) override; 23 #define DECLARE_VISIT(type) void Visit##type(type* node) override;
24 AST_NODE_LIST(DECLARE_VISIT) 24 AST_NODE_LIST(DECLARE_VISIT)
25 #undef DECLARE_VISIT 25 #undef DECLARE_VISIT
26 26
27 private: 27 private:
28 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); 28 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
29 29
30 void VisitArithmeticExpression(BinaryOperation* binop); 30 void VisitArithmeticExpression(BinaryOperation* binop);
31 void VisitPropertyLoad(Register obj, Property* expr); 31 void VisitPropertyLoad(Register obj, Property* expr);
32 void VisitVariableLoad(Variable* variable);
32 33
33 inline BytecodeArrayBuilder& builder() { return builder_; } 34 inline BytecodeArrayBuilder& builder() { return builder_; }
34 inline Scope* scope() const { return scope_; } 35 inline Scope* scope() const { return scope_; }
35 inline void set_scope(Scope* scope) { scope_ = scope; } 36 inline void set_scope(Scope* scope) { scope_ = scope; }
36 inline CompilationInfo* info() const { return info_; } 37 inline CompilationInfo* info() const { return info_; }
37 inline void set_info(CompilationInfo* info) { info_ = info; } 38 inline void set_info(CompilationInfo* info) { info_ = info; }
38 39
39 LanguageMode language_mode() const; 40 LanguageMode language_mode() const;
40 int feedback_index(FeedbackVectorICSlot slot) const; 41 int feedback_index(FeedbackVectorICSlot slot) const;
41 42
42 BytecodeArrayBuilder builder_; 43 BytecodeArrayBuilder builder_;
43 CompilationInfo* info_; 44 CompilationInfo* info_;
44 Scope* scope_; 45 Scope* scope_;
45 }; 46 };
46 47
47 } // namespace interpreter 48 } // namespace interpreter
48 } // namespace internal 49 } // namespace internal
49 } // namespace v8 50 } // namespace v8
50 51
51 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ 52 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-iterator.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698