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

Side by Side Diff: src/compiler/ast-graph-builder.h

Issue 816913003: Implement ES6 rest parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix typo in ARM port Created 5 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/compiler.cc ('k') | src/compiler/ast-graph-builder.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_COMPILER_AST_GRAPH_BUILDER_H_ 5 #ifndef V8_COMPILER_AST_GRAPH_BUILDER_H_
6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_ 6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_
7 7
8 #include "src/ast.h" 8 #include "src/ast.h"
9 #include "src/compiler/js-graph.h" 9 #include "src/compiler/js-graph.h"
10 10
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // Builder to create a receiver check for sloppy mode. 198 // Builder to create a receiver check for sloppy mode.
199 Node* BuildPatchReceiverToGlobalProxy(Node* receiver); 199 Node* BuildPatchReceiverToGlobalProxy(Node* receiver);
200 200
201 // Builders to create local function and block contexts. 201 // Builders to create local function and block contexts.
202 Node* BuildLocalFunctionContext(Node* context, Node* closure); 202 Node* BuildLocalFunctionContext(Node* context, Node* closure);
203 Node* BuildLocalBlockContext(Scope* scope); 203 Node* BuildLocalBlockContext(Scope* scope);
204 204
205 // Builder to create an arguments object if it is used. 205 // Builder to create an arguments object if it is used.
206 Node* BuildArgumentsObject(Variable* arguments); 206 Node* BuildArgumentsObject(Variable* arguments);
207 207
208 // Builder to create an array of rest parameters if used
209 Node* BuildRestArgumentsArray(Variable* rest, int index);
210
208 // Builders for variable load and assignment. 211 // Builders for variable load and assignment.
209 Node* BuildVariableAssignment(Variable* var, Node* value, Token::Value op, 212 Node* BuildVariableAssignment(Variable* var, Node* value, Token::Value op,
210 BailoutId bailout_id, 213 BailoutId bailout_id,
211 OutputFrameStateCombine state_combine = 214 OutputFrameStateCombine state_combine =
212 OutputFrameStateCombine::Ignore()); 215 OutputFrameStateCombine::Ignore());
213 Node* BuildVariableDelete(Variable* var, BailoutId bailout_id, 216 Node* BuildVariableDelete(Variable* var, BailoutId bailout_id,
214 OutputFrameStateCombine state_combine); 217 OutputFrameStateCombine state_combine);
215 Node* BuildVariableLoad(Variable* var, BailoutId bailout_id, 218 Node* BuildVariableLoad(Variable* var, BailoutId bailout_id,
216 const VectorSlotPair& feedback, 219 const VectorSlotPair& feedback,
217 ContextualMode mode = CONTEXTUAL); 220 ContextualMode mode = CONTEXTUAL);
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 458
456 // Prepare environment to be used as loop header. 459 // Prepare environment to be used as loop header.
457 void PrepareForLoop(BitVector* assigned, bool is_osr = false); 460 void PrepareForLoop(BitVector* assigned, bool is_osr = false);
458 }; 461 };
459 462
460 } // namespace compiler 463 } // namespace compiler
461 } // namespace internal 464 } // namespace internal
462 } // namespace v8 465 } // namespace v8
463 466
464 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ 467 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698