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

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

Issue 545108: X64 implementation of native ascii string compare. (Closed)
Patch Set: Created 10 years, 11 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
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 // Functions performing a check on a known or potential smi. Returns 198 // Functions performing a check on a known or potential smi. Returns
199 // a condition that is satisfied if the check is successful. 199 // a condition that is satisfied if the check is successful.
200 200
201 // Is the value a tagged smi. 201 // Is the value a tagged smi.
202 Condition CheckSmi(Register src); 202 Condition CheckSmi(Register src);
203 203
204 // Is the value a positive tagged smi. 204 // Is the value a positive tagged smi.
205 Condition CheckPositiveSmi(Register src); 205 Condition CheckPositiveSmi(Register src);
206 206
207 // Are both values are tagged smis. 207 // Are both values tagged smis.
208 Condition CheckBothSmi(Register first, Register second); 208 Condition CheckBothSmi(Register first, Register second);
209 209
210 // Are either value a tagged smi.
211 Condition CheckEitherSmi(Register first, Register second);
212
210 // Is the value the minimum smi value (since we are using 213 // Is the value the minimum smi value (since we are using
211 // two's complement numbers, negating the value is known to yield 214 // two's complement numbers, negating the value is known to yield
212 // a non-smi value). 215 // a non-smi value).
213 Condition CheckIsMinSmi(Register src); 216 Condition CheckIsMinSmi(Register src);
214 217
215 // Checks whether an 32-bit integer value is a valid for conversion 218 // Checks whether an 32-bit integer value is a valid for conversion
216 // to a smi. 219 // to a smi.
217 Condition CheckInteger32ValidSmiValue(Register src); 220 Condition CheckInteger32ValidSmiValue(Register src);
218 221
219 // Checks whether an 32-bit unsigned integer value is a valid for 222 // Checks whether an 32-bit unsigned integer value is a valid for
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 } \ 759 } \
757 masm-> 760 masm->
758 #else 761 #else
759 #define ACCESS_MASM(masm) masm-> 762 #define ACCESS_MASM(masm) masm->
760 #endif 763 #endif
761 764
762 765
763 } } // namespace v8::internal 766 } } // namespace v8::internal
764 767
765 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 768 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698