Chromium Code Reviews| Index: src/ia32/lithium-ia32.h |
| diff --git a/src/ia32/lithium-ia32.h b/src/ia32/lithium-ia32.h |
| index 7a1a8930fbf8e30da276f780c3d49b08cb714656..0d205d397740fb31116591dcfa2ac13eeb94df9c 100644 |
| --- a/src/ia32/lithium-ia32.h |
| +++ b/src/ia32/lithium-ia32.h |
| @@ -172,7 +172,8 @@ class LCodeGen; |
| V(ForInPrepareMap) \ |
| V(ForInCacheArray) \ |
| V(CheckMapValue) \ |
| - V(LoadFieldByIndex) |
| + V(LoadFieldByIndex) \ |
| + V(DateField) |
| #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
| @@ -1002,6 +1003,24 @@ class LValueOf: public LTemplateInstruction<1, 1, 1> { |
| }; |
| +class LDateField: public LTemplateInstruction<1, 1, 1> { |
| + public: |
| + LDateField(LOperand* date, LOperand* temp, Smi* index) |
|
rossberg
2012/03/06 15:55:50
See above.
ulan
2012/03/07 10:55:21
Done.
|
| + : index_(index) { |
| + inputs_[0] = date; |
| + temps_[0] = temp; |
| + } |
| + |
| + DECLARE_CONCRETE_INSTRUCTION(DateField, "date-field") |
| + DECLARE_HYDROGEN_ACCESSOR(DateField) |
| + |
| + Smi* index() const { return index_; } |
| + |
| + private: |
| + Smi* index_; |
| +}; |
| + |
| + |
| class LThrow: public LTemplateInstruction<0, 2, 0> { |
| public: |
| LThrow(LOperand* context, LOperand* value) { |