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

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

Issue 12567004: ARM: Optimsisation of ECMA ToInt32. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 months 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/arm/code-stubs-arm.cc » ('j') | src/arm/code-stubs-arm.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 // Convert the smi or heap number in object to an int32 using the rules 631 // Convert the smi or heap number in object to an int32 using the rules
632 // for ToInt32 as described in ECMAScript 9.5.: the value is truncated 632 // for ToInt32 as described in ECMAScript 9.5.: the value is truncated
633 // and brought into the range -2^31 .. +2^31 - 1. 633 // and brought into the range -2^31 .. +2^31 - 1.
634 static void ConvertNumberToInt32(MacroAssembler* masm, 634 static void ConvertNumberToInt32(MacroAssembler* masm,
635 Register object, 635 Register object,
636 Register dst, 636 Register dst,
637 Register heap_number_map, 637 Register heap_number_map,
638 Register scratch1, 638 Register scratch1,
639 Register scratch2, 639 Register scratch2,
640 Register scratch3, 640 Register scratch3,
641 DwVfpRegister double_scratch, 641 DwVfpRegister double_scratch1,
642 DwVfpRegister double_scratch2,
642 Label* not_int32); 643 Label* not_int32);
643 644
644 // Converts the integer (untagged smi) in |int_scratch| to a double, storing 645 // Converts the integer (untagged smi) in |int_scratch| to a double, storing
645 // the result either in |double_dst| or |dst2:dst1|, depending on 646 // the result either in |double_dst| or |dst2:dst1|, depending on
646 // |destination|. 647 // |destination|.
647 // Warning: The value in |int_scratch| will be changed in the process! 648 // Warning: The value in |int_scratch| will be changed in the process!
648 static void ConvertIntToDouble(MacroAssembler* masm, 649 static void ConvertIntToDouble(MacroAssembler* masm,
649 Register int_scratch, 650 Register int_scratch,
650 Destination destination, 651 Destination destination,
651 DwVfpRegister double_dst, 652 DwVfpRegister double_dst,
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 792
792 class LookupModeBits: public BitField<LookupMode, 0, 1> {}; 793 class LookupModeBits: public BitField<LookupMode, 0, 1> {};
793 794
794 LookupMode mode_; 795 LookupMode mode_;
795 }; 796 };
796 797
797 798
798 } } // namespace v8::internal 799 } } // namespace v8::internal
799 800
800 #endif // V8_ARM_CODE_STUBS_ARM_H_ 801 #endif // V8_ARM_CODE_STUBS_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/code-stubs-arm.cc » ('j') | src/arm/code-stubs-arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698