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

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

Issue 1664593003: [Interpreter] Adds support for rest parameters to interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixes comments. 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 | « 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); 70 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF);
71 void VisitVariableLoadForAccumulatorValue( 71 void VisitVariableLoadForAccumulatorValue(
72 Variable* variable, FeedbackVectorSlot slot, 72 Variable* variable, FeedbackVectorSlot slot,
73 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); 73 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF);
74 MUST_USE_RESULT Register 74 MUST_USE_RESULT Register
75 VisitVariableLoadForRegisterValue(Variable* variable, FeedbackVectorSlot slot, 75 VisitVariableLoadForRegisterValue(Variable* variable, FeedbackVectorSlot slot,
76 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF); 76 TypeofMode typeof_mode = NOT_INSIDE_TYPEOF);
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 VisitRestArgumentsArray(Variable* rest, int index);
80 void VisitThisFunctionVariable(Variable* variable); 81 void VisitThisFunctionVariable(Variable* variable);
81 void VisitNewTargetVariable(Variable* variable); 82 void VisitNewTargetVariable(Variable* variable);
82 void VisitNewLocalFunctionContext(); 83 void VisitNewLocalFunctionContext();
83 void VisitBuildLocalActivationContext(); 84 void VisitBuildLocalActivationContext();
84 void VisitBlockDeclarationsAndStatements(Block* stmt); 85 void VisitBlockDeclarationsAndStatements(Block* stmt);
85 void VisitNewLocalBlockContext(Scope* scope); 86 void VisitNewLocalBlockContext(Scope* scope);
86 void VisitNewLocalCatchContext(Variable* variable); 87 void VisitNewLocalCatchContext(Variable* variable);
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);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 ContextScope* execution_context_; 151 ContextScope* execution_context_;
151 ExpressionResultScope* execution_result_; 152 ExpressionResultScope* execution_result_;
152 RegisterAllocationScope* register_allocator_; 153 RegisterAllocationScope* register_allocator_;
153 }; 154 };
154 155
155 } // namespace interpreter 156 } // namespace interpreter
156 } // namespace internal 157 } // namespace internal
157 } // namespace v8 158 } // namespace v8
158 159
159 #endif // V8_INTERPRETER_BYTECODE_GENERATOR_H_ 160 #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