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

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

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/mips64/macro-assembler-mips64.h ('k') | src/ppc/macro-assembler-ppc.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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/base/division-by-constant.h" 9 #include "src/base/division-by-constant.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 5444 matching lines...) Expand 10 before | Expand all | Expand 10 after
5455 const Operand& r2, 5455 const Operand& r2,
5456 BranchDelaySlot bd) { 5456 BranchDelaySlot bd) {
5457 Jump(stub->GetCode(), RelocInfo::CODE_TARGET, cond, r1, r2, bd); 5457 Jump(stub->GetCode(), RelocInfo::CODE_TARGET, cond, r1, r2, bd);
5458 } 5458 }
5459 5459
5460 5460
5461 bool MacroAssembler::AllowThisStubCall(CodeStub* stub) { 5461 bool MacroAssembler::AllowThisStubCall(CodeStub* stub) {
5462 return has_frame_ || !stub->SometimesSetsUpAFrame(); 5462 return has_frame_ || !stub->SometimesSetsUpAFrame();
5463 } 5463 }
5464 5464
5465
5466 void MacroAssembler::IndexFromHash(Register hash, Register index) {
5467 // If the hash field contains an array index pick it out. The assert checks
5468 // that the constants for the maximum number of digits for an array index
5469 // cached in the hash field and the number of bits reserved for it does not
5470 // conflict.
5471 DCHECK(TenToThe(String::kMaxCachedArrayIndexLength) <
5472 (1 << String::kArrayIndexValueBits));
5473 DecodeFieldToSmi<String::ArrayIndexValueBits>(index, hash);
5474 }
5475
5476
5477 void MacroAssembler::ObjectToDoubleFPURegister(Register object, 5465 void MacroAssembler::ObjectToDoubleFPURegister(Register object,
5478 FPURegister result, 5466 FPURegister result,
5479 Register scratch1, 5467 Register scratch1,
5480 Register scratch2, 5468 Register scratch2,
5481 Register heap_number_map, 5469 Register heap_number_map,
5482 Label* not_number, 5470 Label* not_number,
5483 ObjectToDoubleFlags flags) { 5471 ObjectToDoubleFlags flags) {
5484 Label done; 5472 Label done;
5485 if ((flags & OBJECT_NOT_SMI) == 0) { 5473 if ((flags & OBJECT_NOT_SMI) == 0) {
5486 Label not_smi; 5474 Label not_smi;
(...skipping 1831 matching lines...) Expand 10 before | Expand all | Expand 10 after
7318 if (mag.shift > 0) sra(result, result, mag.shift); 7306 if (mag.shift > 0) sra(result, result, mag.shift);
7319 srl(at, dividend, 31); 7307 srl(at, dividend, 31);
7320 Addu(result, result, Operand(at)); 7308 Addu(result, result, Operand(at));
7321 } 7309 }
7322 7310
7323 7311
7324 } // namespace internal 7312 } // namespace internal
7325 } // namespace v8 7313 } // namespace v8
7326 7314
7327 #endif // V8_TARGET_ARCH_MIPS64 7315 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/macro-assembler-mips64.h ('k') | src/ppc/macro-assembler-ppc.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698