| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 friend class JumpTarget; | 582 friend class JumpTarget; |
| 583 friend class Reference; | 583 friend class Reference; |
| 584 friend class FastCodeGenerator; | 584 friend class FastCodeGenerator; |
| 585 friend class FullCodeGenerator; | 585 friend class FullCodeGenerator; |
| 586 friend class FullCodeGenSyntaxChecker; | 586 friend class FullCodeGenSyntaxChecker; |
| 587 | 587 |
| 588 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); | 588 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); |
| 589 }; | 589 }; |
| 590 | 590 |
| 591 | 591 |
| 592 // Compute a transcendental math function natively, or call the |
| 593 // TranscendentalCache runtime function. |
| 594 class TranscendentalCacheStub: public CodeStub { |
| 595 public: |
| 596 explicit TranscendentalCacheStub(TranscendentalCache::Type type) |
| 597 : type_(type) {} |
| 598 void Generate(MacroAssembler* masm); |
| 599 private: |
| 600 TranscendentalCache::Type type_; |
| 601 Major MajorKey() { return TranscendentalCache; } |
| 602 int MinorKey() { return type_; } |
| 603 Runtime::FunctionId RuntimeFunction(); |
| 604 }; |
| 605 |
| 606 |
| 592 class GenericBinaryOpStub : public CodeStub { | 607 class GenericBinaryOpStub : public CodeStub { |
| 593 public: | 608 public: |
| 594 GenericBinaryOpStub(Token::Value op, | 609 GenericBinaryOpStub(Token::Value op, |
| 595 OverwriteMode mode, | 610 OverwriteMode mode, |
| 596 Register lhs, | 611 Register lhs, |
| 597 Register rhs, | 612 Register rhs, |
| 598 int constant_rhs = CodeGenerator::kUnknownIntValue) | 613 int constant_rhs = CodeGenerator::kUnknownIntValue) |
| 599 : op_(op), | 614 : op_(op), |
| 600 mode_(mode), | 615 mode_(mode), |
| 601 lhs_(lhs), | 616 lhs_(lhs), |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 963 return ObjectBits::encode(object_.code()) | | 978 return ObjectBits::encode(object_.code()) | |
| 964 OffsetBits::encode(offset_.code()) | | 979 OffsetBits::encode(offset_.code()) | |
| 965 ScratchBits::encode(scratch_.code()); | 980 ScratchBits::encode(scratch_.code()); |
| 966 } | 981 } |
| 967 }; | 982 }; |
| 968 | 983 |
| 969 | 984 |
| 970 } } // namespace v8::internal | 985 } } // namespace v8::internal |
| 971 | 986 |
| 972 #endif // V8_ARM_CODEGEN_ARM_H_ | 987 #endif // V8_ARM_CODEGEN_ARM_H_ |
| OLD | NEW |