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

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

Issue 2650193002: [debugger] remove debugger statement support from FCG/CS. (Closed)
Patch Set: rebase 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/arm/macro-assembler-arm.h ('k') | src/arm64/macro-assembler-arm64.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 #include <limits.h> // For LONG_MIN, LONG_MAX. 5 #include <limits.h> // For LONG_MIN, LONG_MAX.
6 6
7 #if V8_TARGET_ARCH_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/division-by-constant.h" 10 #include "src/base/division-by-constant.h"
(...skipping 1886 matching lines...) Expand 10 before | Expand all | Expand 10 after
1897 1897
1898 void MacroAssembler::IsObjectNameType(Register object, 1898 void MacroAssembler::IsObjectNameType(Register object,
1899 Register scratch, 1899 Register scratch,
1900 Label* fail) { 1900 Label* fail) {
1901 ldr(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); 1901 ldr(scratch, FieldMemOperand(object, HeapObject::kMapOffset));
1902 ldrb(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); 1902 ldrb(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset));
1903 cmp(scratch, Operand(LAST_NAME_TYPE)); 1903 cmp(scratch, Operand(LAST_NAME_TYPE));
1904 b(hi, fail); 1904 b(hi, fail);
1905 } 1905 }
1906 1906
1907
1908 void MacroAssembler::DebugBreak() {
1909 mov(r0, Operand::Zero());
1910 mov(r1,
1911 Operand(ExternalReference(Runtime::kHandleDebuggerStatement, isolate())));
1912 CEntryStub ces(isolate(), 1);
1913 DCHECK(AllowThisStubCall(&ces));
1914 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT);
1915 }
1916
1917 void MacroAssembler::MaybeDropFrames() { 1907 void MacroAssembler::MaybeDropFrames() {
1918 // Check whether we need to drop frames to restart a function on the stack. 1908 // Check whether we need to drop frames to restart a function on the stack.
1919 ExternalReference restart_fp = 1909 ExternalReference restart_fp =
1920 ExternalReference::debug_restart_fp_address(isolate()); 1910 ExternalReference::debug_restart_fp_address(isolate());
1921 mov(r1, Operand(restart_fp)); 1911 mov(r1, Operand(restart_fp));
1922 ldr(r1, MemOperand(r1)); 1912 ldr(r1, MemOperand(r1));
1923 tst(r1, r1); 1913 tst(r1, r1);
1924 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET, 1914 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET,
1925 ne); 1915 ne);
1926 } 1916 }
(...skipping 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after
3835 } 3825 }
3836 } 3826 }
3837 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); 3827 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift));
3838 add(result, result, Operand(dividend, LSR, 31)); 3828 add(result, result, Operand(dividend, LSR, 31));
3839 } 3829 }
3840 3830
3841 } // namespace internal 3831 } // namespace internal
3842 } // namespace v8 3832 } // namespace v8
3843 3833
3844 #endif // V8_TARGET_ARCH_ARM 3834 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/arm64/macro-assembler-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698