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

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

Issue 1365803004: [presubmit] Fix whitespace/semicolon linter violations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/mips64/code-stubs-mips64.cc ('k') | src/objects.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 5008 matching lines...) Expand 10 before | Expand all | Expand 10 after
5019 // Save the frame pointer and the context in top. 5019 // Save the frame pointer and the context in top.
5020 li(t8, Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate()))); 5020 li(t8, Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate())));
5021 sd(fp, MemOperand(t8)); 5021 sd(fp, MemOperand(t8));
5022 li(t8, Operand(ExternalReference(Isolate::kContextAddress, isolate()))); 5022 li(t8, Operand(ExternalReference(Isolate::kContextAddress, isolate())));
5023 sd(cp, MemOperand(t8)); 5023 sd(cp, MemOperand(t8));
5024 5024
5025 const int frame_alignment = MacroAssembler::ActivationFrameAlignment(); 5025 const int frame_alignment = MacroAssembler::ActivationFrameAlignment();
5026 if (save_doubles) { 5026 if (save_doubles) {
5027 // The stack is already aligned to 0 modulo 8 for stores with sdc1. 5027 // The stack is already aligned to 0 modulo 8 for stores with sdc1.
5028 int kNumOfSavedRegisters = FPURegister::kMaxNumRegisters / 2; 5028 int kNumOfSavedRegisters = FPURegister::kMaxNumRegisters / 2;
5029 int space = kNumOfSavedRegisters * kDoubleSize ; 5029 int space = kNumOfSavedRegisters * kDoubleSize;
5030 Dsubu(sp, sp, Operand(space)); 5030 Dsubu(sp, sp, Operand(space));
5031 // Remember: we only need to save every 2nd double FPU value. 5031 // Remember: we only need to save every 2nd double FPU value.
5032 for (int i = 0; i < kNumOfSavedRegisters; i++) { 5032 for (int i = 0; i < kNumOfSavedRegisters; i++) {
5033 FPURegister reg = FPURegister::from_code(2 * i); 5033 FPURegister reg = FPURegister::from_code(2 * i);
5034 sdc1(reg, MemOperand(sp, i * kDoubleSize)); 5034 sdc1(reg, MemOperand(sp, i * kDoubleSize));
5035 } 5035 }
5036 } 5036 }
5037 5037
5038 // Reserve place for the return address, stack space and an optional slot 5038 // Reserve place for the return address, stack space and an optional slot
5039 // (used by the DirectCEntryStub to hold the return value if a struct is 5039 // (used by the DirectCEntryStub to hold the return value if a struct is
(...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after
6111 if (mag.shift > 0) sra(result, result, mag.shift); 6111 if (mag.shift > 0) sra(result, result, mag.shift);
6112 srl(at, dividend, 31); 6112 srl(at, dividend, 31);
6113 Addu(result, result, Operand(at)); 6113 Addu(result, result, Operand(at));
6114 } 6114 }
6115 6115
6116 6116
6117 } // namespace internal 6117 } // namespace internal
6118 } // namespace v8 6118 } // namespace v8
6119 6119
6120 #endif // V8_TARGET_ARCH_MIPS64 6120 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips64/code-stubs-mips64.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698