Chromium Code Reviews| 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 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 455 true_block_id_ = true_block_id; | 455 true_block_id_ = true_block_id; |
| 456 false_block_id_ = false_block_id; | 456 false_block_id_ = false_block_id; |
| 457 } | 457 } |
| 458 | 458 |
| 459 private: | 459 private: |
| 460 int true_block_id_; | 460 int true_block_id_; |
| 461 int false_block_id_; | 461 int false_block_id_; |
| 462 }; | 462 }; |
| 463 | 463 |
| 464 | 464 |
| 465 class LApplyArguments: public LTemplateInstruction<1, 4, 0> { | 465 class LApplyArguments: public LTemplateInstruction<1, 4, 1> { |
| 466 public: | 466 public: |
| 467 LApplyArguments(LOperand* function, | 467 LApplyArguments(LOperand* function, |
| 468 LOperand* receiver, | 468 LOperand* receiver, |
| 469 LOperand* length, | 469 LOperand* length, |
| 470 LOperand* elements) { | 470 LOperand* elements, |
| 471 LOperand* temp) { | |
|
Rico
2011/02/18 16:49:11
See comment in codegen, can't we just use kScratch
Mads Ager (chromium)
2011/02/21 07:38:35
Done.
| |
| 471 inputs_[0] = function; | 472 inputs_[0] = function; |
| 472 inputs_[1] = receiver; | 473 inputs_[1] = receiver; |
| 473 inputs_[2] = length; | 474 inputs_[2] = length; |
| 474 inputs_[3] = elements; | 475 inputs_[3] = elements; |
| 476 temps_[0] = temp; | |
| 475 } | 477 } |
| 476 | 478 |
| 477 DECLARE_CONCRETE_INSTRUCTION(ApplyArguments, "apply-arguments") | 479 DECLARE_CONCRETE_INSTRUCTION(ApplyArguments, "apply-arguments") |
| 478 | 480 |
| 479 LOperand* function() { return inputs_[0]; } | 481 LOperand* function() { return inputs_[0]; } |
| 480 LOperand* receiver() { return inputs_[1]; } | 482 LOperand* receiver() { return inputs_[1]; } |
| 481 LOperand* length() { return inputs_[2]; } | 483 LOperand* length() { return inputs_[2]; } |
| 482 LOperand* elements() { return inputs_[3]; } | 484 LOperand* elements() { return inputs_[3]; } |
| 483 }; | 485 }; |
| 484 | 486 |
| (...skipping 1513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1998 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2000 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 1999 }; | 2001 }; |
| 2000 | 2002 |
| 2001 #undef DECLARE_HYDROGEN_ACCESSOR | 2003 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2002 #undef DECLARE_INSTRUCTION | 2004 #undef DECLARE_INSTRUCTION |
| 2003 #undef DECLARE_CONCRETE_INSTRUCTION | 2005 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2004 | 2006 |
| 2005 } } // namespace v8::int | 2007 } } // namespace v8::int |
| 2006 | 2008 |
| 2007 #endif // V8_X64_LITHIUM_X64_H_ | 2009 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |