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

Side by Side Diff: src/ic/mips64/ic-mips64.cc

Issue 1334793004: MIPS64: Add big-endian support for mips64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase ToT. Created 5 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/ic/mips64/handler-compiler-mips64.cc ('k') | src/mips64/assembler-mips64.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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/ic/ic.h" 8 #include "src/ic/ic.h"
9 #include "src/ic/ic-compiler.h" 9 #include "src/ic/ic-compiler.h"
10 #include "src/ic/stub-cache.h" 10 #include "src/ic/stub-cache.h"
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 // Check for fast double array case. If this fails, call through to the 544 // Check for fast double array case. If this fails, call through to the
545 // runtime. 545 // runtime.
546 __ LoadRoot(at, Heap::kFixedDoubleArrayMapRootIndex); 546 __ LoadRoot(at, Heap::kFixedDoubleArrayMapRootIndex);
547 __ Branch(slow, ne, elements_map, Operand(at)); 547 __ Branch(slow, ne, elements_map, Operand(at));
548 } 548 }
549 549
550 // HOLECHECK: guards "A[i] double hole?" 550 // HOLECHECK: guards "A[i] double hole?"
551 // We have to see if the double version of the hole is present. If so 551 // We have to see if the double version of the hole is present. If so
552 // go to the runtime. 552 // go to the runtime.
553 __ Daddu(address, elements, 553 __ Daddu(address, elements,
554 Operand(FixedDoubleArray::kHeaderSize + sizeof(kHoleNanLower32) - 554 Operand(FixedDoubleArray::kHeaderSize + Register::kExponentOffset -
555 kHeapObjectTag)); 555 kHeapObjectTag));
556 __ SmiScale(at, key, kPointerSizeLog2); 556 __ SmiScale(at, key, kPointerSizeLog2);
557 __ daddu(address, address, at); 557 __ daddu(address, address, at);
558 __ lw(scratch_value, MemOperand(address)); 558 __ lw(scratch_value, MemOperand(address));
559 __ Branch(&fast_double_without_map_check, ne, scratch_value, 559 __ Branch(&fast_double_without_map_check, ne, scratch_value,
560 Operand(static_cast<int32_t>(kHoleNanUpper32))); 560 Operand(static_cast<int32_t>(kHoleNanUpper32)));
561 __ JumpIfDictionaryInPrototypeChain(receiver, elements_map, scratch_value, 561 __ JumpIfDictionaryInPrototypeChain(receiver, elements_map, scratch_value,
562 slow); 562 slow);
563 563
564 __ bind(&fast_double_without_map_check); 564 __ bind(&fast_double_without_map_check);
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 patcher.ChangeBranchCondition(ne); 903 patcher.ChangeBranchCondition(ne);
904 } else { 904 } else {
905 DCHECK(Assembler::IsBne(branch_instr)); 905 DCHECK(Assembler::IsBne(branch_instr));
906 patcher.ChangeBranchCondition(eq); 906 patcher.ChangeBranchCondition(eq);
907 } 907 }
908 } 908 }
909 } // namespace internal 909 } // namespace internal
910 } // namespace v8 910 } // namespace v8
911 911
912 #endif // V8_TARGET_ARCH_MIPS64 912 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/ic/mips64/handler-compiler-mips64.cc ('k') | src/mips64/assembler-mips64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698