| 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 1903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1914 void MacroAssembler::IsObjectNameType(Register object, | 1914 void MacroAssembler::IsObjectNameType(Register object, |
| 1915 Register scratch, | 1915 Register scratch, |
| 1916 Label* fail) { | 1916 Label* fail) { |
| 1917 ldr(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); | 1917 ldr(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); |
| 1918 ldrb(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); | 1918 ldrb(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); |
| 1919 cmp(scratch, Operand(LAST_NAME_TYPE)); | 1919 cmp(scratch, Operand(LAST_NAME_TYPE)); |
| 1920 b(hi, fail); | 1920 b(hi, fail); |
| 1921 } | 1921 } |
| 1922 | 1922 |
| 1923 | 1923 |
| 1924 void MacroAssembler::DebugBreak() { | |
| 1925 mov(r0, Operand::Zero()); | |
| 1926 mov(r1, | |
| 1927 Operand(ExternalReference(Runtime::kHandleDebuggerStatement, isolate()))); | |
| 1928 CEntryStub ces(isolate(), 1); | |
| 1929 DCHECK(AllowThisStubCall(&ces)); | |
| 1930 Call(ces.GetCode(), RelocInfo::DEBUGGER_STATEMENT); | |
| 1931 } | |
| 1932 | |
| 1933 | |
| 1934 void MacroAssembler::PushStackHandler() { | 1924 void MacroAssembler::PushStackHandler() { |
| 1935 // Adjust this code if not the case. | 1925 // Adjust this code if not the case. |
| 1936 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize); | 1926 STATIC_ASSERT(StackHandlerConstants::kSize == 1 * kPointerSize); |
| 1937 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); | 1927 STATIC_ASSERT(StackHandlerConstants::kNextOffset == 0 * kPointerSize); |
| 1938 | 1928 |
| 1939 // Link the current handler as the next handler. | 1929 // Link the current handler as the next handler. |
| 1940 mov(r6, Operand(ExternalReference(Isolate::kHandlerAddress, isolate()))); | 1930 mov(r6, Operand(ExternalReference(Isolate::kHandlerAddress, isolate()))); |
| 1941 ldr(r5, MemOperand(r6)); | 1931 ldr(r5, MemOperand(r6)); |
| 1942 push(r5); | 1932 push(r5); |
| 1943 | 1933 |
| (...skipping 1924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3868 } | 3858 } |
| 3869 } | 3859 } |
| 3870 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); | 3860 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); |
| 3871 add(result, result, Operand(dividend, LSR, 31)); | 3861 add(result, result, Operand(dividend, LSR, 31)); |
| 3872 } | 3862 } |
| 3873 | 3863 |
| 3874 } // namespace internal | 3864 } // namespace internal |
| 3875 } // namespace v8 | 3865 } // namespace v8 |
| 3876 | 3866 |
| 3877 #endif // V8_TARGET_ARCH_ARM | 3867 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |