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

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

Issue 598062: Probe the symbol table for two character strings in native code... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 10 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/ia32/codegen-ia32.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 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 760
761 // Generate code for copying characters using the rep movs instruction. 761 // Generate code for copying characters using the rep movs instruction.
762 // Copies ecx characters from esi to edi. Copying of overlapping regions is 762 // Copies ecx characters from esi to edi. Copying of overlapping regions is
763 // not supported. 763 // not supported.
764 void GenerateCopyCharactersREP(MacroAssembler* masm, 764 void GenerateCopyCharactersREP(MacroAssembler* masm,
765 Register dest, // Must be edi. 765 Register dest, // Must be edi.
766 Register src, // Must be esi. 766 Register src, // Must be esi.
767 Register count, // Must be ecx. 767 Register count, // Must be ecx.
768 Register scratch, // Neither of the above. 768 Register scratch, // Neither of the above.
769 bool ascii); 769 bool ascii);
770
771 // Probe the symbol table for a two character string. If the string is
772 // not found by probing a jump to the label not_found is performed. This jump
773 // does not guarantee that the string is not in the symbol table. If the
774 // string is found the code falls through with the string in register eax.
775 void GenerateTwoCharacterSymbolTableProbe(MacroAssembler* masm,
776 Register c1,
777 Register c2,
778 Register scratch1,
779 Register scratch2,
780 Register scratch3,
781 Label* not_found);
782
783 // Generate string hash.
784 void GenerateHashInit(MacroAssembler* masm,
785 Register hash,
786 Register character,
787 Register scratch);
788 void GenerateHashAddCharacter(MacroAssembler* masm,
789 Register hash,
790 Register character,
791 Register scratch);
792 void GenerateHashGetHash(MacroAssembler* masm,
793 Register hash,
794 Register scratch);
770 }; 795 };
771 796
772 797
773 // Flag that indicates how to generate code for the stub StringAddStub. 798 // Flag that indicates how to generate code for the stub StringAddStub.
774 enum StringAddFlags { 799 enum StringAddFlags {
775 NO_STRING_ADD_FLAGS = 0, 800 NO_STRING_ADD_FLAGS = 0,
776 NO_STRING_CHECK_IN_STUB = 1 << 0 // Omit string check in stub. 801 NO_STRING_CHECK_IN_STUB = 1 << 0 // Omit string check in stub.
777 }; 802 };
778 803
779 804
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 Major MajorKey() { return StringCompare; } 849 Major MajorKey() { return StringCompare; }
825 int MinorKey() { return 0; } 850 int MinorKey() { return 0; }
826 851
827 void Generate(MacroAssembler* masm); 852 void Generate(MacroAssembler* masm);
828 }; 853 };
829 854
830 855
831 } } // namespace v8::internal 856 } } // namespace v8::internal
832 857
833 #endif // V8_IA32_CODEGEN_IA32_H_ 858 #endif // V8_IA32_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « no previous file | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698