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

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

Issue 1002713002: [turbofan] Introduce builders for property access. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 Node* BuildVariableAssignment(Variable* var, Node* value, Token::Value op, 217 Node* BuildVariableAssignment(Variable* var, Node* value, Token::Value op,
218 BailoutId bailout_id, 218 BailoutId bailout_id,
219 OutputFrameStateCombine state_combine = 219 OutputFrameStateCombine state_combine =
220 OutputFrameStateCombine::Ignore()); 220 OutputFrameStateCombine::Ignore());
221 Node* BuildVariableDelete(Variable* var, BailoutId bailout_id, 221 Node* BuildVariableDelete(Variable* var, BailoutId bailout_id,
222 OutputFrameStateCombine state_combine); 222 OutputFrameStateCombine state_combine);
223 Node* BuildVariableLoad(Variable* var, BailoutId bailout_id, 223 Node* BuildVariableLoad(Variable* var, BailoutId bailout_id,
224 const VectorSlotPair& feedback, 224 const VectorSlotPair& feedback,
225 ContextualMode mode = CONTEXTUAL); 225 ContextualMode mode = CONTEXTUAL);
226 226
227 // Builders for property loads and stores.
228 Node* BuildKeyedLoad(Node* receiver, Node* key,
229 const VectorSlotPair& feedback);
230 Node* BuildNamedLoad(Node* receiver, Handle<Name> name,
231 const VectorSlotPair& feedback,
232 ContextualMode mode = NOT_CONTEXTUAL);
233 Node* BuildKeyedStore(Node* receiver, Node* key, Node* value);
234 Node* BuildNamedStore(Node* receiver, Handle<Name>, Node* value);
235
227 // Builders for accessing the function context. 236 // Builders for accessing the function context.
228 Node* BuildLoadBuiltinsObject(); 237 Node* BuildLoadBuiltinsObject();
229 Node* BuildLoadGlobalObject(); 238 Node* BuildLoadGlobalObject();
230 Node* BuildLoadGlobalProxy(); 239 Node* BuildLoadGlobalProxy();
231 Node* BuildLoadClosure(); 240 Node* BuildLoadClosure();
232 Node* BuildLoadObjectField(Node* object, int offset); 241 Node* BuildLoadObjectField(Node* object, int offset);
233 242
234 // Builders for accessing external references. 243 // Builders for accessing external references.
235 Node* BuildLoadExternal(ExternalReference ref, MachineType type); 244 Node* BuildLoadExternal(ExternalReference ref, MachineType type);
236 Node* BuildStoreExternal(ExternalReference ref, MachineType type, Node* val); 245 Node* BuildStoreExternal(ExternalReference ref, MachineType type, Node* val);
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 493
485 // Prepare environment to be used as loop header. 494 // Prepare environment to be used as loop header.
486 void PrepareForLoop(BitVector* assigned, bool is_osr = false); 495 void PrepareForLoop(BitVector* assigned, bool is_osr = false);
487 }; 496 };
488 497
489 } // namespace compiler 498 } // namespace compiler
490 } // namespace internal 499 } // namespace internal
491 } // namespace v8 500 } // namespace v8
492 501
493 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ 502 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698