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

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

Issue 1059433003: MIPS: Remove unused J(Label *). (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix a nit Created 5 years, 8 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') | no next file » | 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 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #if V8_TARGET_ARCH_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 3089 matching lines...) Expand 10 before | Expand all | Expand 10 after
3100 3100
3101 3101
3102 void MacroAssembler::Ret(Condition cond, 3102 void MacroAssembler::Ret(Condition cond,
3103 Register rs, 3103 Register rs,
3104 const Operand& rt, 3104 const Operand& rt,
3105 BranchDelaySlot bd) { 3105 BranchDelaySlot bd) {
3106 Jump(ra, cond, rs, rt, bd); 3106 Jump(ra, cond, rs, rt, bd);
3107 } 3107 }
3108 3108
3109 3109
3110 void MacroAssembler::J(Label* L, BranchDelaySlot bdslot) {
3111 BlockTrampolinePoolScope block_trampoline_pool(this);
3112
3113 uint64_t imm28;
3114 imm28 = jump_address(L);
3115 imm28 &= kImm28Mask;
3116 { BlockGrowBufferScope block_buf_growth(this);
3117 // Buffer growth (and relocation) must be blocked for internal references
3118 // until associated instructions are emitted and available to be patched.
3119 RecordRelocInfo(RelocInfo::INTERNAL_REFERENCE_ENCODED);
3120 j(imm28);
3121 }
3122 // Emit a nop in the branch delay slot if required.
3123 if (bdslot == PROTECT)
3124 nop();
3125 }
3126
3127
3128 void MacroAssembler::Jr(Label* L, BranchDelaySlot bdslot) { 3110 void MacroAssembler::Jr(Label* L, BranchDelaySlot bdslot) {
3129 BlockTrampolinePoolScope block_trampoline_pool(this); 3111 BlockTrampolinePoolScope block_trampoline_pool(this);
3130 3112
3131 uint64_t imm64; 3113 uint64_t imm64;
3132 imm64 = jump_address(L); 3114 imm64 = jump_address(L);
3133 { BlockGrowBufferScope block_buf_growth(this); 3115 { BlockGrowBufferScope block_buf_growth(this);
3134 // Buffer growth (and relocation) must be blocked for internal references 3116 // Buffer growth (and relocation) must be blocked for internal references
3135 // until associated instructions are emitted and available to be patched. 3117 // until associated instructions are emitted and available to be patched.
3136 RecordRelocInfo(RelocInfo::INTERNAL_REFERENCE_ENCODED); 3118 RecordRelocInfo(RelocInfo::INTERNAL_REFERENCE_ENCODED);
3137 li(at, Operand(imm64), ADDRESS_LOAD); 3119 li(at, Operand(imm64), ADDRESS_LOAD);
(...skipping 2993 matching lines...) Expand 10 before | Expand all | Expand 10 after
6131 } 6113 }
6132 if (mag.shift > 0) sra(result, result, mag.shift); 6114 if (mag.shift > 0) sra(result, result, mag.shift);
6133 srl(at, dividend, 31); 6115 srl(at, dividend, 31);
6134 Addu(result, result, Operand(at)); 6116 Addu(result, result, Operand(at));
6135 } 6117 }
6136 6118
6137 6119
6138 } } // namespace v8::internal 6120 } } // namespace v8::internal
6139 6121
6140 #endif // V8_TARGET_ARCH_MIPS64 6122 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/macro-assembler-mips64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698