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 22 matching lines...) Expand all Loading... |
33 #include "ic-inl.h" | 33 #include "ic-inl.h" |
34 | 34 |
35 namespace v8 { | 35 namespace v8 { |
36 namespace internal { | 36 namespace internal { |
37 | 37 |
38 | 38 |
39 void ArrayNativeCode(MacroAssembler* masm, | 39 void ArrayNativeCode(MacroAssembler* masm, |
40 bool construct_call, | 40 bool construct_call, |
41 Label* call_generic_code); | 41 Label* call_generic_code); |
42 | 42 |
43 // Compute a transcendental math function natively, or call the | |
44 // TranscendentalCache runtime function. | |
45 class TranscendentalCacheStub: public PlatformCodeStub { | |
46 public: | |
47 enum ArgumentType { | |
48 TAGGED = 0, | |
49 UNTAGGED = 1 << TranscendentalCache::kTranscendentalTypeBits | |
50 }; | |
51 | |
52 TranscendentalCacheStub(TranscendentalCache::Type type, | |
53 ArgumentType argument_type) | |
54 : type_(type), argument_type_(argument_type) {} | |
55 void Generate(MacroAssembler* masm); | |
56 static void GenerateOperation(MacroAssembler* masm, | |
57 TranscendentalCache::Type type); | |
58 private: | |
59 TranscendentalCache::Type type_; | |
60 ArgumentType argument_type_; | |
61 | |
62 Major MajorKey() { return TranscendentalCache; } | |
63 int MinorKey() { return type_ | argument_type_; } | |
64 Runtime::FunctionId RuntimeFunction(); | |
65 }; | |
66 | |
67 | 43 |
68 class StoreBufferOverflowStub: public PlatformCodeStub { | 44 class StoreBufferOverflowStub: public PlatformCodeStub { |
69 public: | 45 public: |
70 explicit StoreBufferOverflowStub(SaveFPRegsMode save_fp) | 46 explicit StoreBufferOverflowStub(SaveFPRegsMode save_fp) |
71 : save_doubles_(save_fp) { | 47 : save_doubles_(save_fp) { |
72 ASSERT(CpuFeatures::IsSafeForSnapshot(SSE2) || save_fp == kDontSaveFPRegs); | 48 ASSERT(CpuFeatures::IsSafeForSnapshot(SSE2) || save_fp == kDontSaveFPRegs); |
73 } | 49 } |
74 | 50 |
75 void Generate(MacroAssembler* masm); | 51 void Generate(MacroAssembler* masm); |
76 | 52 |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 Register address_; | 508 Register address_; |
533 RememberedSetAction remembered_set_action_; | 509 RememberedSetAction remembered_set_action_; |
534 SaveFPRegsMode save_fp_regs_mode_; | 510 SaveFPRegsMode save_fp_regs_mode_; |
535 RegisterAllocation regs_; | 511 RegisterAllocation regs_; |
536 }; | 512 }; |
537 | 513 |
538 | 514 |
539 } } // namespace v8::internal | 515 } } // namespace v8::internal |
540 | 516 |
541 #endif // V8_IA32_CODE_STUBS_IA32_H_ | 517 #endif // V8_IA32_CODE_STUBS_IA32_H_ |
OLD | NEW |