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

Side by Side Diff: src/arm/macro-assembler-arm.cc

Issue 6709060: Revert r7288. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 9 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/arm/lithium-codegen-arm.cc ('k') | src/utils.h » ('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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 Condition cond) { 287 Condition cond) {
288 if (!src2.is_reg() && 288 if (!src2.is_reg() &&
289 !src2.must_use_constant_pool() && 289 !src2.must_use_constant_pool() &&
290 src2.immediate() == 0) { 290 src2.immediate() == 0) {
291 mov(dst, Operand(0, RelocInfo::NONE), LeaveCC, cond); 291 mov(dst, Operand(0, RelocInfo::NONE), LeaveCC, cond);
292 292
293 } else if (!src2.is_single_instruction() && 293 } else if (!src2.is_single_instruction() &&
294 !src2.must_use_constant_pool() && 294 !src2.must_use_constant_pool() &&
295 Isolate::Current()->cpu_features()->IsSupported(ARMv7) && 295 Isolate::Current()->cpu_features()->IsSupported(ARMv7) &&
296 IsPowerOf2(src2.immediate() + 1)) { 296 IsPowerOf2(src2.immediate() + 1)) {
297 ubfx(dst, src1, 0, 297 ubfx(dst, src1, 0, WhichPowerOf2(src2.immediate() + 1), cond);
298 WhichPowerOf2(static_cast<uint32_t>(src2.immediate()) + 1), cond);
299 298
300 } else { 299 } else {
301 and_(dst, src1, src2, LeaveCC, cond); 300 and_(dst, src1, src2, LeaveCC, cond);
302 } 301 }
303 } 302 }
304 303
305 304
306 void MacroAssembler::Ubfx(Register dst, Register src1, int lsb, int width, 305 void MacroAssembler::Ubfx(Register dst, Register src1, int lsb, int width,
307 Condition cond) { 306 Condition cond) {
308 ASSERT(lsb < 32); 307 ASSERT(lsb < 32);
(...skipping 2616 matching lines...) Expand 10 before | Expand all | Expand 10 after
2925 void CodePatcher::EmitCondition(Condition cond) { 2924 void CodePatcher::EmitCondition(Condition cond) {
2926 Instr instr = Assembler::instr_at(masm_.pc_); 2925 Instr instr = Assembler::instr_at(masm_.pc_);
2927 instr = (instr & ~kCondMask) | cond; 2926 instr = (instr & ~kCondMask) | cond;
2928 masm_.emit(instr); 2927 masm_.emit(instr);
2929 } 2928 }
2930 2929
2931 2930
2932 } } // namespace v8::internal 2931 } } // namespace v8::internal
2933 2932
2934 #endif // V8_TARGET_ARCH_ARM 2933 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698