Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 3479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3490 add(result, result, Operand(kPCRegOffset)); | 3490 add(result, result, Operand(kPCRegOffset)); |
| 3491 } | 3491 } |
| 3492 | 3492 |
| 3493 | 3493 |
| 3494 void MacroAssembler::CheckPageFlag( | 3494 void MacroAssembler::CheckPageFlag( |
| 3495 Register object, | 3495 Register object, |
| 3496 Register scratch, | 3496 Register scratch, |
| 3497 int mask, | 3497 int mask, |
| 3498 Condition cc, | 3498 Condition cc, |
| 3499 Label* condition_met) { | 3499 Label* condition_met) { |
| 3500 and_(scratch, object, Operand(~Page::kPageAlignmentMask)); | 3500 Move(scratch, object); |
|
Please use jfb - chromium.org
2012/10/09 13:09:21
Actually, let me retract my LGTM: this will genera
Michael Starzinger
2012/10/09 13:36:20
Done. You are right, I totally missed that.
| |
| 3501 Bfc(scratch, 0, kPageSizeBits); | |
|
m.m.capewell
2012/10/09 13:25:27
A more generic way of doing this, possibly with sl
Michael Starzinger
2012/10/09 13:54:34
So just to clarify. Do you think that the two-shif
| |
| 3501 ldr(scratch, MemOperand(scratch, MemoryChunk::kFlagsOffset)); | 3502 ldr(scratch, MemOperand(scratch, MemoryChunk::kFlagsOffset)); |
| 3502 tst(scratch, Operand(mask)); | 3503 tst(scratch, Operand(mask)); |
| 3503 b(cc, condition_met); | 3504 b(cc, condition_met); |
| 3504 } | 3505 } |
| 3505 | 3506 |
| 3506 | 3507 |
| 3507 void MacroAssembler::JumpIfBlack(Register object, | 3508 void MacroAssembler::JumpIfBlack(Register object, |
| 3508 Register scratch0, | 3509 Register scratch0, |
| 3509 Register scratch1, | 3510 Register scratch1, |
| 3510 Label* on_black) { | 3511 Label* on_black) { |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3854 void CodePatcher::EmitCondition(Condition cond) { | 3855 void CodePatcher::EmitCondition(Condition cond) { |
| 3855 Instr instr = Assembler::instr_at(masm_.pc_); | 3856 Instr instr = Assembler::instr_at(masm_.pc_); |
| 3856 instr = (instr & ~kCondMask) | cond; | 3857 instr = (instr & ~kCondMask) | cond; |
| 3857 masm_.emit(instr); | 3858 masm_.emit(instr); |
| 3858 } | 3859 } |
| 3859 | 3860 |
| 3860 | 3861 |
| 3861 } } // namespace v8::internal | 3862 } } // namespace v8::internal |
| 3862 | 3863 |
| 3863 #endif // V8_TARGET_ARCH_ARM | 3864 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |