Index: src/code-stubs.h |
diff --git a/src/code-stubs.h b/src/code-stubs.h |
index c0ab7e9e5a17cdb243db3224d5636aef572e8880..f6ae893b398d8433015e321584e03976f3898055 100644 |
--- a/src/code-stubs.h |
+++ b/src/code-stubs.h |
@@ -2455,6 +2455,23 @@ class ElementsTransitionAndStoreStub : public HydrogenCodeStub { |
virtual void InitializeInterfaceDescriptor( |
CodeStubInterfaceDescriptor* descriptor) V8_OVERRIDE; |
+ enum RegisterInfo { |
Michael Starzinger
2014/07/11 08:27:08
nit: Let's add a comment "// Parameters accessed v
mvstanton
2014/07/11 08:43:09
Cool, I'll add the comment. As for the enum format
Michael Starzinger
2014/07/11 09:04:10
As discussed offline: In this case I am fine with
|
+ kValueIndex, |
+ kMapIndex, |
+ kKeyIndex, |
+ kObjectIndex, |
+ kRegisterArgumentCount |
Michael Starzinger
2014/07/11 08:27:08
nit: The register count doesn't seem to be used. C
mvstanton
2014/07/11 08:43:09
It's part of the convention, and is used in some a
Michael Starzinger
2014/07/11 09:04:10
Acknowledged.
|
+ }; |
+ |
+ static const Register ValueRegister() { |
+ return KeyedStoreIC::ValueRegister(); |
+ } |
+ static const Register MapRegister() { return KeyedStoreIC::MapRegister(); } |
+ static const Register KeyRegister() { return KeyedStoreIC::NameRegister(); } |
+ static const Register ObjectRegister() { |
+ return KeyedStoreIC::ReceiverRegister(); |
+ } |
+ |
private: |
class FromBits: public BitField<ElementsKind, 0, 8> {}; |
class ToBits: public BitField<ElementsKind, 8, 8> {}; |