| 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 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1433 inputs_[0] = object; | 1433 inputs_[0] = object; |
| 1434 } | 1434 } |
| 1435 | 1435 |
| 1436 LOperand* object() { return inputs_[0]; } | 1436 LOperand* object() { return inputs_[0]; } |
| 1437 | 1437 |
| 1438 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer, | 1438 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer, |
| 1439 "load-external-array-pointer") | 1439 "load-external-array-pointer") |
| 1440 }; | 1440 }; |
| 1441 | 1441 |
| 1442 | 1442 |
| 1443 class LLoadKeyed: public LTemplateInstruction<1, 2, 0> { | 1443 class LLoadKeyed: public LTemplateInstruction<1, 3, 1> { |
| 1444 public: | 1444 public: |
| 1445 LLoadKeyed(LOperand* elements, LOperand* key) { | 1445 LLoadKeyed(LOperand* elements, LOperand* key, LOperand* prefetch_distance, |
| 1446 LOperand* temp) { |
| 1446 inputs_[0] = elements; | 1447 inputs_[0] = elements; |
| 1447 inputs_[1] = key; | 1448 inputs_[1] = key; |
| 1449 inputs_[2] = prefetch_distance; |
| 1450 temps_[0] = temp; |
| 1448 } | 1451 } |
| 1449 LOperand* elements() { return inputs_[0]; } | 1452 LOperand* elements() { return inputs_[0]; } |
| 1450 LOperand* key() { return inputs_[1]; } | 1453 LOperand* key() { return inputs_[1]; } |
| 1454 LOperand* prefetch_distance() { return inputs_[2]; } |
| 1455 LOperand* temp() { return temps_[0]; } |
| 1451 ElementsKind elements_kind() const { | 1456 ElementsKind elements_kind() const { |
| 1452 return hydrogen()->elements_kind(); | 1457 return hydrogen()->elements_kind(); |
| 1453 } | 1458 } |
| 1454 bool is_external() const { | 1459 bool is_external() const { |
| 1455 return hydrogen()->is_external(); | 1460 return hydrogen()->is_external(); |
| 1456 } | 1461 } |
| 1457 | 1462 |
| 1458 virtual bool ClobbersDoubleRegisters() const { | 1463 virtual bool ClobbersDoubleRegisters() const { |
| 1459 return !IsDoubleOrFloatElementsKind(hydrogen()->elements_kind()); | 1464 return !IsDoubleOrFloatElementsKind(hydrogen()->elements_kind()); |
| 1460 } | 1465 } |
| (...skipping 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2721 | 2726 |
| 2722 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2727 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2723 }; | 2728 }; |
| 2724 | 2729 |
| 2725 #undef DECLARE_HYDROGEN_ACCESSOR | 2730 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2726 #undef DECLARE_CONCRETE_INSTRUCTION | 2731 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2727 | 2732 |
| 2728 } } // namespace v8::internal | 2733 } } // namespace v8::internal |
| 2729 | 2734 |
| 2730 #endif // V8_IA32_LITHIUM_IA32_H_ | 2735 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |