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

Unified Diff: src/code-stub-assembler.h

Issue 2163253002: [stubs] Port store IC dispatcher to TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing comments Created 4 years, 3 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/code-factory.cc ('k') | src/code-stub-assembler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stub-assembler.h
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h
index 25299b5503ca394048c02d3d3ea6f0333c854ccd..2bc78fffd91ef82f29a766a26992565569d11599 100644
--- a/src/code-stub-assembler.h
+++ b/src/code-stub-assembler.h
@@ -631,7 +631,7 @@ class CodeStubAssembler : public compiler::CodeAssembler {
compiler::Node* callable,
compiler::Node* object);
- // LoadIC helpers.
+ // Load/StoreIC helpers.
struct LoadICParameters {
LoadICParameters(compiler::Node* context, compiler::Node* receiver,
compiler::Node* name, compiler::Node* slot,
@@ -649,6 +649,15 @@ class CodeStubAssembler : public compiler::CodeAssembler {
compiler::Node* vector;
};
+ struct StoreICParameters : public LoadICParameters {
+ StoreICParameters(compiler::Node* context, compiler::Node* receiver,
+ compiler::Node* name, compiler::Node* value,
+ compiler::Node* slot, compiler::Node* vector)
+ : LoadICParameters(context, receiver, name, slot, vector),
+ value(value) {}
+ compiler::Node* value;
+ };
+
// Load type feedback vector from the stub caller's frame.
compiler::Node* LoadTypeFeedbackVectorForStub();
@@ -660,12 +669,12 @@ class CodeStubAssembler : public compiler::CodeAssembler {
compiler::Node* LoadReceiverMap(compiler::Node* receiver);
// Checks monomorphic case. Returns {feedback} entry of the vector.
- compiler::Node* TryMonomorphicCase(const LoadICParameters* p,
+ compiler::Node* TryMonomorphicCase(compiler::Node* slot,
+ compiler::Node* vector,
compiler::Node* receiver_map,
Label* if_handler, Variable* var_handler,
Label* if_miss);
- void HandlePolymorphicCase(const LoadICParameters* p,
- compiler::Node* receiver_map,
+ void HandlePolymorphicCase(compiler::Node* receiver_map,
compiler::Node* feedback, Label* if_handler,
Variable* var_handler, Label* if_miss,
int unroll_count);
@@ -746,6 +755,7 @@ class CodeStubAssembler : public compiler::CodeAssembler {
void LoadGlobalIC(const LoadICParameters* p);
void KeyedLoadIC(const LoadICParameters* p);
void KeyedLoadICGeneric(const LoadICParameters* p);
+ void StoreIC(const StoreICParameters* p);
void TransitionElementsKind(compiler::Node* object, compiler::Node* map,
ElementsKind from_kind, ElementsKind to_kind,
« no previous file with comments | « src/code-factory.cc ('k') | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698