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

Unified Diff: src/full-codegen/full-codegen.cc

Issue 2357163003: [ic][ia32][x87] Pass value, slot and vector to StoreIC and KeyedStoreIC through the stack. (Closed)
Patch Set: 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/compiler/js-generic-lowering.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/full-codegen/full-codegen.cc
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc
index b8aff87a3ba5f809672dd5edbd866ded7be03ad6..2c5d979cf1d3f3563d698a947af3da456eeb37d5 100644
--- a/src/full-codegen/full-codegen.cc
+++ b/src/full-codegen/full-codegen.cc
@@ -237,6 +237,14 @@ void FullCodeGenerator::CallLoadGlobalIC(TypeofMode typeof_mode,
void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) {
Handle<Code> ic = CodeFactory::StoreIC(isolate(), language_mode()).code();
+
+ STATIC_ASSERT(!StoreDescriptor::kPassLastArgsOnStack ||
+ StoreDescriptor::kStackArgumentsCount == 2);
+ if (StoreDescriptor::kPassLastArgsOnStack) {
+ __ Push(StoreDescriptor::ValueRegister());
+ __ Push(StoreDescriptor::SlotRegister());
+ }
mvstanton 2016/09/22 08:06:24 Would it be better to push these values directly o
Igor Sheludko 2016/09/22 08:41:09 Yes it would. Let me address this in a follow-up C
+
CallIC(ic, id);
RestoreContext();
}
@@ -244,6 +252,14 @@ void FullCodeGenerator::CallStoreIC(TypeFeedbackId id) {
void FullCodeGenerator::CallKeyedStoreIC() {
Handle<Code> ic =
CodeFactory::KeyedStoreIC(isolate(), language_mode()).code();
+
+ STATIC_ASSERT(!StoreDescriptor::kPassLastArgsOnStack ||
+ StoreDescriptor::kStackArgumentsCount == 2);
+ if (StoreDescriptor::kPassLastArgsOnStack) {
+ __ Push(StoreDescriptor::ValueRegister());
+ __ Push(StoreDescriptor::SlotRegister());
+ }
+
CallIC(ic);
RestoreContext();
}
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/ia32/code-stubs-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698