| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #include "ic-inl.h" | 31 #include "ic-inl.h" |
| 32 | 32 |
| 33 namespace v8 { | 33 namespace v8 { |
| 34 namespace internal { | 34 namespace internal { |
| 35 | 35 |
| 36 | 36 |
| 37 void ArrayNativeCode(MacroAssembler* masm, Label* call_generic_code); | 37 void ArrayNativeCode(MacroAssembler* masm, Label* call_generic_code); |
| 38 | 38 |
| 39 | 39 |
| 40 // Compute a transcendental math function natively, or call the | |
| 41 // TranscendentalCache runtime function. | |
| 42 class TranscendentalCacheStub: public PlatformCodeStub { | |
| 43 public: | |
| 44 enum ArgumentType { | |
| 45 TAGGED = 0 << TranscendentalCache::kTranscendentalTypeBits, | |
| 46 UNTAGGED = 1 << TranscendentalCache::kTranscendentalTypeBits | |
| 47 }; | |
| 48 | |
| 49 TranscendentalCacheStub(TranscendentalCache::Type type, | |
| 50 ArgumentType argument_type) | |
| 51 : type_(type), argument_type_(argument_type) { } | |
| 52 void Generate(MacroAssembler* masm); | |
| 53 private: | |
| 54 TranscendentalCache::Type type_; | |
| 55 ArgumentType argument_type_; | |
| 56 void GenerateCallCFunction(MacroAssembler* masm, Register scratch); | |
| 57 | |
| 58 Major MajorKey() { return TranscendentalCache; } | |
| 59 int MinorKey() { return type_ | argument_type_; } | |
| 60 Runtime::FunctionId RuntimeFunction(); | |
| 61 }; | |
| 62 | |
| 63 | |
| 64 class StoreBufferOverflowStub: public PlatformCodeStub { | 40 class StoreBufferOverflowStub: public PlatformCodeStub { |
| 65 public: | 41 public: |
| 66 explicit StoreBufferOverflowStub(SaveFPRegsMode save_fp) | 42 explicit StoreBufferOverflowStub(SaveFPRegsMode save_fp) |
| 67 : save_doubles_(save_fp) {} | 43 : save_doubles_(save_fp) {} |
| 68 | 44 |
| 69 void Generate(MacroAssembler* masm); | 45 void Generate(MacroAssembler* masm); |
| 70 | 46 |
| 71 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); | 47 static void GenerateFixedRegStubsAheadOfTime(Isolate* isolate); |
| 72 virtual bool SometimesSetsUpAFrame() { return false; } | 48 virtual bool SometimesSetsUpAFrame() { return false; } |
| 73 | 49 |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 | 476 |
| 501 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; | 477 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; |
| 502 | 478 |
| 503 LookupMode mode_; | 479 LookupMode mode_; |
| 504 }; | 480 }; |
| 505 | 481 |
| 506 | 482 |
| 507 } } // namespace v8::internal | 483 } } // namespace v8::internal |
| 508 | 484 |
| 509 #endif // V8_ARM_CODE_STUBS_ARM_H_ | 485 #endif // V8_ARM_CODE_STUBS_ARM_H_ |
| OLD | NEW |