| 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::MaybeDropFrames() { | 676 void MacroAssembler::MaybeDropFrames() { |
| 685 // Check whether we need to drop frames to restart a function on the stack. | 677 // Check whether we need to drop frames to restart a function on the stack. |
| 686 ExternalReference restart_fp = | 678 ExternalReference restart_fp = |
| 687 ExternalReference::debug_restart_fp_address(isolate()); | 679 ExternalReference::debug_restart_fp_address(isolate()); |
| 688 mov(ebx, Operand::StaticVariable(restart_fp)); | 680 mov(ebx, Operand::StaticVariable(restart_fp)); |
| 689 test(ebx, ebx); | 681 test(ebx, ebx); |
| 690 j(not_zero, isolate()->builtins()->FrameDropperTrampoline(), | 682 j(not_zero, isolate()->builtins()->FrameDropperTrampoline(), |
| 691 RelocInfo::CODE_TARGET); | 683 RelocInfo::CODE_TARGET); |
| 692 } | 684 } |
| 693 | 685 |
| (...skipping 2237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2931 mov(eax, dividend); | 2923 mov(eax, dividend); |
| 2932 shr(eax, 31); | 2924 shr(eax, 31); |
| 2933 add(edx, eax); | 2925 add(edx, eax); |
| 2934 } | 2926 } |
| 2935 | 2927 |
| 2936 | 2928 |
| 2937 } // namespace internal | 2929 } // namespace internal |
| 2938 } // namespace v8 | 2930 } // namespace v8 |
| 2939 | 2931 |
| 2940 #endif // V8_TARGET_ARCH_IA32 | 2932 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |