OLD | NEW |
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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 str(address, MemOperand(scratch, kPointerSize, PostIndex)); | 544 str(address, MemOperand(scratch, kPointerSize, PostIndex)); |
545 // Write back new top of buffer. | 545 // Write back new top of buffer. |
546 str(scratch, MemOperand(ip)); | 546 str(scratch, MemOperand(ip)); |
547 // Call stub on end of buffer. | 547 // Call stub on end of buffer. |
548 // Check for end of buffer. | 548 // Check for end of buffer. |
549 tst(scratch, Operand(StoreBuffer::kStoreBufferOverflowBit)); | 549 tst(scratch, Operand(StoreBuffer::kStoreBufferOverflowBit)); |
550 if (and_then == kFallThroughAtEnd) { | 550 if (and_then == kFallThroughAtEnd) { |
551 b(eq, &done); | 551 b(eq, &done); |
552 } else { | 552 } else { |
553 ASSERT(and_then == kReturnAtEnd); | 553 ASSERT(and_then == kReturnAtEnd); |
554 Ret(ne); | 554 Ret(eq); |
555 } | 555 } |
556 push(lr); | 556 push(lr); |
557 StoreBufferOverflowStub store_buffer_overflow = | 557 StoreBufferOverflowStub store_buffer_overflow = |
558 StoreBufferOverflowStub(fp_mode); | 558 StoreBufferOverflowStub(fp_mode); |
559 CallStub(&store_buffer_overflow); | 559 CallStub(&store_buffer_overflow); |
560 pop(lr); | 560 pop(lr); |
561 bind(&done); | 561 bind(&done); |
562 if (and_then == kReturnAtEnd) { | 562 if (and_then == kReturnAtEnd) { |
563 Ret(); | 563 Ret(); |
564 } | 564 } |
(...skipping 3086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3651 void CodePatcher::EmitCondition(Condition cond) { | 3651 void CodePatcher::EmitCondition(Condition cond) { |
3652 Instr instr = Assembler::instr_at(masm_.pc_); | 3652 Instr instr = Assembler::instr_at(masm_.pc_); |
3653 instr = (instr & ~kCondMask) | cond; | 3653 instr = (instr & ~kCondMask) | cond; |
3654 masm_.emit(instr); | 3654 masm_.emit(instr); |
3655 } | 3655 } |
3656 | 3656 |
3657 | 3657 |
3658 } } // namespace v8::internal | 3658 } } // namespace v8::internal |
3659 | 3659 |
3660 #endif // V8_TARGET_ARCH_ARM | 3660 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |