Index: src/ia32/lithium-ia32.h |
diff --git a/src/ia32/lithium-ia32.h b/src/ia32/lithium-ia32.h |
index 3a06ac358b897896cc615f6906f57ebb2c5a1ae0..90e929958532d96929b652515092206b33214ac1 100644 |
--- a/src/ia32/lithium-ia32.h |
+++ b/src/ia32/lithium-ia32.h |
@@ -156,6 +156,7 @@ class LCodeGen; |
V(ThisFunction) \ |
V(Throw) \ |
V(ToFastProperties) \ |
+ V(TransitionElementsKind) \ |
V(Typeof) \ |
V(TypeofIsAndBranch) \ |
V(UnaryMathOperation) \ |
@@ -1733,6 +1734,30 @@ class LStoreKeyedGeneric: public LTemplateInstruction<0, 4, 0> { |
}; |
+class LTransitionElementsKind: public LTemplateInstruction<1, 1, 2> { |
+ public: |
+ LTransitionElementsKind(LOperand* object, |
+ LOperand* new_map_temp, |
+ LOperand* temp_reg) { |
+ inputs_[0] = object; |
+ temps_[0] = new_map_temp; |
+ temps_[1] = temp_reg; |
+ } |
+ |
+ DECLARE_CONCRETE_INSTRUCTION(TransitionElementsKind, |
+ "transition-elements-kind") |
+ DECLARE_HYDROGEN_ACCESSOR(TransitionElementsKind) |
+ |
+ virtual void PrintDataTo(StringStream* stream); |
+ |
+ LOperand* object() { return inputs_[0]; } |
+ LOperand* new_map_reg() { return temps_[0]; } |
+ LOperand* temp_reg() { return temps_[1]; } |
+ Handle<Map> original_map() { return hydrogen()->original_map(); } |
+ Handle<Map> transitioned_map() { return hydrogen()->transitioned_map(); } |
+}; |
+ |
+ |
class LStringAdd: public LTemplateInstruction<1, 3, 0> { |
public: |
LStringAdd(LOperand* context, LOperand* left, LOperand* right) { |