| Index: src/arm/lithium-arm.h
|
| diff --git a/src/arm/lithium-arm.h b/src/arm/lithium-arm.h
|
| index ba7c35d8db243a8251b1520554d26e65229650f9..f46c9c1b68e818964adba5d656205e0fd8f4d065 100644
|
| --- a/src/arm/lithium-arm.h
|
| +++ b/src/arm/lithium-arm.h
|
| @@ -177,8 +177,9 @@ class LCodeGen;
|
| V(ForInPrepareMap) \
|
| V(ForInCacheArray) \
|
| V(CheckMapValue) \
|
| - V(LoadFieldByIndex)
|
| -
|
| + V(LoadFieldByIndex) \
|
| + V(DateField) \
|
| + V(SetDateField)
|
|
|
|
|
| #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \
|
| @@ -990,6 +991,41 @@ class LValueOf: public LTemplateInstruction<1, 1, 1> {
|
| };
|
|
|
|
|
| +class LDateField: public LTemplateInstruction<1, 1, 1> {
|
| + public:
|
| + LDateField(LOperand* date, LOperand* temp, int index) : index_(index) {
|
| + inputs_[0] = date;
|
| + temps_[0] = temp;
|
| + }
|
| +
|
| + DECLARE_CONCRETE_INSTRUCTION(ValueOf, "date-field")
|
| + DECLARE_HYDROGEN_ACCESSOR(ValueOf)
|
| + int index() const { return index_; }
|
| +
|
| + private:
|
| + int index_;
|
| +};
|
| +
|
| +
|
| +class LSetDateField: public LTemplateInstruction<1, 2, 1> {
|
| + public:
|
| + LSetDateField(LOperand* date, LOperand* value, LOperand* temp, int index)
|
| + : index_(index) {
|
| + inputs_[0] = date;
|
| + inputs_[1] = value;
|
| + temps_[0] = temp;
|
| + }
|
| +
|
| + DECLARE_CONCRETE_INSTRUCTION(DateField, "date-set-field")
|
| + DECLARE_HYDROGEN_ACCESSOR(DateField)
|
| +
|
| + int index() const { return index_; }
|
| +
|
| + private:
|
| + int index_;
|
| +};
|
| +
|
| +
|
| class LThrow: public LTemplateInstruction<0, 1, 0> {
|
| public:
|
| explicit LThrow(LOperand* value) {
|
|
|