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 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1653 public: | 1653 public: |
1654 explicit LCheckMap(LOperand* use) : LUnaryOperation<0>(use) { } | 1654 explicit LCheckMap(LOperand* use) : LUnaryOperation<0>(use) { } |
1655 | 1655 |
1656 DECLARE_CONCRETE_INSTRUCTION(CheckMap, "check-map") | 1656 DECLARE_CONCRETE_INSTRUCTION(CheckMap, "check-map") |
1657 DECLARE_HYDROGEN_ACCESSOR(CheckMap) | 1657 DECLARE_HYDROGEN_ACCESSOR(CheckMap) |
1658 }; | 1658 }; |
1659 | 1659 |
1660 | 1660 |
1661 class LCheckPrototypeMaps: public LTemplateInstruction<0> { | 1661 class LCheckPrototypeMaps: public LTemplateInstruction<0> { |
1662 public: | 1662 public: |
1663 LCheckPrototypeMaps(LOperand* temp, | 1663 explicit LCheckPrototypeMaps(LOperand* temp) : temp_(temp) { } |
1664 Handle<JSObject> holder, | |
1665 Handle<Map> receiver_map) | |
1666 : temp_(temp), | |
1667 holder_(holder), | |
1668 receiver_map_(receiver_map) { } | |
1669 | 1664 |
1670 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps") | 1665 DECLARE_CONCRETE_INSTRUCTION(CheckPrototypeMaps, "check-prototype-maps") |
| 1666 DECLARE_HYDROGEN_ACCESSOR(CheckPrototypeMaps) |
1671 | 1667 |
| 1668 Handle<JSObject> holder() const { return hydrogen()->holder(); } |
| 1669 Handle<Map> receiver_map() const { return hydrogen()->receiver_map(); } |
1672 LOperand* temp() const { return temp_; } | 1670 LOperand* temp() const { return temp_; } |
1673 Handle<JSObject> holder() const { return holder_; } | |
1674 Handle<Map> receiver_map() const { return receiver_map_; } | |
1675 | 1671 |
1676 private: | 1672 private: |
1677 LOperand* temp_; | 1673 LOperand* temp_; |
1678 Handle<JSObject> holder_; | |
1679 Handle<Map> receiver_map_; | |
1680 }; | 1674 }; |
1681 | 1675 |
1682 | 1676 |
1683 class LCheckSmi: public LUnaryOperation<0> { | 1677 class LCheckSmi: public LUnaryOperation<0> { |
1684 public: | 1678 public: |
1685 LCheckSmi(LOperand* use, Condition condition) | 1679 LCheckSmi(LOperand* use, Condition condition) |
1686 : LUnaryOperation<0>(use), condition_(condition) { } | 1680 : LUnaryOperation<0>(use), condition_(condition) { } |
1687 | 1681 |
1688 Condition condition() const { return condition_; } | 1682 Condition condition() const { return condition_; } |
1689 | 1683 |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2117 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2111 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2118 }; | 2112 }; |
2119 | 2113 |
2120 #undef DECLARE_HYDROGEN_ACCESSOR | 2114 #undef DECLARE_HYDROGEN_ACCESSOR |
2121 #undef DECLARE_INSTRUCTION | 2115 #undef DECLARE_INSTRUCTION |
2122 #undef DECLARE_CONCRETE_INSTRUCTION | 2116 #undef DECLARE_CONCRETE_INSTRUCTION |
2123 | 2117 |
2124 } } // namespace v8::internal | 2118 } } // namespace v8::internal |
2125 | 2119 |
2126 #endif // V8_IA32_LITHIUM_IA32_H_ | 2120 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |