OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 public: | 435 public: |
436 explicit LDummyUse(LOperand* value) { | 436 explicit LDummyUse(LOperand* value) { |
437 inputs_[0] = value; | 437 inputs_[0] = value; |
438 } | 438 } |
439 DECLARE_CONCRETE_INSTRUCTION(DummyUse, "dummy-use") | 439 DECLARE_CONCRETE_INSTRUCTION(DummyUse, "dummy-use") |
440 }; | 440 }; |
441 | 441 |
442 | 442 |
443 class LDeoptimize V8_FINAL : public LTemplateInstruction<0, 0, 0> { | 443 class LDeoptimize V8_FINAL : public LTemplateInstruction<0, 0, 0> { |
444 public: | 444 public: |
| 445 virtual bool IsControl() const V8_OVERRIDE { return true; } |
445 DECLARE_CONCRETE_INSTRUCTION(Deoptimize, "deoptimize") | 446 DECLARE_CONCRETE_INSTRUCTION(Deoptimize, "deoptimize") |
446 DECLARE_HYDROGEN_ACCESSOR(Deoptimize) | 447 DECLARE_HYDROGEN_ACCESSOR(Deoptimize) |
447 }; | 448 }; |
448 | 449 |
449 | 450 |
450 class LLabel V8_FINAL : public LGap { | 451 class LLabel V8_FINAL : public LGap { |
451 public: | 452 public: |
452 explicit LLabel(HBasicBlock* block) | 453 explicit LLabel(HBasicBlock* block) |
453 : LGap(block), replacement_(NULL) { } | 454 : LGap(block), replacement_(NULL) { } |
454 | 455 |
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1575 | 1576 |
1576 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") | 1577 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") |
1577 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) | 1578 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) |
1578 | 1579 |
1579 bool is_external() const { | 1580 bool is_external() const { |
1580 return hydrogen()->is_external(); | 1581 return hydrogen()->is_external(); |
1581 } | 1582 } |
1582 LOperand* elements() { return inputs_[0]; } | 1583 LOperand* elements() { return inputs_[0]; } |
1583 LOperand* key() { return inputs_[1]; } | 1584 LOperand* key() { return inputs_[1]; } |
1584 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1585 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
1585 uint32_t additional_index() const { return hydrogen()->index_offset(); } | 1586 uint32_t base_offset() const { return hydrogen()->base_offset(); } |
1586 ElementsKind elements_kind() const { | 1587 ElementsKind elements_kind() const { |
1587 return hydrogen()->elements_kind(); | 1588 return hydrogen()->elements_kind(); |
1588 } | 1589 } |
1589 }; | 1590 }; |
1590 | 1591 |
1591 | 1592 |
1592 class LLoadKeyedGeneric V8_FINAL : public LTemplateInstruction<1, 3, 0> { | 1593 class LLoadKeyedGeneric V8_FINAL : public LTemplateInstruction<1, 3, 0> { |
1593 public: | 1594 public: |
1594 LLoadKeyedGeneric(LOperand* context, LOperand* obj, LOperand* key) { | 1595 LLoadKeyedGeneric(LOperand* context, LOperand* obj, LOperand* key) { |
1595 inputs_[0] = context; | 1596 inputs_[0] = context; |
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2237 LOperand* elements() { return inputs_[0]; } | 2238 LOperand* elements() { return inputs_[0]; } |
2238 LOperand* key() { return inputs_[1]; } | 2239 LOperand* key() { return inputs_[1]; } |
2239 LOperand* value() { return inputs_[2]; } | 2240 LOperand* value() { return inputs_[2]; } |
2240 ElementsKind elements_kind() const { return hydrogen()->elements_kind(); } | 2241 ElementsKind elements_kind() const { return hydrogen()->elements_kind(); } |
2241 | 2242 |
2242 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") | 2243 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") |
2243 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) | 2244 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) |
2244 | 2245 |
2245 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 2246 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
2246 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } | 2247 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } |
2247 uint32_t additional_index() const { return hydrogen()->index_offset(); } | 2248 uint32_t base_offset() const { return hydrogen()->base_offset(); } |
2248 }; | 2249 }; |
2249 | 2250 |
2250 | 2251 |
2251 class LStoreKeyedGeneric V8_FINAL : public LTemplateInstruction<0, 4, 0> { | 2252 class LStoreKeyedGeneric V8_FINAL : public LTemplateInstruction<0, 4, 0> { |
2252 public: | 2253 public: |
2253 LStoreKeyedGeneric(LOperand* context, | 2254 LStoreKeyedGeneric(LOperand* context, |
2254 LOperand* object, | 2255 LOperand* object, |
2255 LOperand* key, | 2256 LOperand* key, |
2256 LOperand* value) { | 2257 LOperand* value) { |
2257 inputs_[0] = context; | 2258 inputs_[0] = context; |
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2843 | 2844 |
2844 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2845 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2845 }; | 2846 }; |
2846 | 2847 |
2847 #undef DECLARE_HYDROGEN_ACCESSOR | 2848 #undef DECLARE_HYDROGEN_ACCESSOR |
2848 #undef DECLARE_CONCRETE_INSTRUCTION | 2849 #undef DECLARE_CONCRETE_INSTRUCTION |
2849 | 2850 |
2850 } } // namespace v8::int | 2851 } } // namespace v8::int |
2851 | 2852 |
2852 #endif // V8_X64_LITHIUM_X64_H_ | 2853 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |