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

Side by Side Diff: src/mips/macro-assembler-mips.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/mips/macro-assembler-mips.h ('k') | src/mips64/interface-descriptors-mips64.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_MIPS 7 #if V8_TARGET_ARCH_MIPS
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 5855 matching lines...) Expand 10 before | Expand all | Expand 10 after
5866 5866
5867 5867
5868 void MacroAssembler::AssertSmi(Register object) { 5868 void MacroAssembler::AssertSmi(Register object) {
5869 if (emit_debug_code()) { 5869 if (emit_debug_code()) {
5870 STATIC_ASSERT(kSmiTag == 0); 5870 STATIC_ASSERT(kSmiTag == 0);
5871 andi(at, object, kSmiTagMask); 5871 andi(at, object, kSmiTagMask);
5872 Check(eq, kOperandIsASmi, at, Operand(zero_reg)); 5872 Check(eq, kOperandIsASmi, at, Operand(zero_reg));
5873 } 5873 }
5874 } 5874 }
5875 5875
5876 void MacroAssembler::AssertFixedArray(Register object) {
5877 if (emit_debug_code()) {
5878 STATIC_ASSERT(kSmiTag == 0);
5879 SmiTst(object, t8);
5880 Check(ne, kOperandIsASmiAndNotAFixedArray, t8, Operand(zero_reg));
5881 GetObjectType(object, t8, t8);
5882 Check(eq, kOperandIsNotAFixedArray, t8, Operand(FIXED_ARRAY_TYPE));
5883 }
5884 }
5876 5885
5877 void MacroAssembler::AssertFunction(Register object) { 5886 void MacroAssembler::AssertFunction(Register object) {
5878 if (emit_debug_code()) { 5887 if (emit_debug_code()) {
5879 STATIC_ASSERT(kSmiTag == 0); 5888 STATIC_ASSERT(kSmiTag == 0);
5880 SmiTst(object, t8); 5889 SmiTst(object, t8);
5881 Check(ne, kOperandIsASmiAndNotAFunction, t8, Operand(zero_reg)); 5890 Check(ne, kOperandIsASmiAndNotAFunction, t8, Operand(zero_reg));
5882 GetObjectType(object, t8, t8); 5891 GetObjectType(object, t8, t8);
5883 Check(eq, kOperandIsNotAFunction, t8, Operand(JS_FUNCTION_TYPE)); 5892 Check(eq, kOperandIsNotAFunction, t8, Operand(JS_FUNCTION_TYPE));
5884 } 5893 }
5885 } 5894 }
(...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after
6710 if (mag.shift > 0) sra(result, result, mag.shift); 6719 if (mag.shift > 0) sra(result, result, mag.shift);
6711 srl(at, dividend, 31); 6720 srl(at, dividend, 31);
6712 Addu(result, result, Operand(at)); 6721 Addu(result, result, Operand(at));
6713 } 6722 }
6714 6723
6715 6724
6716 } // namespace internal 6725 } // namespace internal
6717 } // namespace v8 6726 } // namespace v8
6718 6727
6719 #endif // V8_TARGET_ARCH_MIPS 6728 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.h ('k') | src/mips64/interface-descriptors-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698