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

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

Issue 2930623002: [builtins] Start refactoring the Apply builtin. (Closed)
Patch Set: Address feedback. Created 3 years, 6 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/interface-descriptors-arm64.cc » ('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/assembler-inl.h" 9 #include "src/assembler-inl.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 2777 matching lines...) Expand 10 before | Expand all | Expand 10 after
2788 2788
2789 2789
2790 void MacroAssembler::AssertSmi(Register object) { 2790 void MacroAssembler::AssertSmi(Register object) {
2791 if (emit_debug_code()) { 2791 if (emit_debug_code()) {
2792 STATIC_ASSERT(kSmiTag == 0); 2792 STATIC_ASSERT(kSmiTag == 0);
2793 tst(object, Operand(kSmiTagMask)); 2793 tst(object, Operand(kSmiTagMask));
2794 Check(eq, kOperandIsNotSmi); 2794 Check(eq, kOperandIsNotSmi);
2795 } 2795 }
2796 } 2796 }
2797 2797
2798 void MacroAssembler::AssertFixedArray(Register object) {
2799 if (emit_debug_code()) {
2800 STATIC_ASSERT(kSmiTag == 0);
2801 tst(object, Operand(kSmiTagMask));
2802 Check(ne, kOperandIsASmiAndNotAFixedArray);
2803 push(object);
2804 CompareObjectType(object, object, object, FIXED_ARRAY_TYPE);
2805 pop(object);
2806 Check(eq, kOperandIsNotAFixedArray);
2807 }
2808 }
2798 2809
2799 void MacroAssembler::AssertFunction(Register object) { 2810 void MacroAssembler::AssertFunction(Register object) {
2800 if (emit_debug_code()) { 2811 if (emit_debug_code()) {
2801 STATIC_ASSERT(kSmiTag == 0); 2812 STATIC_ASSERT(kSmiTag == 0);
2802 tst(object, Operand(kSmiTagMask)); 2813 tst(object, Operand(kSmiTagMask));
2803 Check(ne, kOperandIsASmiAndNotAFunction); 2814 Check(ne, kOperandIsASmiAndNotAFunction);
2804 push(object); 2815 push(object);
2805 CompareObjectType(object, object, object, JS_FUNCTION_TYPE); 2816 CompareObjectType(object, object, object, JS_FUNCTION_TYPE);
2806 pop(object); 2817 pop(object);
2807 Check(eq, kOperandIsNotAFunction); 2818 Check(eq, kOperandIsNotAFunction);
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
3718 } 3729 }
3719 } 3730 }
3720 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift)); 3731 if (mag.shift > 0) mov(result, Operand(result, ASR, mag.shift));
3721 add(result, result, Operand(dividend, LSR, 31)); 3732 add(result, result, Operand(dividend, LSR, 31));
3722 } 3733 }
3723 3734
3724 } // namespace internal 3735 } // namespace internal
3725 } // namespace v8 3736 } // namespace v8
3726 3737
3727 #endif // V8_TARGET_ARCH_ARM 3738 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.h ('k') | src/arm64/interface-descriptors-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698