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 27 matching lines...) Expand all Loading... |
38 | 38 |
39 // Compute a transcendental math function natively, or call the | 39 // Compute a transcendental math function natively, or call the |
40 // TranscendentalCache runtime function. | 40 // TranscendentalCache runtime function. |
41 class TranscendentalCacheStub: public CodeStub { | 41 class TranscendentalCacheStub: public CodeStub { |
42 public: | 42 public: |
43 enum ArgumentType { | 43 enum ArgumentType { |
44 TAGGED = 0, | 44 TAGGED = 0, |
45 UNTAGGED = 1 << TranscendentalCache::kTranscendentalTypeBits | 45 UNTAGGED = 1 << TranscendentalCache::kTranscendentalTypeBits |
46 }; | 46 }; |
47 | 47 |
48 explicit TranscendentalCacheStub(TranscendentalCache::Type type, | 48 TranscendentalCacheStub(TranscendentalCache::Type type, |
49 ArgumentType argument_type) | 49 ArgumentType argument_type) |
50 : type_(type), argument_type_(argument_type) {} | 50 : type_(type), argument_type_(argument_type) {} |
51 void Generate(MacroAssembler* masm); | 51 void Generate(MacroAssembler* masm); |
52 private: | 52 private: |
53 TranscendentalCache::Type type_; | 53 TranscendentalCache::Type type_; |
54 ArgumentType argument_type_; | 54 ArgumentType argument_type_; |
55 | 55 |
56 Major MajorKey() { return TranscendentalCache; } | 56 Major MajorKey() { return TranscendentalCache; } |
57 int MinorKey() { return type_ | argument_type_; } | 57 int MinorKey() { return type_ | argument_type_; } |
58 Runtime::FunctionId RuntimeFunction(); | 58 Runtime::FunctionId RuntimeFunction(); |
59 void GenerateOperation(MacroAssembler* masm); | 59 void GenerateOperation(MacroAssembler* masm); |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 Register scratch1, | 527 Register scratch1, |
528 bool load_elements_from_receiver, | 528 bool load_elements_from_receiver, |
529 Label* key_not_smi, | 529 Label* key_not_smi, |
530 Label* value_not_smi, | 530 Label* value_not_smi, |
531 Label* not_pixel_array, | 531 Label* not_pixel_array, |
532 Label* out_of_range); | 532 Label* out_of_range); |
533 | 533 |
534 } } // namespace v8::internal | 534 } } // namespace v8::internal |
535 | 535 |
536 #endif // V8_IA32_CODE_STUBS_IA32_H_ | 536 #endif // V8_IA32_CODE_STUBS_IA32_H_ |
OLD | NEW |