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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 | 574 |
575 void MacroAssembler::DebugBreak() { | 575 void MacroAssembler::DebugBreak() { |
576 Move(eax, Immediate(0)); | 576 Move(eax, Immediate(0)); |
577 mov(ebx, Immediate(ExternalReference(Runtime::kHandleDebuggerStatement, | 577 mov(ebx, Immediate(ExternalReference(Runtime::kHandleDebuggerStatement, |
578 isolate()))); | 578 isolate()))); |
579 CEntryStub ces(isolate(), 1); | 579 CEntryStub ces(isolate(), 1); |
580 call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT); | 580 call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT); |
581 } | 581 } |
582 | 582 |
583 | 583 |
| 584 void MacroAssembler::Cvtsi2ss(XMMRegister dst, const Operand& src) { |
| 585 xorps(dst, dst); |
| 586 cvtsi2ss(dst, src); |
| 587 } |
| 588 |
| 589 |
584 void MacroAssembler::Cvtsi2sd(XMMRegister dst, const Operand& src) { | 590 void MacroAssembler::Cvtsi2sd(XMMRegister dst, const Operand& src) { |
585 xorps(dst, dst); | 591 xorps(dst, dst); |
586 cvtsi2sd(dst, src); | 592 cvtsi2sd(dst, src); |
587 } | 593 } |
588 | 594 |
589 | 595 |
590 bool MacroAssembler::IsUnsafeImmediate(const Immediate& x) { | 596 bool MacroAssembler::IsUnsafeImmediate(const Immediate& x) { |
591 static const int kMaxImmediateBits = 17; | 597 static const int kMaxImmediateBits = 17; |
592 if (!RelocInfo::IsNone(x.rmode_)) return false; | 598 if (!RelocInfo::IsNone(x.rmode_)) return false; |
593 return !is_intn(x.x_, kMaxImmediateBits); | 599 return !is_intn(x.x_, kMaxImmediateBits); |
(...skipping 2501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3095 mov(eax, dividend); | 3101 mov(eax, dividend); |
3096 shr(eax, 31); | 3102 shr(eax, 31); |
3097 add(edx, eax); | 3103 add(edx, eax); |
3098 } | 3104 } |
3099 | 3105 |
3100 | 3106 |
3101 } // namespace internal | 3107 } // namespace internal |
3102 } // namespace v8 | 3108 } // namespace v8 |
3103 | 3109 |
3104 #endif // V8_TARGET_ARCH_IA32 | 3110 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |