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 30 matching lines...) Expand all Loading... |
41 public: | 41 public: |
42 enum ArgumentType { | 42 enum ArgumentType { |
43 TAGGED = 0, | 43 TAGGED = 0, |
44 UNTAGGED = 1 << TranscendentalCache::kTranscendentalTypeBits | 44 UNTAGGED = 1 << TranscendentalCache::kTranscendentalTypeBits |
45 }; | 45 }; |
46 | 46 |
47 explicit TranscendentalCacheStub(TranscendentalCache::Type type, | 47 explicit TranscendentalCacheStub(TranscendentalCache::Type type, |
48 ArgumentType argument_type) | 48 ArgumentType argument_type) |
49 : type_(type), argument_type_(argument_type) {} | 49 : type_(type), argument_type_(argument_type) {} |
50 void Generate(MacroAssembler* masm); | 50 void Generate(MacroAssembler* masm); |
| 51 static void GenerateOperation(MacroAssembler* masm, |
| 52 TranscendentalCache::Type type); |
51 private: | 53 private: |
52 TranscendentalCache::Type type_; | 54 TranscendentalCache::Type type_; |
53 ArgumentType argument_type_; | 55 ArgumentType argument_type_; |
54 | 56 |
55 Major MajorKey() { return TranscendentalCache; } | 57 Major MajorKey() { return TranscendentalCache; } |
56 int MinorKey() { return type_ | argument_type_; } | 58 int MinorKey() { return type_ | argument_type_; } |
57 Runtime::FunctionId RuntimeFunction(); | 59 Runtime::FunctionId RuntimeFunction(); |
58 void GenerateOperation(MacroAssembler* masm); | |
59 }; | 60 }; |
60 | 61 |
61 | 62 |
62 class StoreBufferOverflowStub: public CodeStub { | 63 class StoreBufferOverflowStub: public CodeStub { |
63 public: | 64 public: |
64 explicit StoreBufferOverflowStub(SaveFPRegsMode save_fp) | 65 explicit StoreBufferOverflowStub(SaveFPRegsMode save_fp) |
65 : save_doubles_(save_fp) { } | 66 : save_doubles_(save_fp) { } |
66 | 67 |
67 void Generate(MacroAssembler* masm); | 68 void Generate(MacroAssembler* masm); |
68 | 69 |
(...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 RememberedSetAction remembered_set_action_; | 710 RememberedSetAction remembered_set_action_; |
710 SaveFPRegsMode save_fp_regs_mode_; | 711 SaveFPRegsMode save_fp_regs_mode_; |
711 Label slow_; | 712 Label slow_; |
712 RegisterAllocation regs_; | 713 RegisterAllocation regs_; |
713 }; | 714 }; |
714 | 715 |
715 | 716 |
716 } } // namespace v8::internal | 717 } } // namespace v8::internal |
717 | 718 |
718 #endif // V8_X64_CODE_STUBS_X64_H_ | 719 #endif // V8_X64_CODE_STUBS_X64_H_ |
OLD | NEW |