OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 V(Goto) \ | 100 V(Goto) \ |
101 V(HasCachedArrayIndexAndBranch) \ | 101 V(HasCachedArrayIndexAndBranch) \ |
102 V(HasInstanceTypeAndBranch) \ | 102 V(HasInstanceTypeAndBranch) \ |
103 V(In) \ | 103 V(In) \ |
104 V(InstanceOf) \ | 104 V(InstanceOf) \ |
105 V(InstanceOfKnownGlobal) \ | 105 V(InstanceOfKnownGlobal) \ |
106 V(InstructionGap) \ | 106 V(InstructionGap) \ |
107 V(Integer32ToDouble) \ | 107 V(Integer32ToDouble) \ |
108 V(InvokeFunction) \ | 108 V(InvokeFunction) \ |
109 V(IsConstructCallAndBranch) \ | 109 V(IsConstructCallAndBranch) \ |
110 V(IsNullAndBranch) \ | 110 V(IsNilAndBranch) \ |
111 V(IsObjectAndBranch) \ | 111 V(IsObjectAndBranch) \ |
112 V(IsSmiAndBranch) \ | 112 V(IsSmiAndBranch) \ |
113 V(IsUndetectableAndBranch) \ | 113 V(IsUndetectableAndBranch) \ |
114 V(JSArrayLength) \ | 114 V(JSArrayLength) \ |
115 V(Label) \ | 115 V(Label) \ |
116 V(LazyBailout) \ | 116 V(LazyBailout) \ |
117 V(LoadContextSlot) \ | 117 V(LoadContextSlot) \ |
118 V(LoadElements) \ | 118 V(LoadElements) \ |
119 V(LoadExternalArrayPointer) \ | 119 V(LoadExternalArrayPointer) \ |
120 V(LoadFunctionPrototype) \ | 120 V(LoadFunctionPrototype) \ |
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 explicit LCmpConstantEqAndBranch(LOperand* left) { | 620 explicit LCmpConstantEqAndBranch(LOperand* left) { |
621 inputs_[0] = left; | 621 inputs_[0] = left; |
622 } | 622 } |
623 | 623 |
624 DECLARE_CONCRETE_INSTRUCTION(CmpConstantEqAndBranch, | 624 DECLARE_CONCRETE_INSTRUCTION(CmpConstantEqAndBranch, |
625 "cmp-constant-eq-and-branch") | 625 "cmp-constant-eq-and-branch") |
626 DECLARE_HYDROGEN_ACCESSOR(CompareConstantEqAndBranch) | 626 DECLARE_HYDROGEN_ACCESSOR(CompareConstantEqAndBranch) |
627 }; | 627 }; |
628 | 628 |
629 | 629 |
630 class LIsNullAndBranch: public LControlInstruction<1, 0> { | 630 class LIsNilAndBranch: public LControlInstruction<1, 0> { |
631 public: | 631 public: |
632 explicit LIsNullAndBranch(LOperand* value) { | 632 explicit LIsNilAndBranch(LOperand* value) { |
633 inputs_[0] = value; | 633 inputs_[0] = value; |
634 } | 634 } |
635 | 635 |
636 DECLARE_CONCRETE_INSTRUCTION(IsNullAndBranch, "is-null-and-branch") | 636 DECLARE_CONCRETE_INSTRUCTION(IsNilAndBranch, "is-nil-and-branch") |
637 DECLARE_HYDROGEN_ACCESSOR(IsNullAndBranch) | 637 DECLARE_HYDROGEN_ACCESSOR(IsNilAndBranch) |
638 | 638 |
639 bool is_strict() const { return hydrogen()->is_strict(); } | 639 EqualityKind kind() const { return hydrogen()->kind(); } |
| 640 NilValue nil() const { return hydrogen()->nil(); } |
640 | 641 |
641 virtual void PrintDataTo(StringStream* stream); | 642 virtual void PrintDataTo(StringStream* stream); |
642 }; | 643 }; |
643 | 644 |
644 | 645 |
645 class LIsObjectAndBranch: public LControlInstruction<1, 1> { | 646 class LIsObjectAndBranch: public LControlInstruction<1, 1> { |
646 public: | 647 public: |
647 LIsObjectAndBranch(LOperand* value, LOperand* temp) { | 648 LIsObjectAndBranch(LOperand* value, LOperand* temp) { |
648 inputs_[0] = value; | 649 inputs_[0] = value; |
649 temps_[0] = temp; | 650 temps_[0] = temp; |
(...skipping 1536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2186 | 2187 |
2187 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2188 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2188 }; | 2189 }; |
2189 | 2190 |
2190 #undef DECLARE_HYDROGEN_ACCESSOR | 2191 #undef DECLARE_HYDROGEN_ACCESSOR |
2191 #undef DECLARE_CONCRETE_INSTRUCTION | 2192 #undef DECLARE_CONCRETE_INSTRUCTION |
2192 | 2193 |
2193 } } // namespace v8::internal | 2194 } } // namespace v8::internal |
2194 | 2195 |
2195 #endif // V8_ARM_LITHIUM_ARM_H_ | 2196 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |