Commit 4dfff4ab authored by mstarzinger's avatar mstarzinger Committed by Commit bot

[turbofan] Introduce builders for property access.

This introduces a choke point in the AstGraphBuilder for property
access creation. This makes it easier to enrich all such nodes with
additional side-table or debugging information.

R=titzer@chromium.org

Review URL: https://codereview.chromium.org/1002713002

Cr-Commit-Position: refs/heads/master@{#27157}
parent 83245abb
This diff is collapsed.
...@@ -224,6 +224,15 @@ class AstGraphBuilder : public AstVisitor { ...@@ -224,6 +224,15 @@ class AstGraphBuilder : public AstVisitor {
const VectorSlotPair& feedback, const VectorSlotPair& feedback,
ContextualMode mode = CONTEXTUAL); ContextualMode mode = CONTEXTUAL);
// Builders for property loads and stores.
Node* BuildKeyedLoad(Node* receiver, Node* key,
const VectorSlotPair& feedback);
Node* BuildNamedLoad(Node* receiver, Handle<Name> name,
const VectorSlotPair& feedback,
ContextualMode mode = NOT_CONTEXTUAL);
Node* BuildKeyedStore(Node* receiver, Node* key, Node* value);
Node* BuildNamedStore(Node* receiver, Handle<Name>, Node* value);
// Builders for accessing the function context. // Builders for accessing the function context.
Node* BuildLoadBuiltinsObject(); Node* BuildLoadBuiltinsObject();
Node* BuildLoadGlobalObject(); Node* BuildLoadGlobalObject();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment