Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(438)

Side by Side Diff: src/ia32/macro-assembler-ia32.cc

Issue 2672823007: Revert of [debugger] remove debugger statement support from FCG/CS. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ia32/macro-assembler-ia32.h ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
676 void MacroAssembler::MaybeDropFrames() { 684 void MacroAssembler::MaybeDropFrames() {
677 // Check whether we need to drop frames to restart a function on the stack. 685 // Check whether we need to drop frames to restart a function on the stack.
678 ExternalReference restart_fp = 686 ExternalReference restart_fp =
679 ExternalReference::debug_restart_fp_address(isolate()); 687 ExternalReference::debug_restart_fp_address(isolate());
680 mov(ebx, Operand::StaticVariable(restart_fp)); 688 mov(ebx, Operand::StaticVariable(restart_fp));
681 test(ebx, ebx); 689 test(ebx, ebx);
682 j(not_zero, isolate()->builtins()->FrameDropperTrampoline(), 690 j(not_zero, isolate()->builtins()->FrameDropperTrampoline(),
683 RelocInfo::CODE_TARGET); 691 RelocInfo::CODE_TARGET);
684 } 692 }
685 693
(...skipping 2263 matching lines...) Expand 10 before | Expand all | Expand 10 after
2949 mov(eax, dividend); 2957 mov(eax, dividend);
2950 shr(eax, 31); 2958 shr(eax, 31);
2951 add(edx, eax); 2959 add(edx, eax);
2952 } 2960 }
2953 2961
2954 2962
2955 } // namespace internal 2963 } // namespace internal
2956 } // namespace v8 2964 } // namespace v8
2957 2965
2958 #endif // V8_TARGET_ARCH_IA32 2966 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.h ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698