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

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

Issue 7014033: Support conversion of clamped double values for pixel arrays in Crankshaft. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback Created 9 years, 7 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/lithium-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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 Register scratch, 231 Register scratch,
232 Label* fail); 232 Label* fail);
233 233
234 // The contents of the scratch register will be overwritten. 234 // The contents of the scratch register will be overwritten.
235 void IsInstanceJSObjectType(Register map, Register scratch, Label* fail); 235 void IsInstanceJSObjectType(Register map, Register scratch, Label* fail);
236 236
237 // FCmp is similar to integer cmp, but requires unsigned 237 // FCmp is similar to integer cmp, but requires unsigned
238 // jcc instructions (je, ja, jae, jb, jbe, je, and jz). 238 // jcc instructions (je, ja, jae, jb, jbe, je, and jz).
239 void FCmp(); 239 void FCmp();
240 240
241 void ClampUint8(Register reg);
242
243 void ClampDoubleToUint8(XMMRegister input_reg,
244 XMMRegister scratch_reg,
245 Register result_reg);
246
247
241 // Smi tagging support. 248 // Smi tagging support.
242 void SmiTag(Register reg) { 249 void SmiTag(Register reg) {
243 ASSERT(kSmiTag == 0); 250 ASSERT(kSmiTag == 0);
244 ASSERT(kSmiTagSize == 1); 251 ASSERT(kSmiTagSize == 1);
245 add(reg, Operand(reg)); 252 add(reg, Operand(reg));
246 } 253 }
247 void SmiUntag(Register reg) { 254 void SmiUntag(Register reg) {
248 sar(reg, kSmiTagSize); 255 sar(reg, kSmiTagSize);
249 } 256 }
250 257
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 } \ 745 } \
739 masm-> 746 masm->
740 #else 747 #else
741 #define ACCESS_MASM(masm) masm-> 748 #define ACCESS_MASM(masm) masm->
742 #endif 749 #endif
743 750
744 751
745 } } // namespace v8::internal 752 } } // namespace v8::internal
746 753
747 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 754 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698