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

Side by Side Diff: src/ia32/assembler-ia32.cc

Issue 246076: Change clamping 0..255 instruction sequence for pixel array code (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 2 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
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions 5 // modification, are permitted provided that the following conditions
6 // are met: 6 // are met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1159 1159
1160 1160
1161 void Assembler::shr_cl(Register dst) { 1161 void Assembler::shr_cl(Register dst) {
1162 EnsureSpace ensure_space(this); 1162 EnsureSpace ensure_space(this);
1163 last_pc_ = pc_; 1163 last_pc_ = pc_;
1164 EMIT(0xD1); 1164 EMIT(0xD1);
1165 EMIT(0xE8 | dst.code()); 1165 EMIT(0xE8 | dst.code());
1166 } 1166 }
1167 1167
1168 1168
1169 void Assembler::subb(const Operand& op, int8_t imm8) {
1170 EnsureSpace ensure_space(this);
1171 last_pc_ = pc_;
1172 if (op.is_reg(eax)) {
1173 EMIT(0x2c);
1174 } else {
1175 EMIT(0x80);
1176 emit_operand(ebp, op); // ebp == 5
1177 }
1178 EMIT(imm8);
1179 }
1180
1181
1169 void Assembler::sub(const Operand& dst, const Immediate& x) { 1182 void Assembler::sub(const Operand& dst, const Immediate& x) {
1170 EnsureSpace ensure_space(this); 1183 EnsureSpace ensure_space(this);
1171 last_pc_ = pc_; 1184 last_pc_ = pc_;
1172 emit_arith(5, dst, x); 1185 emit_arith(5, dst, x);
1173 } 1186 }
1174 1187
1175 1188
1176 void Assembler::sub(Register dst, const Operand& src) { 1189 void Assembler::sub(Register dst, const Operand& src) {
1177 EnsureSpace ensure_space(this); 1190 EnsureSpace ensure_space(this);
1178 last_pc_ = pc_; 1191 last_pc_ = pc_;
(...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after
2245 push_insn[1] = 13; // Skip over coverage insns. 2258 push_insn[1] = 13; // Skip over coverage insns.
2246 if (coverage_log != NULL) { 2259 if (coverage_log != NULL) {
2247 fprintf(coverage_log, "%s\n", file_line); 2260 fprintf(coverage_log, "%s\n", file_line);
2248 fflush(coverage_log); 2261 fflush(coverage_log);
2249 } 2262 }
2250 } 2263 }
2251 2264
2252 #endif 2265 #endif
2253 2266
2254 } } // namespace v8::internal 2267 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32.h ('k') | src/ia32/ic-ia32.cc » ('j') | src/ia32/ic-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698