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

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

Issue 1656863002: [Interpreter] Adds support for with statement to interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed cctest.status. Created 4 years, 10 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 | « no previous file | 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot); 77 void VisitVariableAssignment(Variable* variable, FeedbackVectorSlot slot);
78 78
79 void VisitArgumentsObject(Variable* variable); 79 void VisitArgumentsObject(Variable* variable);
80 void VisitThisFunctionVariable(Variable* variable); 80 void VisitThisFunctionVariable(Variable* variable);
81 void VisitNewTargetVariable(Variable* variable); 81 void VisitNewTargetVariable(Variable* variable);
82 void VisitNewLocalFunctionContext(); 82 void VisitNewLocalFunctionContext();
83 void VisitBuildLocalActivationContext(); 83 void VisitBuildLocalActivationContext();
84 void VisitBlockDeclarationsAndStatements(Block* stmt); 84 void VisitBlockDeclarationsAndStatements(Block* stmt);
85 void VisitNewLocalBlockContext(Scope* scope); 85 void VisitNewLocalBlockContext(Scope* scope);
86 void VisitNewLocalCatchContext(Variable* variable); 86 void VisitNewLocalCatchContext(Variable* variable);
87 void VisitNewLocalWithContext();
87 void VisitFunctionClosureForContext(); 88 void VisitFunctionClosureForContext();
88 void VisitSetHomeObject(Register value, Register home_object, 89 void VisitSetHomeObject(Register value, Register home_object,
89 ObjectLiteralProperty* property, int slot_number = 0); 90 ObjectLiteralProperty* property, int slot_number = 0);
90 void VisitObjectLiteralAccessor(Register home_object, 91 void VisitObjectLiteralAccessor(Register home_object,
91 ObjectLiteralProperty* property, 92 ObjectLiteralProperty* property,
92 Register value_out); 93 Register value_out);
93 void VisitForInAssignment(Expression* expr, FeedbackVectorSlot slot); 94 void VisitForInAssignment(Expression* expr, FeedbackVectorSlot slot);
94 95
95 // Visit a statement and switch scopes, the context is in the accumulator. 96 // Visit a statement and switch scopes, the context is in the accumulator.
96 void VisitInScope(Statement* stmt, Scope* scope); 97 void VisitInScope(Statement* stmt, Scope* scope);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 ContextScope* execution_context_; 152 ContextScope* execution_context_;
152 ExpressionResultScope* execution_result_; 153 ExpressionResultScope* execution_result_;
153 RegisterAllocationScope* register_allocator_; 154 RegisterAllocationScope* register_allocator_;
154 }; 155 };
155 156
156 } // namespace interpreter 157 } // namespace interpreter
157 } // namespace internal 158 } // namespace internal
158 } // namespace v8 159 } // namespace v8
159 160
160 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ 161 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698