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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 class TranscendentalCacheStub: public CodeStub { | 680 class TranscendentalCacheStub: public CodeStub { |
681 public: | 681 public: |
682 explicit TranscendentalCacheStub(TranscendentalCache::Type type) | 682 explicit TranscendentalCacheStub(TranscendentalCache::Type type) |
683 : type_(type) {} | 683 : type_(type) {} |
684 void Generate(MacroAssembler* masm); | 684 void Generate(MacroAssembler* masm); |
685 private: | 685 private: |
686 TranscendentalCache::Type type_; | 686 TranscendentalCache::Type type_; |
687 Major MajorKey() { return TranscendentalCache; } | 687 Major MajorKey() { return TranscendentalCache; } |
688 int MinorKey() { return type_; } | 688 int MinorKey() { return type_; } |
689 Runtime::FunctionId RuntimeFunction(); | 689 Runtime::FunctionId RuntimeFunction(); |
690 void GenerateOperation(MacroAssembler* masm); | 690 void GenerateOperation(MacroAssembler* masm, Label* on_nan_result); |
691 }; | 691 }; |
692 | 692 |
693 | 693 |
694 // Flag that indicates how to generate code for the stub GenericBinaryOpStub. | 694 // Flag that indicates how to generate code for the stub GenericBinaryOpStub. |
695 enum GenericBinaryFlags { | 695 enum GenericBinaryFlags { |
696 NO_GENERIC_BINARY_FLAGS = 0, | 696 NO_GENERIC_BINARY_FLAGS = 0, |
697 NO_SMI_CODE_IN_STUB = 1 << 0 // Omit smi code in stub. | 697 NO_SMI_CODE_IN_STUB = 1 << 0 // Omit smi code in stub. |
698 }; | 698 }; |
699 | 699 |
700 | 700 |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1010 void Print() { | 1010 void Print() { |
1011 PrintF("NumberToStringStub\n"); | 1011 PrintF("NumberToStringStub\n"); |
1012 } | 1012 } |
1013 #endif | 1013 #endif |
1014 }; | 1014 }; |
1015 | 1015 |
1016 | 1016 |
1017 } } // namespace v8::internal | 1017 } } // namespace v8::internal |
1018 | 1018 |
1019 #endif // V8_X64_CODEGEN_X64_H_ | 1019 #endif // V8_X64_CODEGEN_X64_H_ |
OLD | NEW |