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 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1513 LConstantOperand* constant_parameter_count() { | 1513 LConstantOperand* constant_parameter_count() { |
1514 ASSERT(has_constant_parameter_count()); | 1514 ASSERT(has_constant_parameter_count()); |
1515 return LConstantOperand::cast(parameter_count()); | 1515 return LConstantOperand::cast(parameter_count()); |
1516 } | 1516 } |
1517 LOperand* parameter_count() { return inputs_[1]; } | 1517 LOperand* parameter_count() { return inputs_[1]; } |
1518 | 1518 |
1519 DECLARE_CONCRETE_INSTRUCTION(Return, "return") | 1519 DECLARE_CONCRETE_INSTRUCTION(Return, "return") |
1520 }; | 1520 }; |
1521 | 1521 |
1522 | 1522 |
1523 class LLoadNamedField: public LTemplateInstruction<1, 1, 0> { | 1523 class LLoadNamedField: public LTemplateInstruction<1, 1, 1> { |
1524 public: | 1524 public: |
1525 explicit LLoadNamedField(LOperand* object) { | 1525 explicit LLoadNamedField(LOperand* object, LOperand* temp) { |
1526 inputs_[0] = object; | 1526 inputs_[0] = object; |
| 1527 temps_[0] = temp; |
1527 } | 1528 } |
1528 | 1529 |
1529 LOperand* object() { return inputs_[0]; } | 1530 LOperand* object() { return inputs_[0]; } |
| 1531 LOperand* temp() { return temps_[0]; } |
1530 | 1532 |
1531 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") | 1533 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") |
1532 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) | 1534 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) |
1533 }; | 1535 }; |
1534 | 1536 |
1535 | 1537 |
1536 class LLoadNamedFieldPolymorphic: public LTemplateInstruction<1, 1, 0> { | 1538 class LLoadNamedFieldPolymorphic: public LTemplateInstruction<1, 1, 0> { |
1537 public: | 1539 public: |
1538 explicit LLoadNamedFieldPolymorphic(LOperand* object) { | 1540 explicit LLoadNamedFieldPolymorphic(LOperand* object) { |
1539 inputs_[0] = object; | 1541 inputs_[0] = object; |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2137 | 2139 |
2138 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") | 2140 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") |
2139 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) | 2141 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) |
2140 | 2142 |
2141 virtual void PrintDataTo(StringStream* stream); | 2143 virtual void PrintDataTo(StringStream* stream); |
2142 | 2144 |
2143 Handle<Object> name() const { return hydrogen()->name(); } | 2145 Handle<Object> name() const { return hydrogen()->name(); } |
2144 bool is_in_object() { return hydrogen()->is_in_object(); } | 2146 bool is_in_object() { return hydrogen()->is_in_object(); } |
2145 int offset() { return hydrogen()->offset(); } | 2147 int offset() { return hydrogen()->offset(); } |
2146 Handle<Map> transition() const { return hydrogen()->transition(); } | 2148 Handle<Map> transition() const { return hydrogen()->transition(); } |
| 2149 Representation representation() const { |
| 2150 return hydrogen()->field_representation(); |
| 2151 } |
2147 }; | 2152 }; |
2148 | 2153 |
2149 | 2154 |
2150 class LStoreNamedGeneric: public LTemplateInstruction<0, 2, 0> { | 2155 class LStoreNamedGeneric: public LTemplateInstruction<0, 2, 0> { |
2151 public: | 2156 public: |
2152 LStoreNamedGeneric(LOperand* object, LOperand* value) { | 2157 LStoreNamedGeneric(LOperand* object, LOperand* value) { |
2153 inputs_[0] = object; | 2158 inputs_[0] = object; |
2154 inputs_[1] = value; | 2159 inputs_[1] = value; |
2155 } | 2160 } |
2156 | 2161 |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2859 | 2864 |
2860 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2865 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2861 }; | 2866 }; |
2862 | 2867 |
2863 #undef DECLARE_HYDROGEN_ACCESSOR | 2868 #undef DECLARE_HYDROGEN_ACCESSOR |
2864 #undef DECLARE_CONCRETE_INSTRUCTION | 2869 #undef DECLARE_CONCRETE_INSTRUCTION |
2865 | 2870 |
2866 } } // namespace v8::internal | 2871 } } // namespace v8::internal |
2867 | 2872 |
2868 #endif // V8_ARM_LITHIUM_ARM_H_ | 2873 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |