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