| 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 1389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1400 inputs_[0] = object; | 1400 inputs_[0] = object; |
| 1401 } | 1401 } |
| 1402 | 1402 |
| 1403 LOperand* object() { return inputs_[0]; } | 1403 LOperand* object() { return inputs_[0]; } |
| 1404 | 1404 |
| 1405 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer, | 1405 DECLARE_CONCRETE_INSTRUCTION(LoadExternalArrayPointer, |
| 1406 "load-external-array-pointer") | 1406 "load-external-array-pointer") |
| 1407 }; | 1407 }; |
| 1408 | 1408 |
| 1409 | 1409 |
| 1410 class LLoadKeyed: public LTemplateInstruction<1, 2, 0> { | 1410 class LLoadKeyed: public LTemplateInstruction<1, 3, 1> { |
| 1411 public: | 1411 public: |
| 1412 LLoadKeyed(LOperand* elements, LOperand* key) { | 1412 LLoadKeyed(LOperand* elements, LOperand* key, LOperand* prefetch_distance, |
| 1413 LOperand* temp) { |
| 1413 inputs_[0] = elements; | 1414 inputs_[0] = elements; |
| 1414 inputs_[1] = key; | 1415 inputs_[1] = key; |
| 1416 inputs_[2] = prefetch_distance; |
| 1417 temps_[0] = temp; |
| 1415 } | 1418 } |
| 1416 | 1419 |
| 1417 LOperand* elements() { return inputs_[0]; } | 1420 LOperand* elements() { return inputs_[0]; } |
| 1418 LOperand* key() { return inputs_[1]; } | 1421 LOperand* key() { return inputs_[1]; } |
| 1422 LOperand* prefetch_distance() { return inputs_[2]; } |
| 1423 LOperand* temp() { return temps_[0]; } |
| 1419 ElementsKind elements_kind() const { | 1424 ElementsKind elements_kind() const { |
| 1420 return hydrogen()->elements_kind(); | 1425 return hydrogen()->elements_kind(); |
| 1421 } | 1426 } |
| 1422 bool is_external() const { | 1427 bool is_external() const { |
| 1423 return hydrogen()->is_external(); | 1428 return hydrogen()->is_external(); |
| 1424 } | 1429 } |
| 1425 | 1430 |
| 1426 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") | 1431 DECLARE_CONCRETE_INSTRUCTION(LoadKeyed, "load-keyed") |
| 1427 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) | 1432 DECLARE_HYDROGEN_ACCESSOR(LoadKeyed) |
| 1428 | 1433 |
| (...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2678 | 2683 |
| 2679 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2684 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2680 }; | 2685 }; |
| 2681 | 2686 |
| 2682 #undef DECLARE_HYDROGEN_ACCESSOR | 2687 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2683 #undef DECLARE_CONCRETE_INSTRUCTION | 2688 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2684 | 2689 |
| 2685 } } // namespace v8::internal | 2690 } } // namespace v8::internal |
| 2686 | 2691 |
| 2687 #endif // V8_IA32_LITHIUM_IA32_H_ | 2692 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |