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

Side by Side Diff: src/x64/codegen-x64.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 | « src/arm/codegen-arm.cc ('k') | src/x64/codegen-x64.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 921 matching lines...) Expand 10 before | Expand all | Expand 10 after
932 // the label not_found with only the content of register object unchanged. 932 // the label not_found with only the content of register object unchanged.
933 static void GenerateLookupNumberStringCache(MacroAssembler* masm, 933 static void GenerateLookupNumberStringCache(MacroAssembler* masm,
934 Register object, 934 Register object,
935 Register result, 935 Register result,
936 Register scratch1, 936 Register scratch1,
937 Register scratch2, 937 Register scratch2,
938 bool object_is_smi, 938 bool object_is_smi,
939 Label* not_found); 939 Label* not_found);
940 940
941 private: 941 private:
942 static void GenerateConvertHashCodeToIndex(MacroAssembler* masm,
943 Register hash,
944 Register mask);
945
942 Major MajorKey() { return NumberToString; } 946 Major MajorKey() { return NumberToString; }
943 int MinorKey() { return 0; } 947 int MinorKey() { return 0; }
944 948
945 void Generate(MacroAssembler* masm); 949 void Generate(MacroAssembler* masm);
946 950
947 const char* GetName() { return "NumberToStringStub"; } 951 const char* GetName() { return "NumberToStringStub"; }
948 952
949 #ifdef DEBUG 953 #ifdef DEBUG
950 void Print() { 954 void Print() {
951 PrintF("NumberToStringStub\n"); 955 PrintF("NumberToStringStub\n");
952 } 956 }
953 #endif 957 #endif
954 }; 958 };
955 959
956 960
957 } } // namespace v8::internal 961 } } // namespace v8::internal
958 962
959 #endif // V8_X64_CODEGEN_X64_H_ 963 #endif // V8_X64_CODEGEN_X64_H_
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/x64/codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698