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

Side by Side Diff: src/arm/codegen-arm.h

Issue 1575047: Port number string cache lookup for heap numbers in generatred code. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 8 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/codegen-arm.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 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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 // Generate code to do a lookup in the number string cache. If the number in 824 // Generate code to do a lookup in the number string cache. If the number in
825 // the register object is found in the cache the generated code falls through 825 // the register object is found in the cache the generated code falls through
826 // with the result in the result register. The object and the result register 826 // with the result in the result register. The object and the result register
827 // can be the same. If the number is not found in the cache the code jumps to 827 // can be the same. If the number is not found in the cache the code jumps to
828 // the label not_found with only the content of register object unchanged. 828 // the label not_found with only the content of register object unchanged.
829 static void GenerateLookupNumberStringCache(MacroAssembler* masm, 829 static void GenerateLookupNumberStringCache(MacroAssembler* masm,
830 Register object, 830 Register object,
831 Register result, 831 Register result,
832 Register scratch1, 832 Register scratch1,
833 Register scratch2, 833 Register scratch2,
834 Register scratch3,
834 bool object_is_smi, 835 bool object_is_smi,
835 Label* not_found); 836 Label* not_found);
836 837
837 private: 838 private:
838 Major MajorKey() { return NumberToString; } 839 Major MajorKey() { return NumberToString; }
839 int MinorKey() { return 0; } 840 int MinorKey() { return 0; }
840 841
841 void Generate(MacroAssembler* masm); 842 void Generate(MacroAssembler* masm);
842 843
843 const char* GetName() { return "NumberToStringStub"; } 844 const char* GetName() { return "NumberToStringStub"; }
844 845
845 #ifdef DEBUG 846 #ifdef DEBUG
846 void Print() { 847 void Print() {
847 PrintF("NumberToStringStub\n"); 848 PrintF("NumberToStringStub\n");
848 } 849 }
849 #endif 850 #endif
850 }; 851 };
851 852
852 853
853 } } // namespace v8::internal 854 } } // namespace v8::internal
854 855
855 #endif // V8_ARM_CODEGEN_ARM_H_ 856 #endif // V8_ARM_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm/codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698