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 1440 matching lines...) Loading... |
1451 LConstantOperand* constant_parameter_count() { | 1451 LConstantOperand* constant_parameter_count() { |
1452 ASSERT(has_constant_parameter_count()); | 1452 ASSERT(has_constant_parameter_count()); |
1453 return LConstantOperand::cast(parameter_count()); | 1453 return LConstantOperand::cast(parameter_count()); |
1454 } | 1454 } |
1455 LOperand* parameter_count() { return inputs_[1]; } | 1455 LOperand* parameter_count() { return inputs_[1]; } |
1456 | 1456 |
1457 DECLARE_CONCRETE_INSTRUCTION(Return, "return") | 1457 DECLARE_CONCRETE_INSTRUCTION(Return, "return") |
1458 }; | 1458 }; |
1459 | 1459 |
1460 | 1460 |
1461 class LLoadNamedField: public LTemplateInstruction<1, 1, 0> { | 1461 class LLoadNamedField: public LTemplateInstruction<1, 1, 1> { |
1462 public: | 1462 public: |
1463 explicit LLoadNamedField(LOperand* object) { | 1463 explicit LLoadNamedField(LOperand* object, LOperand* temp) { |
1464 inputs_[0] = object; | 1464 inputs_[0] = object; |
| 1465 temps_[0] = temp; |
1465 } | 1466 } |
1466 | 1467 |
1467 LOperand* object() { return inputs_[0]; } | 1468 LOperand* object() { return inputs_[0]; } |
| 1469 LOperand* temp() { return temps_[0]; } |
1468 | 1470 |
1469 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") | 1471 DECLARE_CONCRETE_INSTRUCTION(LoadNamedField, "load-named-field") |
1470 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) | 1472 DECLARE_HYDROGEN_ACCESSOR(LoadNamedField) |
1471 }; | 1473 }; |
1472 | 1474 |
1473 | 1475 |
1474 class LLoadNamedFieldPolymorphic: public LTemplateInstruction<1, 1, 0> { | 1476 class LLoadNamedFieldPolymorphic: public LTemplateInstruction<1, 1, 0> { |
1475 public: | 1477 public: |
1476 explicit LLoadNamedFieldPolymorphic(LOperand* object) { | 1478 explicit LLoadNamedFieldPolymorphic(LOperand* object) { |
1477 inputs_[0] = object; | 1479 inputs_[0] = object; |
(...skipping 579 matching lines...) Loading... |
2057 | 2059 |
2058 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") | 2060 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") |
2059 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) | 2061 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) |
2060 | 2062 |
2061 virtual void PrintDataTo(StringStream* stream); | 2063 virtual void PrintDataTo(StringStream* stream); |
2062 | 2064 |
2063 Handle<Object> name() const { return hydrogen()->name(); } | 2065 Handle<Object> name() const { return hydrogen()->name(); } |
2064 bool is_in_object() { return hydrogen()->is_in_object(); } | 2066 bool is_in_object() { return hydrogen()->is_in_object(); } |
2065 int offset() { return hydrogen()->offset(); } | 2067 int offset() { return hydrogen()->offset(); } |
2066 Handle<Map> transition() const { return hydrogen()->transition(); } | 2068 Handle<Map> transition() const { return hydrogen()->transition(); } |
| 2069 Representation representation() const { |
| 2070 return hydrogen()->field_representation(); |
| 2071 } |
2067 }; | 2072 }; |
2068 | 2073 |
2069 | 2074 |
2070 class LStoreNamedGeneric: public LTemplateInstruction<0, 2, 0> { | 2075 class LStoreNamedGeneric: public LTemplateInstruction<0, 2, 0> { |
2071 public: | 2076 public: |
2072 LStoreNamedGeneric(LOperand* object, LOperand* value) { | 2077 LStoreNamedGeneric(LOperand* object, LOperand* value) { |
2073 inputs_[0] = object; | 2078 inputs_[0] = object; |
2074 inputs_[1] = value; | 2079 inputs_[1] = value; |
2075 } | 2080 } |
2076 | 2081 |
(...skipping 672 matching lines...) Loading... |
2749 | 2754 |
2750 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2755 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2751 }; | 2756 }; |
2752 | 2757 |
2753 #undef DECLARE_HYDROGEN_ACCESSOR | 2758 #undef DECLARE_HYDROGEN_ACCESSOR |
2754 #undef DECLARE_CONCRETE_INSTRUCTION | 2759 #undef DECLARE_CONCRETE_INSTRUCTION |
2755 | 2760 |
2756 } } // namespace v8::int | 2761 } } // namespace v8::int |
2757 | 2762 |
2758 #endif // V8_X64_LITHIUM_X64_H_ | 2763 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |