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

Unified Diff: src/compiler/ast-graph-builder.h

Issue 1021713005: [turbofan]: Integrate basic type feedback for property accesses. (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/ast-graph-builder.h
diff --git a/src/compiler/ast-graph-builder.h b/src/compiler/ast-graph-builder.h
index 85d493076ef0ed9a035a2b584c3e2c082e2495fa..f75207783fc6140280b39bbdb12f195d86840919 100644
--- a/src/compiler/ast-graph-builder.h
+++ b/src/compiler/ast-graph-builder.h
@@ -19,6 +19,7 @@ namespace compiler {
class ControlBuilder;
class Graph;
+class JSTypeFeedbackTable;
class LoopAssignmentAnalysis;
class LoopBuilder;
class Node;
@@ -30,7 +31,8 @@ class Node;
class AstGraphBuilder : public AstVisitor {
public:
AstGraphBuilder(Zone* local_zone, CompilationInfo* info, JSGraph* jsgraph,
- LoopAssignmentAnalysis* loop_assignment = NULL);
+ LoopAssignmentAnalysis* loop_assignment = NULL,
+ JSTypeFeedbackTable* js_type_feedback = NULL);
// Creates a graph by visiting the entire AST.
bool CreateGraph(bool constant_context, bool stack_check = true);
@@ -105,6 +107,9 @@ class AstGraphBuilder : public AstVisitor {
// Analyzer of local variable liveness.
LivenessAnalyzer liveness_analyzer_;
+ // Type feedback table.
+ JSTypeFeedbackTable* js_type_feedback_;
+
// Growth increment for the temporary buffer used to construct input lists to
// new nodes.
static const int kInputBufferSizeIncrement = 64;
@@ -263,12 +268,14 @@ class AstGraphBuilder : public AstVisitor {
// Builders for property loads and stores.
Node* BuildKeyedLoad(Node* receiver, Node* key,
- const VectorSlotPair& feedback);
+ const VectorSlotPair& feedback, TypeFeedbackId id);
Node* BuildNamedLoad(Node* receiver, Handle<Name> name,
- const VectorSlotPair& feedback,
+ const VectorSlotPair& feedback, TypeFeedbackId id,
ContextualMode mode = NOT_CONTEXTUAL);
- Node* BuildKeyedStore(Node* receiver, Node* key, Node* value);
- Node* BuildNamedStore(Node* receiver, Handle<Name>, Node* value);
+ Node* BuildKeyedStore(Node* receiver, Node* key, Node* value,
+ TypeFeedbackId id);
+ Node* BuildNamedStore(Node* receiver, Handle<Name>, Node* value,
+ TypeFeedbackId id);
// Builders for accessing the function context.
Node* BuildLoadBuiltinsObject();
« no previous file with comments | « src/compiler/access-builder.h ('k') | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698