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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 true_block_id_ = true_block_id; | 454 true_block_id_ = true_block_id; |
455 false_block_id_ = false_block_id; | 455 false_block_id_ = false_block_id; |
456 } | 456 } |
457 | 457 |
458 private: | 458 private: |
459 int true_block_id_; | 459 int true_block_id_; |
460 int false_block_id_; | 460 int false_block_id_; |
461 }; | 461 }; |
462 | 462 |
463 | 463 |
464 class LApplyArguments: public LTemplateInstruction<1, 4, 0> { | 464 class LApplyArguments: public LTemplateInstruction<1, 4, 1> { |
465 public: | 465 public: |
466 LApplyArguments(LOperand* function, | 466 LApplyArguments(LOperand* function, |
467 LOperand* receiver, | 467 LOperand* receiver, |
468 LOperand* length, | 468 LOperand* length, |
469 LOperand* elements) { | 469 LOperand* elements, |
| 470 LOperand* temp) { |
470 inputs_[0] = function; | 471 inputs_[0] = function; |
471 inputs_[1] = receiver; | 472 inputs_[1] = receiver; |
472 inputs_[2] = length; | 473 inputs_[2] = length; |
473 inputs_[3] = elements; | 474 inputs_[3] = elements; |
| 475 temps_[0] = temp; |
474 } | 476 } |
475 | 477 |
476 DECLARE_CONCRETE_INSTRUCTION(ApplyArguments, "apply-arguments") | 478 DECLARE_CONCRETE_INSTRUCTION(ApplyArguments, "apply-arguments") |
477 | 479 |
478 LOperand* function() { return inputs_[0]; } | 480 LOperand* function() { return inputs_[0]; } |
479 LOperand* receiver() { return inputs_[1]; } | 481 LOperand* receiver() { return inputs_[1]; } |
480 LOperand* length() { return inputs_[2]; } | 482 LOperand* length() { return inputs_[2]; } |
481 LOperand* elements() { return inputs_[3]; } | 483 LOperand* elements() { return inputs_[3]; } |
482 }; | 484 }; |
483 | 485 |
(...skipping 1522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2006 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2008 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2007 }; | 2009 }; |
2008 | 2010 |
2009 #undef DECLARE_HYDROGEN_ACCESSOR | 2011 #undef DECLARE_HYDROGEN_ACCESSOR |
2010 #undef DECLARE_INSTRUCTION | 2012 #undef DECLARE_INSTRUCTION |
2011 #undef DECLARE_CONCRETE_INSTRUCTION | 2013 #undef DECLARE_CONCRETE_INSTRUCTION |
2012 | 2014 |
2013 } } // namespace v8::internal | 2015 } } // namespace v8::internal |
2014 | 2016 |
2015 #endif // V8_IA32_LITHIUM_IA32_H_ | 2017 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |