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

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

Issue 2610683003: [ignition] Only initialize [[HomeObject]] for class constructors if needed (Closed)
Patch Set: Fix bytecode expectations Created 3 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
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/bytecode-label.h" 10 #include "src/interpreter/bytecode-label.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 void BuildLocalActivationContextInitialization(); 123 void BuildLocalActivationContextInitialization();
124 void BuildNewLocalBlockContext(Scope* scope); 124 void BuildNewLocalBlockContext(Scope* scope);
125 void BuildNewLocalCatchContext(Variable* variable, Scope* scope); 125 void BuildNewLocalCatchContext(Variable* variable, Scope* scope);
126 void BuildNewLocalWithContext(Scope* scope); 126 void BuildNewLocalWithContext(Scope* scope);
127 127
128 void VisitGeneratorPrologue(); 128 void VisitGeneratorPrologue();
129 129
130 void VisitArgumentsObject(Variable* variable); 130 void VisitArgumentsObject(Variable* variable);
131 void VisitRestArgumentsArray(Variable* rest); 131 void VisitRestArgumentsArray(Variable* rest);
132 void VisitCallSuper(Call* call); 132 void VisitCallSuper(Call* call);
133 void VisitClassLiteralForRuntimeDefinition(ClassLiteral* expr); 133 void VisitClassLiteralProperties(ClassLiteral* expr, Register constructor,
134 void VisitClassLiteralProperties(ClassLiteral* expr, Register literal,
135 Register prototype); 134 Register prototype);
136 void BuildClassLiteralNameProperty(ClassLiteral* expr, Register literal); 135 void BuildClassLiteralNameProperty(ClassLiteral* expr, Register constructor);
137 void VisitThisFunctionVariable(Variable* variable); 136 void VisitThisFunctionVariable(Variable* variable);
138 void VisitNewTargetVariable(Variable* variable); 137 void VisitNewTargetVariable(Variable* variable);
139 void VisitBlockDeclarationsAndStatements(Block* stmt); 138 void VisitBlockDeclarationsAndStatements(Block* stmt);
140 void VisitFunctionClosureForContext(); 139 void VisitFunctionClosureForContext();
141 void VisitSetHomeObject(Register value, Register home_object, 140 void VisitSetHomeObject(Register value, Register home_object,
142 LiteralProperty* property, int slot_number = 0); 141 LiteralProperty* property, int slot_number = 0);
143 void VisitObjectLiteralAccessor(Register home_object, 142 void VisitObjectLiteralAccessor(Register home_object,
144 ObjectLiteralProperty* property, 143 ObjectLiteralProperty* property,
145 Register value_out); 144 Register value_out);
146 void VisitForInAssignment(Expression* expr, FeedbackVectorSlot slot); 145 void VisitForInAssignment(Expression* expr, FeedbackVectorSlot slot);
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 Handle<Name> prototype_string_; 227 Handle<Name> prototype_string_;
229 Handle<FixedArray> empty_fixed_array_; 228 Handle<FixedArray> empty_fixed_array_;
230 const AstRawString* undefined_string_; 229 const AstRawString* undefined_string_;
231 }; 230 };
232 231
233 } // namespace interpreter 232 } // namespace interpreter
234 } // namespace internal 233 } // namespace internal
235 } // namespace v8 234 } // namespace v8
236 235
237 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ 236 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698