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

Unified Diff: src/code-stubs.h

Issue 486213003: Move register conventions out of the IC classes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. Created 6 years, 4 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/arm64/lithium-codegen-arm64.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stubs.h
diff --git a/src/code-stubs.h b/src/code-stubs.h
index 9f18772938f0658ef94434974ed343a7cb4aecf1..b69f58b81c8bfe3f735a3ee0070bd4a169fae580 100644
--- a/src/code-stubs.h
+++ b/src/code-stubs.h
@@ -10,6 +10,7 @@
#include "src/codegen.h"
#include "src/globals.h"
#include "src/ic/ic.h"
+#include "src/ic/ic-conventions.h"
#include "src/macro-assembler.h"
#include "src/ostreams.h"
@@ -2442,12 +2443,14 @@ class ElementsTransitionAndStoreStub : public HydrogenCodeStub {
};
static const Register ValueRegister() {
- return KeyedStoreIC::ValueRegister();
+ return StoreConvention::ValueRegister();
+ }
+ static const Register MapRegister() { return StoreConvention::MapRegister(); }
+ static const Register KeyRegister() {
+ return StoreConvention::NameRegister();
}
- static const Register MapRegister() { return KeyedStoreIC::MapRegister(); }
- static const Register KeyRegister() { return KeyedStoreIC::NameRegister(); }
static const Register ObjectRegister() {
- return KeyedStoreIC::ReceiverRegister();
+ return StoreConvention::ReceiverRegister();
}
private:
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698