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

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

Issue 1387383005: Eagerly extract stack limit from Isolate in InitializeAstVisitor() (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/full-codegen/full-codegen.h ('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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot); 42 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot);
43 void VisitNewLocalFunctionContext(); 43 void VisitNewLocalFunctionContext();
44 44
45 // Dispatched from VisitUnaryOperation. 45 // Dispatched from VisitUnaryOperation.
46 void VisitVoid(UnaryOperation* expr); 46 void VisitVoid(UnaryOperation* expr);
47 void VisitTypeOf(UnaryOperation* expr); 47 void VisitTypeOf(UnaryOperation* expr);
48 void VisitNot(UnaryOperation* expr); 48 void VisitNot(UnaryOperation* expr);
49 49
50 inline BytecodeArrayBuilder* builder() { return &builder_; } 50 inline BytecodeArrayBuilder* builder() { return &builder_; }
51 51
52 inline Isolate* isolate() const { return isolate_; }
53
52 inline Scope* scope() const { return scope_; } 54 inline Scope* scope() const { return scope_; }
53 inline void set_scope(Scope* scope) { scope_ = scope; } 55 inline void set_scope(Scope* scope) { scope_ = scope; }
54 inline CompilationInfo* info() const { return info_; } 56 inline CompilationInfo* info() const { return info_; }
55 inline void set_info(CompilationInfo* info) { info_ = info; } 57 inline void set_info(CompilationInfo* info) { info_ = info; }
56 58
57 inline ControlScope* control_scope() const { return control_scope_; } 59 inline ControlScope* control_scope() const { return control_scope_; }
58 inline void set_control_scope(ControlScope* scope) { control_scope_ = scope; } 60 inline void set_control_scope(ControlScope* scope) { control_scope_ = scope; }
59 inline Register current_context() const { return current_context_; } 61 inline Register current_context() const { return current_context_; }
60 inline void set_current_context(Register context) { 62 inline void set_current_context(Register context) {
61 current_context_ = context; 63 current_context_ = context;
62 } 64 }
63 65
64 ZoneVector<Handle<Object>>* globals() { return &globals_; } 66 ZoneVector<Handle<Object>>* globals() { return &globals_; }
65 inline LanguageMode language_mode() const; 67 inline LanguageMode language_mode() const;
66 Strength language_mode_strength() const; 68 Strength language_mode_strength() const;
67 int feedback_index(FeedbackVectorSlot slot) const; 69 int feedback_index(FeedbackVectorSlot slot) const;
68 70
71 Isolate* isolate_;
69 BytecodeArrayBuilder builder_; 72 BytecodeArrayBuilder builder_;
70 CompilationInfo* info_; 73 CompilationInfo* info_;
71 Scope* scope_; 74 Scope* scope_;
72 ZoneVector<Handle<Object>> globals_; 75 ZoneVector<Handle<Object>> globals_;
73 ControlScope* control_scope_; 76 ControlScope* control_scope_;
74 77
75 Register current_context_; 78 Register current_context_;
76 }; 79 };
77 80
78 } // namespace interpreter 81 } // namespace interpreter
79 } // namespace internal 82 } // namespace internal
80 } // namespace v8 83 } // namespace v8
81 84
82 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ 85 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.h ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698