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

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

Issue 6676060: Improved modulo operation in lithium as well as bailout on -0.... (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/macro-assembler-arm.h ('k') | no next file » | 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 2471 matching lines...) Expand 10 before | Expand all | Expand 10 after
2482 Register reg, 2482 Register reg,
2483 Register scratch, 2483 Register scratch,
2484 Label* not_power_of_two_or_zero) { 2484 Label* not_power_of_two_or_zero) {
2485 sub(scratch, reg, Operand(1), SetCC); 2485 sub(scratch, reg, Operand(1), SetCC);
2486 b(mi, not_power_of_two_or_zero); 2486 b(mi, not_power_of_two_or_zero);
2487 tst(scratch, reg); 2487 tst(scratch, reg);
2488 b(ne, not_power_of_two_or_zero); 2488 b(ne, not_power_of_two_or_zero);
2489 } 2489 }
2490 2490
2491 2491
2492 void MacroAssembler::JumpIfNotPowerOfTwoOrZeroAndNeg(
2493 Register reg,
2494 Register scratch,
2495 Label* zero_and_neg,
2496 Label* not_power_of_two) {
2497 sub(scratch, reg, Operand(1), SetCC);
2498 b(mi, zero_and_neg);
2499 tst(scratch, reg);
2500 b(ne, not_power_of_two);
2501 }
2502
2503
2492 void MacroAssembler::JumpIfNotBothSmi(Register reg1, 2504 void MacroAssembler::JumpIfNotBothSmi(Register reg1,
2493 Register reg2, 2505 Register reg2,
2494 Label* on_not_both_smi) { 2506 Label* on_not_both_smi) {
2495 STATIC_ASSERT(kSmiTag == 0); 2507 STATIC_ASSERT(kSmiTag == 0);
2496 tst(reg1, Operand(kSmiTagMask)); 2508 tst(reg1, Operand(kSmiTagMask));
2497 tst(reg2, Operand(kSmiTagMask), eq); 2509 tst(reg2, Operand(kSmiTagMask), eq);
2498 b(ne, on_not_both_smi); 2510 b(ne, on_not_both_smi);
2499 } 2511 }
2500 2512
2501 2513
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
2924 void CodePatcher::EmitCondition(Condition cond) { 2936 void CodePatcher::EmitCondition(Condition cond) {
2925 Instr instr = Assembler::instr_at(masm_.pc_); 2937 Instr instr = Assembler::instr_at(masm_.pc_);
2926 instr = (instr & ~kCondMask) | cond; 2938 instr = (instr & ~kCondMask) | cond;
2927 masm_.emit(instr); 2939 masm_.emit(instr);
2928 } 2940 }
2929 2941
2930 2942
2931 } } // namespace v8::internal 2943 } } // namespace v8::internal
2932 2944
2933 #endif // V8_TARGET_ARCH_ARM 2945 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698