| 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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 b(eq, &done); | 386 b(eq, &done); |
| 387 mov(dst, Operand(0, RelocInfo::NONE), LeaveCC, mi); // 0 if negative. | 387 mov(dst, Operand(0, RelocInfo::NONE), LeaveCC, mi); // 0 if negative. |
| 388 mov(dst, Operand(satval), LeaveCC, pl); // satval if positive. | 388 mov(dst, Operand(satval), LeaveCC, pl); // satval if positive. |
| 389 bind(&done); | 389 bind(&done); |
| 390 } else { | 390 } else { |
| 391 usat(dst, satpos, src, cond); | 391 usat(dst, satpos, src, cond); |
| 392 } | 392 } |
| 393 } | 393 } |
| 394 | 394 |
| 395 | 395 |
| 396 void MacroAssembler::SmiJumpTable(Register index, Vector<Label*> targets) { |
| 397 // Empty the const pool. |
| 398 CheckConstPool(true, true); |
| 399 add(pc, pc, Operand(index, |
| 400 LSL, |
| 401 Instruction::kInstrSizeLog2 - kSmiTagSize)); |
| 402 BlockConstPoolBefore(pc_offset() + (targets.length() + 1) * kInstrSize); |
| 403 nop(); // Jump table alignment. |
| 404 for (int i = 0; i < targets.length(); i++) { |
| 405 b(targets[i]); |
| 406 } |
| 407 } |
| 408 |
| 409 |
| 396 void MacroAssembler::LoadRoot(Register destination, | 410 void MacroAssembler::LoadRoot(Register destination, |
| 397 Heap::RootListIndex index, | 411 Heap::RootListIndex index, |
| 398 Condition cond) { | 412 Condition cond) { |
| 399 ldr(destination, MemOperand(kRootRegister, index << kPointerSizeLog2), cond); | 413 ldr(destination, MemOperand(kRootRegister, index << kPointerSizeLog2), cond); |
| 400 } | 414 } |
| 401 | 415 |
| 402 | 416 |
| 403 void MacroAssembler::StoreRoot(Register source, | 417 void MacroAssembler::StoreRoot(Register source, |
| 404 Heap::RootListIndex index, | 418 Heap::RootListIndex index, |
| 405 Condition cond) { | 419 Condition cond) { |
| (...skipping 3350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3756 void CodePatcher::EmitCondition(Condition cond) { | 3770 void CodePatcher::EmitCondition(Condition cond) { |
| 3757 Instr instr = Assembler::instr_at(masm_.pc_); | 3771 Instr instr = Assembler::instr_at(masm_.pc_); |
| 3758 instr = (instr & ~kCondMask) | cond; | 3772 instr = (instr & ~kCondMask) | cond; |
| 3759 masm_.emit(instr); | 3773 masm_.emit(instr); |
| 3760 } | 3774 } |
| 3761 | 3775 |
| 3762 | 3776 |
| 3763 } } // namespace v8::internal | 3777 } } // namespace v8::internal |
| 3764 | 3778 |
| 3765 #endif // V8_TARGET_ARCH_ARM | 3779 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |