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

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

Issue 1322843005: Remove obsolete functionality from the MacroAssemblers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm64. Created 5 years, 3 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/ia32/macro-assembler-ia32.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 1372 matching lines...) Expand 10 before | Expand all | Expand 10 after
1383 void MacroAssembler::InvokeFunction(Handle<JSFunction> function, 1383 void MacroAssembler::InvokeFunction(Handle<JSFunction> function,
1384 const ParameterCount& expected, 1384 const ParameterCount& expected,
1385 const ParameterCount& actual, 1385 const ParameterCount& actual,
1386 InvokeFlag flag, 1386 InvokeFlag flag,
1387 const CallWrapper& call_wrapper) { 1387 const CallWrapper& call_wrapper) {
1388 Move(r1, function); 1388 Move(r1, function);
1389 InvokeFunction(r1, expected, actual, flag, call_wrapper); 1389 InvokeFunction(r1, expected, actual, flag, call_wrapper);
1390 } 1390 }
1391 1391
1392 1392
1393 void MacroAssembler::IsObjectJSObjectType(Register heap_object,
1394 Register map,
1395 Register scratch,
1396 Label* fail) {
1397 ldr(map, FieldMemOperand(heap_object, HeapObject::kMapOffset));
1398 IsInstanceJSObjectType(map, scratch, fail);
1399 }
1400
1401
1402 void MacroAssembler::IsInstanceJSObjectType(Register map,
1403 Register scratch,
1404 Label* fail) {
1405 ldrb(scratch, FieldMemOperand(map, Map::kInstanceTypeOffset));
1406 cmp(scratch, Operand(FIRST_NONCALLABLE_SPEC_OBJECT_TYPE));
1407 b(lt, fail);
1408 cmp(scratch, Operand(LAST_NONCALLABLE_SPEC_OBJECT_TYPE));
1409 b(gt, fail);
1410 }
1411
1412
1413 void MacroAssembler::IsObjectJSStringType(Register object, 1393 void MacroAssembler::IsObjectJSStringType(Register object,
1414 Register scratch, 1394 Register scratch,
1415 Label* fail) { 1395 Label* fail) {
1416 DCHECK(kNotStringTag != 0); 1396 DCHECK(kNotStringTag != 0);
1417 1397
1418 ldr(scratch, FieldMemOperand(object, HeapObject::kMapOffset)); 1398 ldr(scratch, FieldMemOperand(object, HeapObject::kMapOffset));
1419 ldrb(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset)); 1399 ldrb(scratch, FieldMemOperand(scratch, Map::kInstanceTypeOffset));
1420 tst(scratch, Operand(kIsNotStringMask)); 1400 tst(scratch, Operand(kIsNotStringMask));
1421 b(ne, fail); 1401 b(ne, fail);
1422 } 1402 }
(...skipping 2370 matching lines...) Expand 10 before | Expand all | Expand 10 after
3793 } 3773 }
3794 } 3774 }
3795 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); 3775 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift));
3796 add(result, result, Operand(dividend, LSR, 31)); 3776 add(result, result, Operand(dividend, LSR, 31));
3797 } 3777 }
3798 3778
3799 } // namespace internal 3779 } // namespace internal
3800 } // namespace v8 3780 } // namespace v8
3801 3781
3802 #endif // V8_TARGET_ARCH_ARM 3782 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698