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

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

Issue 633423002: Teach TurboFan to call vector-based ICs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Patch One. Created 6 years, 2 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
Index: src/compiler/ast-graph-builder.h
diff --git a/src/compiler/ast-graph-builder.h b/src/compiler/ast-graph-builder.h
index 967b24bda13d32f33101068e2a2429fdd775b89c..1f0514b11cba76193dad3275c932b29a8749b489 100644
--- a/src/compiler/ast-graph-builder.h
+++ b/src/compiler/ast-graph-builder.h
@@ -52,6 +52,14 @@ class AstGraphBuilder : public StructuredGraphBuilder, public AstVisitor {
void set_breakable(BreakableScope* brk) { breakable_ = brk; }
void set_execution_context(ContextScope* ctx) { execution_context_ = ctx; }
+ LoadICFeedbackNode LoadNamedFeedback(int slot) const {
Michael Starzinger 2014/10/08 15:23:09 As discussed offline: Haveing to deal with IC-rela
mvstanton 2014/10/10 08:26:16 Done.
+ return LoadICFeedbackNode(vector_, slot);
+ }
+
+ KeyedLoadICFeedbackNode LoadPropertyFeedback(int slot) const {
+ return KeyedLoadICFeedbackNode(vector_, slot);
+ }
+
// Support for control flow builders. The concrete type of the environment
// depends on the graph builder, but environments themselves are not virtual.
typedef StructuredGraphBuilder::Environment BaseEnvironment;
@@ -82,7 +90,7 @@ class AstGraphBuilder : public StructuredGraphBuilder, public AstVisitor {
BailoutId bailout_id);
Node* BuildVariableDelete(Variable* var, BailoutId bailout_id,
OutputFrameStateCombine state_combine);
- Node* BuildVariableLoad(Variable* var, BailoutId bailout_id,
+ Node* BuildVariableLoad(VariableProxy* proxy, BailoutId bailout_id,
Michael Starzinger 2014/10/08 15:23:09 Either all the BuildVariableFoo helpers should wor
mvstanton 2014/10/10 08:26:16 Done.
ContextualMode mode = CONTEXTUAL);
// Builders for accessing the function context.
@@ -118,6 +126,7 @@ class AstGraphBuilder : public StructuredGraphBuilder, public AstVisitor {
private:
CompilationInfo* info_;
+ Handle<TypeFeedbackVector> vector_;
Michael Starzinger 2014/10/08 15:23:09 nit: Let's not start caching handles yet, this see
mvstanton 2014/10/10 08:26:16 Done.
AstContext* ast_context_;
JSGraph* jsgraph_;

Powered by Google App Engine
This is Rietveld 408576698