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 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 | 708 |
709 // Clobber clobbered registers when running with the debug-code flag | 709 // Clobber clobbered registers when running with the debug-code flag |
710 // turned on to provoke errors. | 710 // turned on to provoke errors. |
711 if (emit_debug_code()) { | 711 if (emit_debug_code()) { |
712 mov(address, Immediate(BitCast<int32_t>(kZapValue))); | 712 mov(address, Immediate(BitCast<int32_t>(kZapValue))); |
713 mov(value, Immediate(BitCast<int32_t>(kZapValue))); | 713 mov(value, Immediate(BitCast<int32_t>(kZapValue))); |
714 } | 714 } |
715 } | 715 } |
716 | 716 |
717 | 717 |
718 #ifdef ENABLE_DEBUGGER_SUPPORT | |
719 void MacroAssembler::DebugBreak() { | 718 void MacroAssembler::DebugBreak() { |
720 Move(eax, Immediate(0)); | 719 Move(eax, Immediate(0)); |
721 mov(ebx, Immediate(ExternalReference(Runtime::kDebugBreak, isolate()))); | 720 mov(ebx, Immediate(ExternalReference(Runtime::kDebugBreak, isolate()))); |
722 CEntryStub ces(isolate(), 1); | 721 CEntryStub ces(isolate(), 1); |
723 call(ces.GetCode(), RelocInfo::DEBUG_BREAK); | 722 call(ces.GetCode(), RelocInfo::DEBUG_BREAK); |
724 } | 723 } |
725 #endif | |
726 | 724 |
727 | 725 |
728 void MacroAssembler::Cvtsi2sd(XMMRegister dst, const Operand& src) { | 726 void MacroAssembler::Cvtsi2sd(XMMRegister dst, const Operand& src) { |
729 xorps(dst, dst); | 727 xorps(dst, dst); |
730 cvtsi2sd(dst, src); | 728 cvtsi2sd(dst, src); |
731 } | 729 } |
732 | 730 |
733 | 731 |
734 bool MacroAssembler::IsUnsafeImmediate(const Immediate& x) { | 732 bool MacroAssembler::IsUnsafeImmediate(const Immediate& x) { |
735 static const int kMaxImmediateBits = 17; | 733 static const int kMaxImmediateBits = 17; |
(...skipping 2914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3650 if (ms.shift() > 0) sar(edx, ms.shift()); | 3648 if (ms.shift() > 0) sar(edx, ms.shift()); |
3651 mov(eax, dividend); | 3649 mov(eax, dividend); |
3652 shr(eax, 31); | 3650 shr(eax, 31); |
3653 add(edx, eax); | 3651 add(edx, eax); |
3654 } | 3652 } |
3655 | 3653 |
3656 | 3654 |
3657 } } // namespace v8::internal | 3655 } } // namespace v8::internal |
3658 | 3656 |
3659 #endif // V8_TARGET_ARCH_IA32 | 3657 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |