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

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

Issue 1604923002: [Interpreter] Always store current context in the frames context slot. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_fix_block_context_scope
Patch Set: Rebase Created 4 years, 11 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-builder.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/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 24 matching lines...) Expand all
35 class ControlScopeForTopLevel; 35 class ControlScopeForTopLevel;
36 class ControlScopeForTryCatch; 36 class ControlScopeForTryCatch;
37 class ControlScopeForTryFinally; 37 class ControlScopeForTryFinally;
38 class ExpressionResultScope; 38 class ExpressionResultScope;
39 class EffectResultScope; 39 class EffectResultScope;
40 class AccumulatorResultScope; 40 class AccumulatorResultScope;
41 class RegisterResultScope; 41 class RegisterResultScope;
42 class RegisterAllocationScope; 42 class RegisterAllocationScope;
43 43
44 void MakeBytecodeBody(); 44 void MakeBytecodeBody();
45 Register NextContextRegister() const;
46 45
47 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS(); 46 DEFINE_AST_VISITOR_SUBCLASS_MEMBERS();
48 47
49 // Dispatched from VisitBinaryOperation. 48 // Dispatched from VisitBinaryOperation.
50 void VisitArithmeticExpression(BinaryOperation* binop); 49 void VisitArithmeticExpression(BinaryOperation* binop);
51 void VisitCommaExpression(BinaryOperation* binop); 50 void VisitCommaExpression(BinaryOperation* binop);
52 void VisitLogicalOrExpression(BinaryOperation* binop); 51 void VisitLogicalOrExpression(BinaryOperation* binop);
53 void VisitLogicalAndExpression(BinaryOperation* binop); 52 void VisitLogicalAndExpression(BinaryOperation* binop);
54 53
55 // Dispatched from VisitUnaryOperation. 54 // Dispatched from VisitUnaryOperation.
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 ContextScope* execution_context_; 150 ContextScope* execution_context_;
152 ExpressionResultScope* execution_result_; 151 ExpressionResultScope* execution_result_;
153 RegisterAllocationScope* register_allocator_; 152 RegisterAllocationScope* register_allocator_;
154 }; 153 };
155 154
156 } // namespace interpreter 155 } // namespace interpreter
157 } // namespace internal 156 } // namespace internal
158 } // namespace v8 157 } // namespace v8
159 158
160 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ 159 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-builder.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698