Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Side by Side Diff: src/mips/code-stubs-mips.h

Issue 11308134: MIPS: ARM: Fast path for integer inputs to EmitVFPTruncate (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased on r13080 Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 650
651 // Load the number from object into double_dst in the double format. 651 // Load the number from object into double_dst in the double format.
652 // Control will jump to not_int32 if the value cannot be exactly represented 652 // Control will jump to not_int32 if the value cannot be exactly represented
653 // by a 32-bit integer. 653 // by a 32-bit integer.
654 // Floating point value in the 32-bit integer range that are not exact integer 654 // Floating point value in the 32-bit integer range that are not exact integer
655 // won't be loaded. 655 // won't be loaded.
656 static void LoadNumberAsInt32Double(MacroAssembler* masm, 656 static void LoadNumberAsInt32Double(MacroAssembler* masm,
657 Register object, 657 Register object,
658 Destination destination, 658 Destination destination,
659 FPURegister double_dst, 659 FPURegister double_dst,
660 FPURegister double_scratch,
660 Register dst1, 661 Register dst1,
661 Register dst2, 662 Register dst2,
662 Register heap_number_map, 663 Register heap_number_map,
663 Register scratch1, 664 Register scratch1,
664 Register scratch2, 665 Register scratch2,
665 FPURegister single_scratch, 666 FPURegister single_scratch,
666 Label* not_int32); 667 Label* not_int32);
667 668
668 // Loads the number from object into dst as a 32-bit integer. 669 // Loads the number from object into dst as a 32-bit integer.
669 // Control will jump to not_int32 if the object cannot be exactly represented 670 // Control will jump to not_int32 if the object cannot be exactly represented
670 // by a 32-bit integer. 671 // by a 32-bit integer.
671 // Floating point value in the 32-bit integer range that are not exact integer 672 // Floating point value in the 32-bit integer range that are not exact integer
672 // won't be converted. 673 // won't be converted.
673 // scratch3 is not used when FPU is supported. 674 // scratch3 is not used when FPU is supported.
674 static void LoadNumberAsInt32(MacroAssembler* masm, 675 static void LoadNumberAsInt32(MacroAssembler* masm,
675 Register object, 676 Register object,
676 Register dst, 677 Register dst,
677 Register heap_number_map, 678 Register heap_number_map,
678 Register scratch1, 679 Register scratch1,
679 Register scratch2, 680 Register scratch2,
680 Register scratch3, 681 Register scratch3,
681 FPURegister double_scratch, 682 FPURegister double_scratch0,
683 FPURegister double_scratch1,
682 Label* not_int32); 684 Label* not_int32);
683 685
684 // Generate non FPU code to check if a double can be exactly represented by a 686 // Generate non FPU code to check if a double can be exactly represented by a
685 // 32-bit integer. This does not check for 0 or -0, which need 687 // 32-bit integer. This does not check for 0 or -0, which need
686 // to be checked for separately. 688 // to be checked for separately.
687 // Control jumps to not_int32 if the value is not a 32-bit integer, and falls 689 // Control jumps to not_int32 if the value is not a 32-bit integer, and falls
688 // through otherwise. 690 // through otherwise.
689 // src1 and src2 will be cloberred. 691 // src1 and src2 will be cloberred.
690 // 692 //
691 // Expected input: 693 // Expected input:
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 785
784 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; 786 class LookupModeBits: public BitField<LookupMode, 0, 1> {};
785 787
786 LookupMode mode_; 788 LookupMode mode_;
787 }; 789 };
788 790
789 791
790 } } // namespace v8::internal 792 } } // namespace v8::internal
791 793
792 #endif // V8_MIPS_CODE_STUBS_ARM_H_ 794 #endif // V8_MIPS_CODE_STUBS_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698