| 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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 public: | 444 public: |
| 445 explicit LDummyUse(LOperand* value) { | 445 explicit LDummyUse(LOperand* value) { |
| 446 inputs_[0] = value; | 446 inputs_[0] = value; |
| 447 } | 447 } |
| 448 DECLARE_CONCRETE_INSTRUCTION(DummyUse, "dummy-use") | 448 DECLARE_CONCRETE_INSTRUCTION(DummyUse, "dummy-use") |
| 449 }; | 449 }; |
| 450 | 450 |
| 451 | 451 |
| 452 class LDeoptimize V8_FINAL : public LTemplateInstruction<0, 0, 0> { | 452 class LDeoptimize V8_FINAL : public LTemplateInstruction<0, 0, 0> { |
| 453 public: | 453 public: |
| 454 virtual bool IsControl() const V8_OVERRIDE { return true; } |
| 454 DECLARE_CONCRETE_INSTRUCTION(Deoptimize, "deoptimize") | 455 DECLARE_CONCRETE_INSTRUCTION(Deoptimize, "deoptimize") |
| 455 DECLARE_HYDROGEN_ACCESSOR(Deoptimize) | 456 DECLARE_HYDROGEN_ACCESSOR(Deoptimize) |
| 456 }; | 457 }; |
| 457 | 458 |
| 458 | 459 |
| 459 class LLabel V8_FINAL : public LGap { | 460 class LLabel V8_FINAL : public LGap { |
| 460 public: | 461 public: |
| 461 explicit LLabel(HBasicBlock* block) | 462 explicit LLabel(HBasicBlock* block) |
| 462 : LGap(block), replacement_(NULL) { } | 463 : LGap(block), replacement_(NULL) { } |
| 463 | 464 |
| (...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1618 return hydrogen()->elements_kind(); | 1619 return hydrogen()->elements_kind(); |
| 1619 } | 1620 } |
| 1620 bool is_external() const { | 1621 bool is_external() const { |
| 1621 return hydrogen()->is_external(); | 1622 return hydrogen()->is_external(); |
| 1622 } | 1623 } |
| 1623 | 1624 |
| 1624 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") | 1625 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") |
| 1625 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) | 1626 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) |
| 1626 | 1627 |
| 1627 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1628 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 1628 uint32_t additional_index() const { return hydrogen()->index_offset(); } | 1629 uint32_t base_offset() const { return hydrogen()->base_offset(); } |
| 1629 bool key_is_smi() { | 1630 bool key_is_smi() { |
| 1630 return hydrogen()->key()->representation().IsTagged(); | 1631 return hydrogen()->key()->representation().IsTagged(); |
| 1631 } | 1632 } |
| 1632 }; | 1633 }; |
| 1633 | 1634 |
| 1634 | 1635 |
| 1635 inline static bool ExternalArrayOpRequiresTemp( | 1636 inline static bool ExternalArrayOpRequiresTemp( |
| 1636 Representation key_representation, | 1637 Representation key_representation, |
| 1637 ElementsKind elements_kind) { | 1638 ElementsKind elements_kind) { |
| 1638 // Operations that require the key to be divided by two to be converted into | 1639 // Operations that require the key to be divided by two to be converted into |
| (...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2303 LOperand* key() { return inputs_[1]; } | 2304 LOperand* key() { return inputs_[1]; } |
| 2304 LOperand* value() { return inputs_[2]; } | 2305 LOperand* value() { return inputs_[2]; } |
| 2305 ElementsKind elements_kind() const { | 2306 ElementsKind elements_kind() const { |
| 2306 return hydrogen()->elements_kind(); | 2307 return hydrogen()->elements_kind(); |
| 2307 } | 2308 } |
| 2308 | 2309 |
| 2309 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") | 2310 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") |
| 2310 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) | 2311 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) |
| 2311 | 2312 |
| 2312 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 2313 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 2313 uint32_t additional_index() const { return hydrogen()->index_offset(); } | 2314 uint32_t base_offset() const { return hydrogen()->base_offset(); } |
| 2314 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } | 2315 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } |
| 2315 }; | 2316 }; |
| 2316 | 2317 |
| 2317 | 2318 |
| 2318 class LStoreKeyedGeneric V8_FINAL : public LTemplateInstruction<0, 4, 0> { | 2319 class LStoreKeyedGeneric V8_FINAL : public LTemplateInstruction<0, 4, 0> { |
| 2319 public: | 2320 public: |
| 2320 LStoreKeyedGeneric(LOperand* context, | 2321 LStoreKeyedGeneric(LOperand* context, |
| 2321 LOperand* object, | 2322 LOperand* object, |
| 2322 LOperand* key, | 2323 LOperand* key, |
| 2323 LOperand* value) { | 2324 LOperand* value) { |
| (...skipping 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2936 | 2937 |
| 2937 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2938 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2938 }; | 2939 }; |
| 2939 | 2940 |
| 2940 #undef DECLARE_HYDROGEN_ACCESSOR | 2941 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2941 #undef DECLARE_CONCRETE_INSTRUCTION | 2942 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2942 | 2943 |
| 2943 } } // namespace v8::internal | 2944 } } // namespace v8::internal |
| 2944 | 2945 |
| 2945 #endif // V8_IA32_LITHIUM_IA32_H_ | 2946 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |