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

Side by Side Diff: src/ia32/macro-assembler-ia32.h

Issue 23618056: Move NumberToStringStub::GenerateLookupNumberStringCache to the MacroAssembler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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/ia32/code-stubs-ia32.cc ('k') | src/ia32/macro-assembler-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 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 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 bool generating_stub() { return generating_stub_; } 890 bool generating_stub() { return generating_stub_; }
891 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } 891 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; }
892 bool allow_stub_calls() { return allow_stub_calls_; } 892 bool allow_stub_calls() { return allow_stub_calls_; }
893 void set_has_frame(bool value) { has_frame_ = value; } 893 void set_has_frame(bool value) { has_frame_ = value; }
894 bool has_frame() { return has_frame_; } 894 bool has_frame() { return has_frame_; }
895 inline bool AllowThisStubCall(CodeStub* stub); 895 inline bool AllowThisStubCall(CodeStub* stub);
896 896
897 // --------------------------------------------------------------------------- 897 // ---------------------------------------------------------------------------
898 // String utilities. 898 // String utilities.
899 899
900 // Generate code to do a lookup in the number string cache. If the number in
901 // the register object is found in the cache the generated code falls through
902 // with the result in the result register. The object and the result register
903 // can be the same. If the number is not found in the cache the code jumps to
904 // the label not_found with only the content of register object unchanged.
905 void LookupNumberStringCache(Register object,
906 Register result,
907 Register scratch1,
908 Register scratch2,
909 Label* not_found);
910
900 // Check whether the instance type represents a flat ASCII string. Jump to the 911 // Check whether the instance type represents a flat ASCII string. Jump to the
901 // label if not. If the instance type can be scratched specify same register 912 // label if not. If the instance type can be scratched specify same register
902 // for both instance type and scratch. 913 // for both instance type and scratch.
903 void JumpIfInstanceTypeIsNotSequentialAscii(Register instance_type, 914 void JumpIfInstanceTypeIsNotSequentialAscii(Register instance_type,
904 Register scratch, 915 Register scratch,
905 Label* on_not_flat_ascii_string); 916 Label* on_not_flat_ascii_string);
906 917
907 // Checks if both objects are sequential ASCII strings, and jumps to label 918 // Checks if both objects are sequential ASCII strings, and jumps to label
908 // if either is not. 919 // if either is not.
909 void JumpIfNotBothSequentialAsciiStrings(Register object1, 920 void JumpIfNotBothSequentialAsciiStrings(Register object1,
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1081 } \ 1092 } \
1082 masm-> 1093 masm->
1083 #else 1094 #else
1084 #define ACCESS_MASM(masm) masm-> 1095 #define ACCESS_MASM(masm) masm->
1085 #endif 1096 #endif
1086 1097
1087 1098
1088 } } // namespace v8::internal 1099 } } // namespace v8::internal
1089 1100
1090 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1101 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698