| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if V8_TARGET_ARCH_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
| 6 | 6 |
| 7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
| 8 #include "src/base/division-by-constant.h" | 8 #include "src/base/division-by-constant.h" |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 // Restore caller-saved registers. | 666 // Restore caller-saved registers. |
| 667 PopCallerSaved(kDontSaveFPRegs, js_function, code_entry); | 667 PopCallerSaved(kDontSaveFPRegs, js_function, code_entry); |
| 668 | 668 |
| 669 // Restore input registers. | 669 // Restore input registers. |
| 670 pop(code_entry); | 670 pop(code_entry); |
| 671 pop(js_function); | 671 pop(js_function); |
| 672 | 672 |
| 673 bind(&done); | 673 bind(&done); |
| 674 } | 674 } |
| 675 | 675 |
| 676 void MacroAssembler::DebugBreak() { | |
| 677 Move(eax, Immediate(0)); | |
| 678 mov(ebx, Immediate(ExternalReference(Runtime::kHandleDebuggerStatement, | |
| 679 isolate()))); | |
| 680 CEntryStub ces(isolate(), 1); | |
| 681 call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT); | |
| 682 } | |
| 683 | |
| 684 void MacroAssembler::Cvtsi2sd(XMMRegister dst, const Operand& src) { | 676 void MacroAssembler::Cvtsi2sd(XMMRegister dst, const Operand& src) { |
| 685 xorps(dst, dst); | 677 xorps(dst, dst); |
| 686 cvtsi2sd(dst, src); | 678 cvtsi2sd(dst, src); |
| 687 } | 679 } |
| 688 | 680 |
| 689 | 681 |
| 690 void MacroAssembler::Cvtui2ss(XMMRegister dst, Register src, Register tmp) { | 682 void MacroAssembler::Cvtui2ss(XMMRegister dst, Register src, Register tmp) { |
| 691 Label msb_set_src; | 683 Label msb_set_src; |
| 692 Label jmp_return; | 684 Label jmp_return; |
| 693 test(src, src); | 685 test(src, src); |
| (...skipping 2253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2947 mov(eax, dividend); | 2939 mov(eax, dividend); |
| 2948 shr(eax, 31); | 2940 shr(eax, 31); |
| 2949 add(edx, eax); | 2941 add(edx, eax); |
| 2950 } | 2942 } |
| 2951 | 2943 |
| 2952 | 2944 |
| 2953 } // namespace internal | 2945 } // namespace internal |
| 2954 } // namespace v8 | 2946 } // namespace v8 |
| 2955 | 2947 |
| 2956 #endif // V8_TARGET_ARCH_IA32 | 2948 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |