| 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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 } | 613 } |
| 614 | 614 |
| 615 LOperand* left() { return inputs_[0]; } | 615 LOperand* left() { return inputs_[0]; } |
| 616 LOperand* right() { return inputs_[1]; } | 616 LOperand* right() { return inputs_[1]; } |
| 617 | 617 |
| 618 DECLARE_CONCRETE_INSTRUCTION(CmpIDAndBranch, "cmp-id-and-branch") | 618 DECLARE_CONCRETE_INSTRUCTION(CmpIDAndBranch, "cmp-id-and-branch") |
| 619 DECLARE_HYDROGEN_ACCESSOR(CompareIDAndBranch) | 619 DECLARE_HYDROGEN_ACCESSOR(CompareIDAndBranch) |
| 620 | 620 |
| 621 Token::Value op() const { return hydrogen()->token(); } | 621 Token::Value op() const { return hydrogen()->token(); } |
| 622 bool is_double() const { | 622 bool is_double() const { |
| 623 return hydrogen()->GetInputRepresentation().IsDouble(); | 623 return hydrogen()->representation().IsDouble(); |
| 624 } | 624 } |
| 625 | 625 |
| 626 virtual void PrintDataTo(StringStream* stream); | 626 virtual void PrintDataTo(StringStream* stream); |
| 627 }; | 627 }; |
| 628 | 628 |
| 629 | 629 |
| 630 class LUnaryMathOperation: public LTemplateInstruction<1, 1, 0> { | 630 class LUnaryMathOperation: public LTemplateInstruction<1, 1, 0> { |
| 631 public: | 631 public: |
| 632 explicit LUnaryMathOperation(LOperand* value) { | 632 explicit LUnaryMathOperation(LOperand* value) { |
| 633 inputs_[0] = value; | 633 inputs_[0] = value; |
| (...skipping 1851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2485 | 2485 |
| 2486 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2486 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2487 }; | 2487 }; |
| 2488 | 2488 |
| 2489 #undef DECLARE_HYDROGEN_ACCESSOR | 2489 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2490 #undef DECLARE_CONCRETE_INSTRUCTION | 2490 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2491 | 2491 |
| 2492 } } // namespace v8::int | 2492 } } // namespace v8::int |
| 2493 | 2493 |
| 2494 #endif // V8_X64_LITHIUM_X64_H_ | 2494 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |