| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 20 matching lines...) Expand all Loading... |
| 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 // Compute a transcendental math function natively, or call the | 37 // Compute a transcendental math function natively, or call the |
| 38 // TranscendentalCache runtime function. | 38 // TranscendentalCache runtime function. |
| 39 class TranscendentalCacheStub: public CodeStub { | 39 class TranscendentalCacheStub: public CodeStub { |
| 40 public: | 40 public: |
| 41 explicit TranscendentalCacheStub(TranscendentalCache::Type type) | 41 enum ArgumentType { |
| 42 : type_(type) {} | 42 TAGGED = 0 << TranscendentalCache::kTranscendentalTypeBits, |
| 43 UNTAGGED = 1 << TranscendentalCache::kTranscendentalTypeBits |
| 44 }; |
| 45 |
| 46 TranscendentalCacheStub(TranscendentalCache::Type type, |
| 47 ArgumentType argument_type) |
| 48 : type_(type), argument_type_(argument_type) { } |
| 43 void Generate(MacroAssembler* masm); | 49 void Generate(MacroAssembler* masm); |
| 44 private: | 50 private: |
| 45 TranscendentalCache::Type type_; | 51 TranscendentalCache::Type type_; |
| 52 ArgumentType argument_type_; |
| 53 |
| 46 Major MajorKey() { return TranscendentalCache; } | 54 Major MajorKey() { return TranscendentalCache; } |
| 47 int MinorKey() { return type_; } | 55 int MinorKey() { return type_ | argument_type_; } |
| 48 Runtime::FunctionId RuntimeFunction(); | 56 Runtime::FunctionId RuntimeFunction(); |
| 49 }; | 57 }; |
| 50 | 58 |
| 51 | 59 |
| 52 class ToBooleanStub: public CodeStub { | 60 class ToBooleanStub: public CodeStub { |
| 53 public: | 61 public: |
| 54 explicit ToBooleanStub(Register tos) : tos_(tos) { } | 62 explicit ToBooleanStub(Register tos) : tos_(tos) { } |
| 55 | 63 |
| 56 void Generate(MacroAssembler* masm); | 64 void Generate(MacroAssembler* masm); |
| 57 | 65 |
| (...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 bool load_elements_from_receiver, | 656 bool load_elements_from_receiver, |
| 649 bool load_elements_map_from_elements, | 657 bool load_elements_map_from_elements, |
| 650 Label* key_not_smi, | 658 Label* key_not_smi, |
| 651 Label* value_not_smi, | 659 Label* value_not_smi, |
| 652 Label* not_pixel_array, | 660 Label* not_pixel_array, |
| 653 Label* out_of_range); | 661 Label* out_of_range); |
| 654 | 662 |
| 655 } } // namespace v8::internal | 663 } } // namespace v8::internal |
| 656 | 664 |
| 657 #endif // V8_ARM_CODE_STUBS_ARM_H_ | 665 #endif // V8_ARM_CODE_STUBS_ARM_H_ |
| OLD | NEW |