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

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

Issue 1334273002: [MIPS] Remove obsolete MacroAssembler::FlushICache. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove dead code. Created 5 years, 3 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/snapshot/serialize.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 #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 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 for (int16_t i = kNumRegisters - 1; i >= 0; i--) { 1427 for (int16_t i = kNumRegisters - 1; i >= 0; i--) {
1428 if ((regs & (1 << i)) != 0) { 1428 if ((regs & (1 << i)) != 0) {
1429 ldc1(FPURegister::from_code(i), MemOperand(sp, stack_offset)); 1429 ldc1(FPURegister::from_code(i), MemOperand(sp, stack_offset));
1430 stack_offset += kDoubleSize; 1430 stack_offset += kDoubleSize;
1431 } 1431 }
1432 } 1432 }
1433 daddiu(sp, sp, stack_offset); 1433 daddiu(sp, sp, stack_offset);
1434 } 1434 }
1435 1435
1436 1436
1437 void MacroAssembler::FlushICache(Register address, unsigned instructions) {
1438 RegList saved_regs = kJSCallerSaved | ra.bit();
1439 MultiPush(saved_regs);
1440 AllowExternalCallThatCantCauseGC scope(this);
1441
1442 Move(a0, address);
1443 PrepareCallCFunction(2, t8);
1444
1445 li(a1, instructions * kInstrSize);
1446 CallCFunction(ExternalReference::flush_icache_function(isolate()), 2);
1447 MultiPop(saved_regs);
1448 }
1449
1450
1451 void MacroAssembler::Ext(Register rt, 1437 void MacroAssembler::Ext(Register rt,
1452 Register rs, 1438 Register rs,
1453 uint16_t pos, 1439 uint16_t pos,
1454 uint16_t size) { 1440 uint16_t size) {
1455 DCHECK(pos < 32); 1441 DCHECK(pos < 32);
1456 DCHECK(pos + size < 33); 1442 DCHECK(pos + size < 33);
1457 ext_(rt, rs, pos, size); 1443 ext_(rt, rs, pos, size);
1458 } 1444 }
1459 1445
1460 1446
(...skipping 4746 matching lines...) Expand 10 before | Expand all | Expand 10 after
6207 if (mag.shift > 0) sra(result, result, mag.shift); 6193 if (mag.shift > 0) sra(result, result, mag.shift);
6208 srl(at, dividend, 31); 6194 srl(at, dividend, 31);
6209 Addu(result, result, Operand(at)); 6195 Addu(result, result, Operand(at));
6210 } 6196 }
6211 6197
6212 6198
6213 } // namespace internal 6199 } // namespace internal
6214 } // namespace v8 6200 } // namespace v8
6215 6201
6216 #endif // V8_TARGET_ARCH_MIPS64 6202 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/macro-assembler-mips64.h ('k') | src/snapshot/serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698