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

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

Issue 2001073002: [build] Fix a clang warning (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 7 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/mips/ic-mips.cc ('k') | src/ic/ppc/ic-ppc.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 #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 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 // condition code uses at the patched jump. 834 // condition code uses at the patched jump.
835 int delta = Assembler::GetImmediate16(instr); 835 int delta = Assembler::GetImmediate16(instr);
836 delta += Assembler::GetRs(instr) * kImm16Mask; 836 delta += Assembler::GetRs(instr) * kImm16Mask;
837 // If the delta is 0 the instruction is andi at, zero_reg, #0 which also 837 // If the delta is 0 the instruction is andi at, zero_reg, #0 which also
838 // signals that nothing was inlined. 838 // signals that nothing was inlined.
839 if (delta == 0) { 839 if (delta == 0) {
840 return; 840 return;
841 } 841 }
842 842
843 if (FLAG_trace_ic) { 843 if (FLAG_trace_ic) {
844 PrintF("[ patching ic at %p, andi=%p, delta=%d\n", address, 844 PrintF("[ patching ic at %p, andi=%p, delta=%d\n",
845 andi_instruction_address, delta); 845 static_cast<void*>(address),
846 static_cast<void*>(andi_instruction_address), delta);
846 } 847 }
847 848
848 Address patch_address = 849 Address patch_address =
849 andi_instruction_address - delta * Instruction::kInstrSize; 850 andi_instruction_address - delta * Instruction::kInstrSize;
850 Instr instr_at_patch = Assembler::instr_at(patch_address); 851 Instr instr_at_patch = Assembler::instr_at(patch_address);
851 // This is patching a conditional "jump if not smi/jump if smi" site. 852 // This is patching a conditional "jump if not smi/jump if smi" site.
852 // Enabling by changing from 853 // Enabling by changing from
853 // andi at, rx, 0 854 // andi at, rx, 0
854 // Branch <target>, eq, at, Operand(zero_reg) 855 // Branch <target>, eq, at, Operand(zero_reg)
855 // to: 856 // to:
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 break; 904 break;
904 default: 905 default:
905 UNIMPLEMENTED(); 906 UNIMPLEMENTED();
906 } 907 }
907 patcher.ChangeBranchCondition(branch_instr, opcode); 908 patcher.ChangeBranchCondition(branch_instr, opcode);
908 } 909 }
909 } // namespace internal 910 } // namespace internal
910 } // namespace v8 911 } // namespace v8
911 912
912 #endif // V8_TARGET_ARCH_MIPS64 913 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/ic/mips/ic-mips.cc ('k') | src/ic/ppc/ic-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698