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 #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 1901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1912 | 1912 |
1913 void MacroAssembler::IsObjectNameType(Register object, | 1913 void MacroAssembler::IsObjectNameType(Register object, |
1914 Register scratch, | 1914 Register scratch, |
1915 Label* fail) { | 1915 Label* fail) { |
1916 ldr(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); | 1916 ldr(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); |
1917 ldrb(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); | 1917 ldrb(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); |
1918 cmp(scratch, Operand(LAST_NAME_TYPE)); | 1918 cmp(scratch, Operand(LAST_NAME_TYPE)); |
1919 b(hi, fail); | 1919 b(hi, fail); |
1920 } | 1920 } |
1921 | 1921 |
| 1922 |
| 1923 void MacroAssembler::DebugBreak() { |
| 1924 mov(r0, Operand::Zero()); |
| 1925 mov(r1, |
| 1926 Operand(ExternalReference(Runtime::kHandleDebuggerStatement, isolate()))); |
| 1927 CEntryStub ces(isolate(), 1); |
| 1928 DCHECK(AllowThisStubCall(&ces)); |
| 1929 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT); |
| 1930 } |
| 1931 |
1922 void MacroAssembler::MaybeDropFrames() { | 1932 void MacroAssembler::MaybeDropFrames() { |
1923 // Check whether we need to drop frames to restart a function on the stack. | 1933 // Check whether we need to drop frames to restart a function on the stack. |
1924 ExternalReference restart_fp = | 1934 ExternalReference restart_fp = |
1925 ExternalReference::debug_restart_fp_address(isolate()); | 1935 ExternalReference::debug_restart_fp_address(isolate()); |
1926 mov(r1, Operand(restart_fp)); | 1936 mov(r1, Operand(restart_fp)); |
1927 ldr(r1, MemOperand(r1)); | 1937 ldr(r1, MemOperand(r1)); |
1928 tst(r1, r1); | 1938 tst(r1, r1); |
1929 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET, | 1939 Jump(isolate()->builtins()->FrameDropperTrampoline(), RelocInfo::CODE_TARGET, |
1930 ne); | 1940 ne); |
1931 } | 1941 } |
(...skipping 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3867 } | 3877 } |
3868 } | 3878 } |
3869 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); | 3879 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); |
3870 add(result, result, Operand(dividend, LSR, 31)); | 3880 add(result, result, Operand(dividend, LSR, 31)); |
3871 } | 3881 } |
3872 | 3882 |
3873 } // namespace internal | 3883 } // namespace internal |
3874 } // namespace v8 | 3884 } // namespace v8 |
3875 | 3885 |
3876 #endif // V8_TARGET_ARCH_ARM | 3886 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |