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

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

Issue 1422033002: [Interpreter] Add support for for..in. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Comment nits. Created 5 years, 1 month 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.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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void VisitNewTargetVariable(Variable* variable); 71 void VisitNewTargetVariable(Variable* variable);
72 void VisitNewLocalFunctionContext(); 72 void VisitNewLocalFunctionContext();
73 void VisitBuildLocalActivationContext(); 73 void VisitBuildLocalActivationContext();
74 void VisitNewLocalBlockContext(Scope* scope); 74 void VisitNewLocalBlockContext(Scope* scope);
75 void VisitFunctionClosureForContext(); 75 void VisitFunctionClosureForContext();
76 void VisitSetHomeObject(Register value, Register home_object, 76 void VisitSetHomeObject(Register value, Register home_object,
77 ObjectLiteralProperty* property, int slot_number = 0); 77 ObjectLiteralProperty* property, int slot_number = 0);
78 void VisitObjectLiteralAccessor(Register home_object, 78 void VisitObjectLiteralAccessor(Register home_object,
79 ObjectLiteralProperty* property, 79 ObjectLiteralProperty* property,
80 Register value_out); 80 Register value_out);
81 void VisitForInAssignment(Expression* expr, FeedbackVectorSlot slot);
81 82
82 83
83 // Visitors for obtaining expression result in the accumulator, in a 84 // Visitors for obtaining expression result in the accumulator, in a
84 // register, or just getting the effect. 85 // register, or just getting the effect.
85 void VisitForAccumulatorValue(Expression* expression); 86 void VisitForAccumulatorValue(Expression* expression);
86 MUST_USE_RESULT Register VisitForRegisterValue(Expression* expression); 87 MUST_USE_RESULT Register VisitForRegisterValue(Expression* expression);
87 void VisitForEffect(Expression* node); 88 void VisitForEffect(Expression* node);
88 89
89 // Methods marking the start and end of binary expressions. 90 // Methods marking the start and end of binary expressions.
90 void PrepareForBinaryExpression(); 91 void PrepareForBinaryExpression();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 135
135 int binary_expression_depth_; 136 int binary_expression_depth_;
136 ZoneSet<int> binary_expression_hazard_set_; 137 ZoneSet<int> binary_expression_hazard_set_;
137 }; 138 };
138 139
139 } // namespace interpreter 140 } // namespace interpreter
140 } // namespace internal 141 } // namespace internal
141 } // namespace v8 142 } // namespace v8
142 143
143 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ 144 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698