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

Side by Side Diff: src/mips/macro-assembler-mips.h

Issue 2427673004: [intrinsics] Nuke %HasCachedArrayIndex and %GetCachedArrayIndex. (Closed)
Patch Set: Created 4 years, 2 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/ia32/macro-assembler-ia32.cc ('k') | src/mips/macro-assembler-mips.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 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 #include "src/mips/assembler-mips.h" 10 #include "src/mips/assembler-mips.h"
(...skipping 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 Condition IsObjectStringType(Register obj, 1254 Condition IsObjectStringType(Register obj,
1255 Register type, 1255 Register type,
1256 Register result) { 1256 Register result) {
1257 lw(type, FieldMemOperand(obj, HeapObject::kMapOffset)); 1257 lw(type, FieldMemOperand(obj, HeapObject::kMapOffset));
1258 lbu(type, FieldMemOperand(type, Map::kInstanceTypeOffset)); 1258 lbu(type, FieldMemOperand(type, Map::kInstanceTypeOffset));
1259 And(type, type, Operand(kIsNotStringMask)); 1259 And(type, type, Operand(kIsNotStringMask));
1260 DCHECK_EQ(0u, kStringTag); 1260 DCHECK_EQ(0u, kStringTag);
1261 return eq; 1261 return eq;
1262 } 1262 }
1263 1263
1264
1265 // Picks out an array index from the hash field.
1266 // Register use:
1267 // hash - holds the index's hash. Clobbered.
1268 // index - holds the overwritten index on exit.
1269 void IndexFromHash(Register hash, Register index);
1270
1271 // Get the number of least significant bits from a register. 1264 // Get the number of least significant bits from a register.
1272 void GetLeastBitsFromSmi(Register dst, Register src, int num_least_bits); 1265 void GetLeastBitsFromSmi(Register dst, Register src, int num_least_bits);
1273 void GetLeastBitsFromInt32(Register dst, Register src, int mun_least_bits); 1266 void GetLeastBitsFromInt32(Register dst, Register src, int mun_least_bits);
1274 1267
1275 // Load the value of a number object into a FPU double register. If the 1268 // Load the value of a number object into a FPU double register. If the
1276 // object is not a number a jump to the label not_number is performed 1269 // object is not a number a jump to the label not_number is performed
1277 // and the FPU double register is unchanged. 1270 // and the FPU double register is unchanged.
1278 void ObjectToDoubleFPURegister( 1271 void ObjectToDoubleFPURegister(
1279 Register object, 1272 Register object,
1280 FPURegister value, 1273 FPURegister value,
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
1912 dd(GetLabelFunction(index)); 1905 dd(GetLabelFunction(index));
1913 } 1906 }
1914 } 1907 }
1915 1908
1916 #define ACCESS_MASM(masm) masm-> 1909 #define ACCESS_MASM(masm) masm->
1917 1910
1918 } // namespace internal 1911 } // namespace internal
1919 } // namespace v8 1912 } // namespace v8
1920 1913
1921 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1914 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698