| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 public: | 42 public: |
| 43 enum ArgumentType { | 43 enum ArgumentType { |
| 44 TAGGED = 0, | 44 TAGGED = 0, |
| 45 UNTAGGED = 1 << TranscendentalCache::kTranscendentalTypeBits | 45 UNTAGGED = 1 << TranscendentalCache::kTranscendentalTypeBits |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 TranscendentalCacheStub(TranscendentalCache::Type type, | 48 TranscendentalCacheStub(TranscendentalCache::Type type, |
| 49 ArgumentType argument_type) | 49 ArgumentType argument_type) |
| 50 : type_(type), argument_type_(argument_type) {} | 50 : type_(type), argument_type_(argument_type) {} |
| 51 void Generate(MacroAssembler* masm); | 51 void Generate(MacroAssembler* masm); |
| 52 static void GenerateOperation(MacroAssembler* masm, | |
| 53 TranscendentalCache::Type type); | |
| 54 private: | 52 private: |
| 55 TranscendentalCache::Type type_; | 53 TranscendentalCache::Type type_; |
| 56 ArgumentType argument_type_; | 54 ArgumentType argument_type_; |
| 57 | 55 |
| 58 Major MajorKey() { return TranscendentalCache; } | 56 Major MajorKey() { return TranscendentalCache; } |
| 59 int MinorKey() { return type_ | argument_type_; } | 57 int MinorKey() { return type_ | argument_type_; } |
| 60 Runtime::FunctionId RuntimeFunction(); | 58 Runtime::FunctionId RuntimeFunction(); |
| 59 void GenerateOperation(MacroAssembler* masm); |
| 61 }; | 60 }; |
| 62 | 61 |
| 63 | 62 |
| 64 class StoreBufferOverflowStub: public CodeStub { | 63 class StoreBufferOverflowStub: public CodeStub { |
| 65 public: | 64 public: |
| 66 explicit StoreBufferOverflowStub(SaveFPRegsMode save_fp) | 65 explicit StoreBufferOverflowStub(SaveFPRegsMode save_fp) |
| 67 : save_doubles_(save_fp) { } | 66 : save_doubles_(save_fp) { } |
| 68 | 67 |
| 69 void Generate(MacroAssembler* masm); | 68 void Generate(MacroAssembler* masm); |
| 70 | 69 |
| (...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 727 Register address_; | 726 Register address_; |
| 728 RememberedSetAction remembered_set_action_; | 727 RememberedSetAction remembered_set_action_; |
| 729 SaveFPRegsMode save_fp_regs_mode_; | 728 SaveFPRegsMode save_fp_regs_mode_; |
| 730 RegisterAllocation regs_; | 729 RegisterAllocation regs_; |
| 731 }; | 730 }; |
| 732 | 731 |
| 733 | 732 |
| 734 } } // namespace v8::internal | 733 } } // namespace v8::internal |
| 735 | 734 |
| 736 #endif // V8_IA32_CODE_STUBS_IA32_H_ | 735 #endif // V8_IA32_CODE_STUBS_IA32_H_ |
| OLD | NEW |