| Index: src/ia32/lithium-ia32.h
|
| diff --git a/src/ia32/lithium-ia32.h b/src/ia32/lithium-ia32.h
|
| index b32ead91381f804c6a82ab51a7623c05b3642c89..3daa163b307cf8ca592d6907b27cb0a5150d3151 100644
|
| --- a/src/ia32/lithium-ia32.h
|
| +++ b/src/ia32/lithium-ia32.h
|
| @@ -90,6 +90,7 @@ class LCodeGen;
|
| V(Deoptimize) \
|
| V(DivI) \
|
| V(DoubleToI) \
|
| + V(DoubleToSmi) \
|
| V(DummyUse) \
|
| V(ElementsKind) \
|
| V(FixedArrayBaseLength) \
|
| @@ -106,6 +107,7 @@ class LCodeGen;
|
| V(InstanceSize) \
|
| V(InstructionGap) \
|
| V(Integer32ToDouble) \
|
| + V(Integer32ToSmi) \
|
| V(Uint32ToDouble) \
|
| V(InvokeFunction) \
|
| V(IsConstructCallAndBranch) \
|
| @@ -1998,6 +2000,19 @@ class LInteger32ToDouble: public LTemplateInstruction<1, 1, 0> {
|
| };
|
|
|
|
|
| +class LInteger32ToSmi: public LTemplateInstruction<1, 1, 0> {
|
| + public:
|
| + explicit LInteger32ToSmi(LOperand* value) {
|
| + inputs_[0] = value;
|
| + }
|
| +
|
| + LOperand* value() { return inputs_[0]; }
|
| +
|
| + DECLARE_CONCRETE_INSTRUCTION(Integer32ToSmi, "int32-to-smi")
|
| + DECLARE_HYDROGEN_ACCESSOR(Change)
|
| +};
|
| +
|
| +
|
| class LUint32ToDouble: public LTemplateInstruction<1, 1, 1> {
|
| public:
|
| explicit LUint32ToDouble(LOperand* value, LOperand* temp) {
|
| @@ -2069,6 +2084,19 @@ class LDoubleToI: public LTemplateInstruction<1, 1, 1> {
|
| };
|
|
|
|
|
| +class LDoubleToSmi: public LTemplateInstruction<1, 1, 0> {
|
| + public:
|
| + explicit LDoubleToSmi(LOperand* value) {
|
| + inputs_[0] = value;
|
| + }
|
| +
|
| + LOperand* value() { return inputs_[0]; }
|
| +
|
| + DECLARE_CONCRETE_INSTRUCTION(DoubleToSmi, "double-to-smi")
|
| + DECLARE_HYDROGEN_ACCESSOR(UnaryOperation)
|
| +};
|
| +
|
| +
|
| // Truncating conversion from a tagged value to an int32.
|
| class LTaggedToI: public LTemplateInstruction<1, 1, 1> {
|
| public:
|
| @@ -2432,7 +2460,7 @@ class LCheckPrototypeMaps: public LTemplateInstruction<0, 0, 1> {
|
| };
|
|
|
|
|
| -class LCheckSmi: public LTemplateInstruction<0, 1, 0> {
|
| +class LCheckSmi: public LTemplateInstruction<1, 1, 0> {
|
| public:
|
| explicit LCheckSmi(LOperand* value) {
|
| inputs_[0] = value;
|
|
|